Previous Thread
Next Thread
Print Thread
Rate Thread
#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
#203468 11/06/2005 12:14 AM
Joined: Jan 2000
Posts: 5,806
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,806
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, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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?

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 ?

Joined: Jan 2000
Posts: 5,806
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,806
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, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
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?
Joined: Jan 2000
Posts: 5,806
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,806
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, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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.

Joined: Jan 2000
Posts: 5,806
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,806
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, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
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
Joined: Jan 2000
Posts: 5,806
Likes: 10
UBB.Dev / UBB.Wiki Owner
Time Lord
Online Tapedshut
UBB.Dev / UBB.Wiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,806
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, I Find Rocks, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
#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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,546
Posts293,801
Members13,838
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 239
Topics Created 0
Posts Made 1
Users Online 2
Birthdays 23
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,806
Greg Hard 4,625
Top Posters(30 Days)
isaac 7
Top Likes Received
isaac 45
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 4
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 20200921.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.052s Queries: 40 (0.019s) Memory: 3.3586 MB (Peak: 3.6295 MB) Data Comp: Zlib Server Time: 2020-09-24 06:08:50 UTC
Valid HTML 5 and Valid CSS