UBB.Dev
Posted By: Brett [6.7] [beta] Spoiler Tags - 11/06/2005 4:37 AM
Modification Name: Spoiler Tags

Author(s): Brett

Description: This modification will allow forum users the additional tag
to initally hide text from viewers. Once clicked the hidden information will become visible.

Demo:

Requirements: UBB 6.7.x

Download Link: https://www.ubbdev.com/ubb/upload/00006378/Spoil.zip

Credits: Ben Nolan / Simon Willison for the attached JS script

Usages:

[spoiler]I will be hidden until clicked
(Click Here To Show Hidden Text)
Hello!

Don't forget to edit your styles with the css tags. As stated in the install file, you may customize those tags to fit your style except do not take off the "display: none" part.

Let me know if any issues arise. smile
Posted By: Gizmo Re: [6.7] [beta] Spoiler Tags - 11/06/2005 7:14 AM
Hehe, my bestest buddy pumpeded this one out in only a day (it was a day ago when i pmed you wasn't it?)

Thanks smile .
Posted By: Nightcrawler Re: [6.7] [beta] Spoiler Tags - 11/20/2005 2:53 PM
Nice mod! Thanks!

I do have one question though, is there a way to hide the text in Active Topics?
Posted By: Firstone Re: [6.7] [beta] Spoiler Tags - 12/07/2005 3:02 PM
Hi there,

thanks a lot for this nice mod. As my previous writer I'd like to know if there's a possibility to hide the text in active topics ?
Posted By: Gizmo Re: [6.7] [beta] Spoiler Tags - 12/08/2005 1:57 AM
PMed Bretty wink
Posted By: AllenAyres Re: [6.7] [beta] Spoiler Tags - 02/17/2006 2:45 AM
Any security bugs noted? It looks ok to me, but someone had a question...
Posted By: Gizmo Re: [6.7] [beta] Spoiler Tags - 02/17/2006 4:12 AM
Not that i can see hehe
Posted By: Brett Re: [6.7] [beta] Spoiler Tags - 02/18/2006 8:16 AM
While I hope not/not aware of any, let me know if anyone comes across any.
Posted By: Gizmo Re: [6.7] [beta] Spoiler Tags - 02/18/2006 12:58 PM
Quote
Originally posted by Firstone:

thanks a lot for this nice mod. As my previous writer I'd like to know if there's a possibility to hide the text in active topics ?
Brett, did you take care of the spoilers appearing in "Active Topics"?
Posted By: Brett Re: [6.7] [beta] Spoiler Tags - 02/21/2006 8:05 AM
Quote
Originally posted by Gizzy:

Originally posted by Firstone:
[qb]
thanks a lot for this nice mod. As my previous writer I'd like to know if there's a possibility to hide the text in active topics ?
[/qb]
Brett, did you take care of the spoilers appearing in "Active Topics"?



Code
in ubb_lib_posting.cgi

# FIND
#######

$v =~ s/<[^><]+?>//sg;


# ADD BELOW
############

# Spoiler Hack - Daily Topics
$v =~ s/[spoiler(=[^]]+)?](.+?)[/spoiler]//sg;
Zip File Updated. smile
Posted By: Gizmo Re: [6.7] [beta] Spoiler Tags - 02/21/2006 12:28 PM
Good boy :rubs head:, now we're bugglet free (theres a statement)
Posted By: Nightcrawler Re: [6.7] [beta] Spoiler Tags - 02/24/2006 7:42 AM
Thank you much! thumbsup
© UBB.Developers