php forum
php mysql forum
php mysql smarty
 
Topic Options
#216861 - 05/21/02 07:06 AM Spoiler tag add-on for UBB Code (v5/v6)
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: 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
Click to reveal..
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


Attachments
47909-ubbthreads spoiler code.txt (196 downloads)



Edited by Dalar (05/21/02 07:08 AM)
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
Sponsored Links
      
#216862 - 05/21/02 08:52 AM Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: beatdown]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
Oops.. new version attached here, was missing a couple important things =D


Attachments
47916-ubbthreads spoiler code.txt (183 downloads)

_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#216863 - 05/21/02 03:41 PM Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: beatdown]
Gardener Offline
Addict

Registered: 05/12/99
Posts: 1966
Loc: Sweden, Stockholm
The spoiler code looks great, would you mind if I stole it and put into my AddMarkups-hack?
_________________________
/Gardener | Complete list of my mods

Top
#216864 - 05/21/02 07:19 PM Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: c0bra]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
go right ahead
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#216865 - 05/21/02 07:55 PM Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: beatdown]
Gardener Offline
Addict

Registered: 05/12/99
Posts: 1966
Loc: 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. =]
_________________________
/Gardener | Complete list of my mods

Top
#216866 - 05/21/02 08:04 PM Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: c0bra]
Dalar Offline
Member

Registered: 04/22/02
Posts: 231
Loc: Hamilton, Ontario, Canada
If you have any q's, feel free to ask
_________________________
Dalar
Legends of Tacendia
[]http://legendsoftacendia.com/forumimages/icons/troll.gif[/]

Top
#216867 - 09/02/02 09:10 AM Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: beatdown]
xeney Offline
User

Registered: 02/07/01
Posts: 32
Loc: 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.

Top
#216868 - 11/05/04 12:17 AM Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: Poe Reader]
Joe Siegler Offline
Member

Registered: 03/20/01
Posts: 132
Loc: Garland, TX USA
Bump. I tried using this today. Works fine.

But Mozilla based browsers can see the text.

Any ideas?
_________________________
Joe Siegler
Webmaster - 3D Realms
Moderator - Infopop UBB Support Forums

Join the TiVolution !

Top
#216869 - 11/16/04 06:26 PM Re: Spoiler tag add-on for UBB Code (v5/v6) [Re: Philschi]
Joe Siegler Offline
Member

Registered: 03/20/01
Posts: 132
Loc: 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.
_________________________
Joe Siegler
Webmaster - 3D Realms
Moderator - Infopop UBB Support Forums

Join the TiVolution !

Top

Shout Box

Latest Posts
Running UBB.Threads v7.5.9
by Ruben Rocha
01/28/15 12:19 PM
Sugguestions for Turning Around UBB.Threads
by Gremelin
01/27/15 10:43 AM
[7.x] Better Admin Footer
by id242
01/24/15 11:32 PM
UBB suhosin Check
by Gremelin
01/16/15 05:10 PM
(Views)Popular Topics
Known public proxy servers 2,293,992
Integrated Index Page (IIP) 5.3.1 865,376
Q & A 821,253
Finished-[6.5.2] Games Arcade Deluxe v1.9 694,960
[6.0x] Who's Online 4.0.0 [Finished] 645,002
Integrated Index Page (IIP) 5.1.1 548,453
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 453,561
[6.0x] UBB Calendar v1.9 320,996
1and1.com 305,345
[6.3.x] [beta] Hit Hack 2.0 292,375
Member Spotlight
Member Since: 12/23/01
Posts: 73
Forum Stats
13,718 Registered Members
62 Forums
37,248 Topics
291,026 Posts

Most users ever online: 1,097 @ 08/08/14 03:45 PM
Top Posters
AllenAyres 25584
JoshPet 11330
Rick 8373
LK 7396
Lord Dexter 6503
Greg Hard 5533
Gremelin 5506
Top Posters (30 Days)
Gremelin 41
id242 24
Ruben Rocha 16
Mark_S 6
Bill B 4
AllenAyres 2
Bill BB 1

The UBB.Developers Network™ (UBB.Dev™/Threads.Dev™) is ©2000-2015 VNC Web Services

▼ Our Sponsors ▼

▲ Our Sponsors ▲

 
fusionbb message board php hacks