The attached file has code which adds the ability for users to post "spoiler" information and keep the text hidden from those who do not wish to be spoiled. Those who want to read it simply drag their mouse over the text. The tags are
to open and
to close. The text is within a table, and these modifications include measures to prevent tables going out of whack because of a forgotten [/spoiler] tag or two.
This is one function that goes under the "I can't believe it's not in UBBThreads yet", heh Really should be added to the next release.. several other forums out there support it
A warning: I just implemented this today (and thank you, I've been looking for it and I'm very glad to have it) and immediately got complaints from some users that they could see the hidden text. They were all using older versions of Netscape -- I tested it with 4.5 and I know it wouldn't work at all in Netscape 3 (no stylesheet support), so I assume they must have been using 4.0 or thereabouts.
I had to modify the code to set the background color of the table cell to white, and changed the font color to white with HTML, bypassing style sheets altogether. It's nowhere near as nice as the version you came up with, since it shows up white on all style sheets, but it works for just about anyone, including people using non-CSS compatible browsers.
Figured it out - Mozilla based browsers have to dump their cache for this to work right. I presume because it's not properly picking up the revised css file.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.