|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
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 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. 
|
1 member likes this:
Gizmo |
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
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  .
|
|
|
|
Joined: Dec 2003
Posts: 49
User
|
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
|
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
PMed Bretty 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
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...
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
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"?
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
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"?
in ubb_lib_posting.cgi
# FIND #######
$v =~ s/<[^><]+?>//sg;
# ADD BELOW ############
# Spoiler Hack - Daily Topics $v =~ s/[spoiler(=[^]]+)?](.+?)[/spoiler]//sg; Zip File Updated. 
|
1 member likes this:
Gizmo |
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
Good boy :rubs head:, now we're bugglet free (theres a statement)
|
|
|
|
Joined: Dec 2003
Posts: 49
User
|
User
Joined: Dec 2003
Posts: 49 |
Thank you much! 
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|