Rubicon Forum
Welcome, Guest. Please login or register.
March 20, 2010, 03:45:31 AM

Login with username, password and session length
Search:     Advanced search
Undeletable components are now shaded blue when loading a level in.
4400 Posts in 211 Topics by 2414 Members
Latest Member: Cubeinman
* Home Help Search Login Register
+  Rubicon Forum
|-+  General
| |-+  Support (Moderator: Bucky)
| | |-+  SPOILERS
« previous next »
Pages: [1] Print
Author Topic: SPOILERS  (Read 5045 times)
SM
Designer
***
Posts: 89


View Profile
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
Director
*****
Posts: 553


View Profile Email
Re: SPOILERS
« Reply #1 on: January 31, 2007, 01:14:10 PM »

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
Administrator
Designer
*****
Posts: 84


View Profile WWW Email
Re: SPOILERS
« Reply #2 on: January 31, 2007, 02:29:22 PM »

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 imagelike 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
Designer
***
Posts: 89


View Profile
Re: SPOILERS
« Reply #3 on: January 31, 2007, 02:30:31 PM »

**** THANKS RENE! ****
« Last Edit: January 31, 2007, 03:13:55 PM by SM » Logged

So long and thanks for all the fish.
Kevan
Administrator
Designer
*****
Posts: 84


View Profile WWW Email
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
Administrator
Designer
*****
Posts: 84


View Profile WWW Email
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
Director
*****
Posts: 553


View Profile Email
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
Director
*****
Posts: 553


View Profile Email
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
imageAnd 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
Administrator
Designer
*****
Posts: 84


View Profile WWW Email
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] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Rubicon Forum | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!