Home : Products : Gossamer Forum : Development, Plugins and Globals :

Products: Gossamer Forum: Development, Plugins and Globals: Spoiler code would be really useful.: Edit Log

Here is the list of edits for this post
Spoiler code would be really useful.
Having the ability to use a spoiler tag would be really great, has anybody come up with a way of accomplishing a basic spoiler tag for people to use?

For those that don't know, a spoiler tag will usually take everything between the [spoiler]...[/spoiler] tags and either hide it away in (maybe it's hidden in an Iframe tags on some forums), and on other forums they might just make all the text in the spoiler to be the same color as the background of the message post so that while you see blank space in the message, it's not truly hidden until you click a button, but rather hidden in the sence that you have to run your mouse over the text and highlight it to read it.

Personally I'd love to see a way for a user to use the [spoiler]text here[/spoiler] tags and have the contents between the spoiler tags be completely hidden until the reader clicks a link or button that would reveal the text.

I'm thinking javascript and a division block that can be hidden or shown might do the job, I use these in my Glinks installation so I'll try to just copy and paste the necessary code into the tag components and see what happens, I think it quite likely that I'll be defeated by any html code robbing protections that are in place in my forums will prevent me from fully realising my dreams of a spoiler tag.

I'll try since it's copy and paste, but if someone else has already invented this wheel and can share it, please do so when you can.


Last edited by:

Westin: May 19, 2009, 12:54 PM

Edit Log: