Previous Thread
Next Thread
Print Thread
Rate Thread
Spoiler tag add-on for UBB Code (v5/v6) #216861
05/20/2002 11:06 PM
05/20/2002 11:06 PM
Joined: Apr 2002
Posts: 231
Hamilton, Ontario, Canada
D
Dalar Offline OP
Member
Dalar  Offline OP
Member
D
Joined: Apr 2002
Posts: 231
Hamilton, Ontario, Canada
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

An example

Attached Files
Last edited by Dalar; 05/20/2002 11:08 PM.
Sponsored Links
Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: beatdown] #216862
05/21/2002 12:52 AM
05/21/2002 12:52 AM
Joined: Apr 2002
Posts: 231
Hamilton, Ontario, Canada
D
Dalar Offline OP
Member
Dalar  Offline OP
Member
D
Joined: Apr 2002
Posts: 231
Hamilton, Ontario, Canada
Oops.. new version attached here, was missing a couple important things =D

Attached Files
Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: beatdown] #216863
05/21/2002 7:41 AM
05/21/2002 7:41 AM
Joined: May 1999
Posts: 1,966
Sweden, Stockholm
Gardener Offline
Addict
Gardener  Offline
Addict
Joined: May 1999
Posts: 1,966
Sweden, Stockholm
The spoiler code looks great, would you mind if I stole it and put into my AddMarkups-hack?

Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: c0bra] #216864
05/21/2002 11:19 AM
05/21/2002 11:19 AM
Joined: Apr 2002
Posts: 231
Hamilton, Ontario, Canada
D
Dalar Offline OP
Member
Dalar  Offline OP
Member
D
Joined: Apr 2002
Posts: 231
Hamilton, Ontario, Canada
go right ahead

Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: beatdown] #216865
05/21/2002 11:55 AM
05/21/2002 11:55 AM
Joined: May 1999
Posts: 1,966
Sweden, Stockholm
Gardener Offline
Addict
Gardener  Offline
Addict
Joined: May 1999
Posts: 1,966
Sweden, Stockholm
Okey, thanks, I'll add it soon. Don't know how I'll do with the extra handling you have added, but I'll think of something, I hope. =]

Sponsored Links
Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: c0bra] #216866
05/21/2002 12:04 PM
05/21/2002 12:04 PM
Joined: Apr 2002
Posts: 231
Hamilton, Ontario, Canada
D
Dalar Offline OP
Member
Dalar  Offline OP
Member
D
Joined: Apr 2002
Posts: 231
Hamilton, Ontario, Canada
If you have any q's, feel free to ask

Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: beatdown] #216867
09/02/2002 1:10 AM
09/02/2002 1:10 AM
Joined: Feb 2001
Posts: 32
Sacramento, California, USA
X
xeney Offline
User
xeney  Offline
User
X
Joined: Feb 2001
Posts: 32
Sacramento, California, USA
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.

Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: Poe Reader] #216868
11/04/2004 4:17 PM
11/04/2004 4:17 PM
Joined: Mar 2001
Posts: 132
Garland, TX USA
J
Joe Siegler Offline
Member
Joe Siegler  Offline
Member
J
Joined: Mar 2001
Posts: 132
Garland, TX USA
Bump. I tried using this today. Works fine.

But Mozilla based browsers can see the text.

Any ideas?

Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: Philschi] #216869
11/16/2004 10:26 AM
11/16/2004 10:26 AM
Joined: Mar 2001
Posts: 132
Garland, TX USA
J
Joe Siegler Offline
Member
Joe Siegler  Offline
Member
J
Joined: Mar 2001
Posts: 132
Garland, TX USA
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 Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with, and recommend, the following Web Hosts:
· Stable Host
· Blue Host
· Interserver.net
Visit Us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 433
Joined: November 2001
Show All Member Profiles 
Forum Statistics
Forums64
Topics37,439
Posts293,449
Members13,782
Most Online1,498
Mar 17th, 2017
Top Posters(All Time)
AllenAyres 25,587
JoshPet 11,330
Rick 8,373
LK 7,396
Lord Dexter 6,503
Gizmo 5,936
Greg Hard 5,533
Top Posters(30 Days)
Mark_S 22
isaac 20
Gizmo 4
ehill 3
driv 1
Today's Statistics
Currently Online 700
Topics Created 0
Posts Made 0
Users Online 2
Birthdays 23
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2018 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180117.dev)
Page Time: 0.037s Queries: 17 (0.010s) Memory: 3.2846 MB (Peak: 3.4640 MB) Zlib enabled. Server Time: 2018-01-23 13:22:00 UTC