|
Pages: [1]
|
 |
|
Author
|
Topic: SPOILERS (Read 5043 times)
|
|
SM
|
 |
SPOILERS
« on: January 30, 2007, 05:47:39 PM » |
|
How do you put in spoilers so that people can only read it when highlighted?
|
|
|
|
|
Logged
|
So long and thanks for all the fish.
|
|
|
|
Rene
|
How do you put in spoilers so that people can only read it when highlighted?
Here is how I do it, but it is rather complex, and I would welcome Kevan to put in a spoiler facility, similar to the one that Jay Is Games has (jayisgames.com). You need to set the colour of the text to the background colour. First: look what background colour your post will have, there are two shades of gray that alternate each other. You will get the other colour as the last post. Type your post, and select the text you want to be hidden. Select a colour (any colour) from the "change color" menu. You will get something like "[ color=Red]menu[/color]" in your text. Replace the colour name "Red" with "#F0F0F0" if your background is going to be light gray, or "#E1E1E1" if it is going to be dark gray. Adios, Rene
|
|
|
|
|
Logged
|
|
|
|
|
Kevan
|
Have messed around trying to install an existing SMF spoiler package, and it hasn't worked - I've just written my own basic one instead, for now. Anything between square-bracket "spoiler" tags will be whited out like this. I can't remember how to add a button to the editor for it, but I'll have another look when I've got a moment.
|
|
|
|
|
Logged
|
|
|
|
|
SM
|
**** THANKS RENE! ****
|
|
|
|
« Last Edit: January 31, 2007, 03:13:55 PM by SM »
|
Logged
|
So long and thanks for all the fish.
|
|
|
|
Kevan
|
 |
Re: SPOILERS
« Reply #4 on: February 01, 2007, 02:01:27 PM » |
|
Ah, there it is. There's now a "spoiler" icon in the editor buttons.
|
|
|
|
|
Logged
|
|
|
|
|
Kevan
|
 |
Re: SPOILERS
« Reply #5 on: February 01, 2007, 06:16:41 PM » |
|
...and spoilers now appear as big red clickable buttons instead of whited out text.
|
|
|
|
|
Logged
|
|
|
|
|
Rene
|
 |
Re: SPOILERS
« Reply #6 on: February 01, 2007, 07:09:32 PM » |
|
Great work Kevan! This is exactly how I wanted to have it!
|
|
|
|
|
Logged
|
|
|
|
|
Rene
|
 |
Re: SPOILERS
« Reply #7 on: February 01, 2007, 07:11:21 PM » |
|
Just testing nested spoilers: [spoiler]This is the first hint [spoiler]And this is the second And the last one[/spoiler][/spoiler] Oops, does not seem to work. That could still be a small improvement, Kevan, nothing very important though!
|
|
|
|
|
Logged
|
|
|
|
|
Kevan
|
 |
Re: SPOILERS
« Reply #8 on: February 01, 2007, 10:57:43 PM » |
|
Sorry, but I think that's a weakness of the forums, rather than the way I've implemented the spoiler code. All of the tags break if you nest them.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |