wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> suggestions, help, and FAQ >> old hide tag suggestions (implemented)
(Message started by: william wu on Sep 9th, 2002, 3:09am)

Title: old hide tag suggestions (implemented)
Post by william wu on Sep 9th, 2002, 3:09am
Want to give a solution or hint, but don't want others to see it unless they highlight an area with a mouse?

You need to surround your text with color tags, where the color you choose is identical to the background. Note that the background color alternates on this board. So you'll have to anticipate the background of your post (yes i know this is annoying).


If the background is light gray:

Code:
[color=444444] YOUR TEXT HERE [/color]



If the background is dark gray:

Code:
[color=252525] YOUR TEXT HERE [/color]


// Thread title modified on 12:02 AM 1/21/2003 by William Wu, from "[ FAQ: how to hide text? ]" to "old hide tag suggestions (implemented)"

Title: Re: FAQ: how to hide text?
Post by william wu on Sep 9th, 2002, 3:13am
Demonstration for light gray background
(highlight area below with mouse):


"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
-Bertrand Russell


Title: Re: FAQ: how to hide text?
Post by william wu on Sep 9th, 2002, 3:15am
Demonstration for dark gray background
(highlight area below with mouse):


It wasn't the best of times; it wasn't the worst of times; it was the times you'd get if you arranged all possible times (including even fictional times in which the nights were usually dark and stormy) in order from worst to best on the real number line from 0.0 inclusive to 1.0 exclusive and then used a really good uniform random number generator to pick a value in that range thus choosing the corresponding times -- that's the times it was.
- Dale Dellutri, 1999 Bulwer-Lytton contest


Title: Re: [ FAQ: how to hide text? ]
Post by James Fingas on Oct 1st, 2002, 10:48am
You know what would be cool? If YaBB implemented the following tag:

[hide]
This text is hidden, and I don't need to remember what the background color is!

It stays hidden if somebody removes a post, or in a posting "race condition".

Boy, this tag is useful  ;) Maybe it could hide smilies too?
[/hide]

Title: Re: [ FAQ: how to hide text? ]
Post by Eric Yeh on Oct 12th, 2002, 4:18pm
I agree with James that [hide] would be quite desireable.  I have also recently had some troubles with the usu 252525/444444 codes not matching exactly, any ideas why?

Best,
Eric

Title: Re: [ FAQ: how to hide text? ]
Post by william wu on Oct 14th, 2002, 8:20pm
Yes, [hide] tags would be most convenient. Hmm that's probably very easy to code. Maybe I'll code it sometime before I die.

As you astutely observed, 252525 was not an exact match for the dark gray panels, although very close. It was actually 272A2F. But I have changed the main CSS template so that it uses 252525, since 252525 is much easier to remember. All hidden text which used color code 252525 is now perfectly blended into the background. Thanks!


Title: Re: [ FAQ: how to hide text? ]
Post by william wu on Jan 21st, 2003, 12:01am
Hide tags have been implemented! No more silly memorization of cumbersome hexadecimal values! To hide text, envelope it in hide tags as follows:


Code:
[hide] this is the answer [/hide]


Text will remain properly hidden even if previous posts in the thread are removed.

Many thanks to my friend Yosen Lin for helping me with this.



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board