Non-threaded

Forums » Feature Wishing Well » Read Thread

Suggestions for improvements and additions to the site.
This feature was rejected 3/14/2006: see comments

Show text if first time

19 years ago
There should be a button on the advanced toolbar, when you highlight text and press this button in the advanced editor, that text is only visible when your reading the page for the first time.  If thats impossible, make it a formula.

Show text if first time

19 years ago
here is the formula:

Make variable: we will name it "var"

Make link enhancement for the page you want to go on and display text once: Add 1 to var

On page that text appers once:

%%VAR%=%1%DISPLAY THIS TEXT (THIS TEXT DOES NOT NEED TO BE CAPITAL)%%
%%VAR%>%1%DISPLAY THIS TEXT%%

So what happens is, the first time, var gets 1, it displays the first text. THe second, third, fourth time, var is added again by 1, display the > 1 text. If you would like to have a third and fourth time separate from the second:

%%VAR%=%2%THIS IS FOR 2nd%%
%%VAR%=%3%This is for 3rd%%
%%VAR%=%#%etc.%%

Show text if first time

19 years ago
this is in an unpublished article which i am lazy to complete and publish.

Show text if first time

19 years ago

i know the feeling solo lol. i just recently finished an article that i started months ago. lol sometimes you just get too tired of writing stuff like that. but thats all the more reason to appreciate alex for what he does. some of the stuff he does isnt even sentences lol its just numbers and symbols and crap. i cant imagine doing that for more than a minute.

nate

Show text if first time

19 years ago
I know It can be done like that Solo (view first page of John Barsby) but its just much less inconvienant.

Show text if first time

19 years ago
Nate, i'd rather have numbers and symbols. Im just like that lol.

Show text if first time

19 years ago

Good work Solo -- yes, this is the way to do it going forward. It is, afterall, an advanced thiung to do.

This is one of those things that will become easier with the introduction of Expressions. How it might work in the future:

[show when "times_visited($current_pageid) = 1"]  This will display on first visit
[when "times_visited($current_pageid) =2"]This is on visit 2
[when others] This shows every other time
[/show]

Show text if first time

19 years ago
Yep OK, thats more understandable (not that the others worn't, jsut a convienance thing)