Previous Thread
Next Thread
Print Thread
Rate Thread
#192185 07/28/2002 2:36 PM
Joined: Mar 2000
Posts: 32
Member
Member
Offline
Joined: Mar 2000
Posts: 32
I've been trying to do the spoiler hack in the 6.2 mods forum, and I've created a button, gotten the instant UBB code to create the tage, and inserted the text to the UBB code page.

That works fine.

The actual functionality doesn't. frown [EDIT: It looks interesting, but I've tried rehacking ubb_lib_posting three times already and can't get it to work.)

Besides, what I want is just have a spolier hack that turns the text and it's background color to some number like #777777 so the user has to just swipe the spoilage with their mouse and get the spoilers.

How would I do that?

I'll guess it starts with messing with this line in ubb_lib_posting.cgi

Code
$match++ if $_[0] =~ s/(<blockquote><font size="1" face=".*?">
spoiler (<a href="javascript: ss2(.*?)">
click to view</a>):</font><hr size="1"><div .*?>)(.+?)(</div>
<hr size="1"></blockquote>)/
$2
/isg;
Thanks in advance for any help someone can offer.

Sponsored Links
Joined: Apr 2002
Posts: 111
PF Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
hehh you're over complicating it for yourself smile

in LK's variation of my hack change
Quote
code:
Code
<style type="text/css">
div.spoiler { visibility: hidden;}
</style>

to something like
code:
[qb]
Code
<style type="text/css">
div.spoiler {color: #777777; background: #777777;}
</style>
[/qb]
Then just remove the link code that says "click here to view" (replace with "highlight to view" or something smile )

Then you can remove the javascript too.

Joined: Mar 2000
Posts: 32
Member
Member
Offline
Joined: Mar 2000
Posts: 32
awesome, thanks!


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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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 20221218)