Previous Thread
Next Thread
Print Thread
Rate Thread
#242222 04/09/2003 2:25 AM
Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
Mod Name / Version - Spoiler Tags for UBBCode v2.0

Description - Add [spoiler] tags to your site! These allow users to post info that others might not want to read, but still allows anyone who wants to read to be able to. Often used in fansites for tv, reading, movies, games, etc.

This is an updated version that fixes some problems with the older version, and simplifies it more. Stylesheet alterations are no longer required. Mozilla-friendly.

Working Under - UBB.Threads 6.2

Author - Rob Porter (Dalar)

Files Altered - ubbt.inc.php, ubbt_instant_ubbcode.tmpl, addpost.php, modifypost.php

Example thread at: Legends of Tacendia Test Forums

Enjoy!
Attachments
75108-ubbthreads spoiler code v2.txt (0 Bytes, 55 downloads)

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I have a note regarding the instructions. In your section for addpost.php, you're instructed to go to:

Code
// -------------------------------- <br />// Get rid of HTML in the signature <br />   $user['U_Signature'] = str_replace("<","&lt;",$user['U_Signature']); <br />   $user['U_Signature'] = str_replace(">","&gt;",$user['U_Signature']); <br />   $user['U_Signature'] = str_replace("&lt;br&gt;","<br>",$user['U_Signature']);


and to insert your code after this. My code is slightly different. Maybe it's from a prior hack, or that I'm running 6.2.3?

Code
// -------------------------------- <br />// Get rid of HTML in the signature <br />   $printsig = ""; <br />   if (isset($user['U_Signature'])) { <br />      $user['U_Signature'] = str_replace("&lt;br&gt;","<br />",$user['U_Signature']); <br />      $printsig = $user['U_Signature']; <br />   }

Hack works great though!

Joined: Apr 2002
Posts: 206
Member
Member
Offline
Joined: Apr 2002
Posts: 206
Probably a 6.2.3 thing.

If you notice anything else like this, let me know

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Groovy. I sure will!


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)