Previous Thread
Next Thread
Print Thread
Rate Thread
#203467 11/05/2005 9:37 PM
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
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, My UBB Scripts
Joined: Dec 2003
Posts: 49
N
User
Offline
User
N
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
F
Junior Member
Offline
Junior Member
F
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,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
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, 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,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
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, My UBB Scripts
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
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, My UBB Scripts
Joined: May 2001
Posts: 1,042
Likes: 7
B
Brett Offline OP
Moderator
OP Offline
Moderator
B
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,813
Likes: 13
UBBDev / UBBWiki Owner
Time Lord
Offline
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,813
Likes: 13
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, My UBB Scripts
#203478 02/24/2006 12:42 AM
Joined: Dec 2003
Posts: 49
N
User
Offline
User
N
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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,555
Posts293,845
Members13,842
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 320
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 17
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,813
Greg Hard 4,625
Top Posters(30 Days)
Morgan 3
isaac 2
Top Likes Received
isaac 69
Gizmo 13
Brett 7
WebGuy 2
Top Likes Received (30 Days)
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.071s Queries: 40 (0.027s) Memory: 3.3621 MB (Peak: 3.6358 MB) Data Comp: Zlib Server Time: 2021-05-17 17:10:30 UTC
Valid HTML 5 and Valid CSS