Previous Thread
Next Thread
Print Thread
Rate Thread
[6.7] [beta] Spoiler Tags #203467 11/05/2005 8:37 PM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
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

Sponsored Links
Re: [6.7] [beta] Spoiler Tags #203468 11/05/2005 11:14 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
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 .


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [6.7] [beta] Spoiler Tags #203469 11/20/2005 6:53 AM
Joined: Dec 2003
Posts: 49
Nightcrawler Offline
User
Offline
User
Joined: Dec 2003
Posts: 49
Nice mod! Thanks!

I do have one question though, is there a way to hide the text in Active Topics?

Re: [6.7] [beta] Spoiler Tags #203470 12/07/2005 7:02 AM
Joined: May 2001
Posts: 10
Firstone Offline
Junior Member
Offline
Junior Member
Joined: May 2001
Posts: 10
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 ?

Re: [6.7] [beta] Spoiler Tags #203471 12/07/2005 5:57 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
PMed Bretty wink


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Sponsored Links
Re: [6.7] [beta] Spoiler Tags #203472 02/16/2006 6:45 PM
Joined: Mar 2000
Posts: 21,079
AllenAyres Offline
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Any security bugs noted? It looks ok to me, but someone had a question...


- Allen wavey
- What Drives You?
Re: [6.7] [beta] Spoiler Tags #203473 02/16/2006 8:12 PM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
Not that i can see hehe


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [6.7] [beta] Spoiler Tags #203474 02/18/2006 12:16 AM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
While I hope not/not aware of any, let me know if anyone comes across any.

Re: [6.7] [beta] Spoiler Tags #203475 02/18/2006 4:58 AM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
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"?


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [6.7] [beta] Spoiler Tags #203476 02/21/2006 12:05 AM
Joined: May 2001
Posts: 1,042
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
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

Sponsored Links
Re: [6.7] [beta] Spoiler Tags #203477 02/21/2006 4:28 AM
Joined: Jan 2000
Posts: 5,787
Gizmo Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Offline
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,787
Good boy :rubs head:, now we're bugglet free (theres a statement)


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, UBB.Sitemaps
Re: [6.7] [beta] Spoiler Tags #203478 02/23/2006 11:42 PM
Joined: Dec 2003
Posts: 49
Nightcrawler Offline
User
Offline
User
Joined: Dec 2003
Posts: 49
Thank you much! thumbsup


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
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 448
Joined: February 2008
Forum Statistics
Forums63
Topics37,493
Posts293,671
Members13,829
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,787
Greg Hard 4,625
Top Posters(30 Days)
isaac 4
DCPhil 2
Gizmo 1
Today's Statistics
Currently Online 1003
Topics Created 0
Posts Made 0
Users Online 1
Birthdays
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191111.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.044s Queries: 14 (0.013s) Memory: 3.2903 MB (Peak: 3.4849 MB) Data Comp: Zlib Server Time: 2019-11-16 02:11:28 UTC
Valid HTML 5 and Valid CSS