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

1 member likes this: Gizmo
Sponsored Links
Re: [6.7] [beta] Spoiler Tags
#203468 11/06/2005 12:14 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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 7:53 AM
Joined: Dec 2003
Posts: 49
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 8:02 AM
Joined: May 2001
Posts: 10
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 6:57 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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 7:45 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
Offline
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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 9:12 PM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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 1:16 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Likes: 7
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 5:58 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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 1:05 AM
Joined: May 2001
Posts: 1,042
Likes: 7
Brett Offline OP
Moderator
OP Offline
Moderator
Joined: May 2001
Posts: 1,042
Likes: 7
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

1 member likes this: Gizmo
Sponsored Links
Re: [6.7] [beta] Spoiler Tags
#203477 02/21/2006 5:28 AM
Joined: Jan 2000
Posts: 5,805
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,805
Likes: 10
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/24/2006 12:42 AM
Joined: Dec 2003
Posts: 49
User
Offline
User
Joined: Dec 2003
Posts: 49
Thank you much! thumbsup


Link Copied to Clipboard
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
isaac
isaac
California
Posts: 1,068
Joined: July 2001
Forum Statistics
Forums63
Topics37,543
Posts293,773
Members13,838
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 261
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 29
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,805
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 9
isaac 8
driv 2
temp 2
Morgan 1
Top Likes Received
isaac 38
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 4
Gizmo 2
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

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

PHP: 5.4.45 Page Time: 0.047s Queries: 40 (0.015s) Memory: 3.3487 MB (Peak: 3.6277 MB) Data Comp: Zlib Server Time: 2020-05-30 12:07:14 UTC
Valid HTML 5 and Valid CSS