UBB.Dev
Posted By: Fuzion [6.0x] Spoiler Hack - 05/27/2001 6:36 PM
Description: Adds the spoiler tag. When you use the spoiler tag it warns people that there is spoiler information in the topic. Very useful for UBB's with Movie, or TV forums that give a lot of endings away.

Version: Version 1.0

Original Author: MasterMind

Demo: DEMO

How To Use: Insert [spoiler] before your post(no closing tag).

Download URL: DOWNLOAD

I hope you enjoy this hack, I know I do. smile

P.S. - Thanks MM for letting me have this one. tipsy

[color:#000000" SIZE="1][ May 27, 2001 12:46 PM: Message edited by: Gamer ][/color]
Posted By: xXDaRoadie Re: [6.0x] Spoiler Hack - 05/27/2001 8:32 PM
hey hey

thanks for the "complicated" hack gamer..it totally works (on my 6.04a board), and itll be real useful

thanks dude

..::|-Peace-|::..
Posted By: AllenAyres Re: [6.0x] Spoiler Hack - 05/27/2001 8:36 PM
nice work, tho it's not quite finished as it still needs wordlets... moving to "beta".

You can open a new thread in here once this is in finished form...

not picking on you, I will be going through the finished forum in the next 24 hours and moving those that aren't finished to beta...
Posted By: Fuzion Re: [6.0x] Spoiler Hack - 05/27/2001 9:22 PM
alrighty allen, I will make a wordlet for it real quick.
Posted By: Fuzion Re: [6.0x] Spoiler Hack - 05/27/2001 9:44 PM
Wordlets added. *sorry* Allen, I always forget to add wordlets. tipsy
Posted By: Greg Hard Re: [6.0x] Spoiler Hack - 05/27/2001 10:11 PM
Quote
quote:
no prob, too easy for me. wink
Posted By: Fuzion Re: [6.0x] Spoiler Hack - 05/27/2001 10:58 PM
It is easy, yet useful. tipsy
Posted By: ADWOFF Re: [6.0x] Spoiler Hack - 03/28/2002 10:03 AM
Okay ... I desperately needed this hack for my messageboard (we're a community of readers), and I was able to install this on my test board -- version 6.2.1.1

My big question is this: can a button be added to this hack so that all anyone has to do is click on it to insert the code--like with the Instant UBB Code?

Thanks!
Posted By: Oblivion Knight Re: [6.0x] Spoiler Hack - 05/29/2002 12:31 PM
The link is down (not surprisingly after all this time).
Anyone still have it? This could come in quite useful at my board.. smile
Posted By: PF Re: [6.0x] Spoiler Hack - 05/29/2002 10:55 PM
quote:
Originally posted by Oblivion Knight:
The link is down (not surprisingly after all this time).
Anyone still have it? This could come in quite useful at my board.. smile

I dont have this spoiler hack, but I did make my own which you can view in action here
I dont have a hack instruction file for it but I can quickly whip one up if you're interested? (includes the ubbcode button stuff too)
also it has an opening and closing spoiler tags i.e
some spoiler text
it also hides the spoilers from daily topics.
Posted By: Oblivion Knight Re: [6.0x] Spoiler Hack - 05/30/2002 12:04 AM
If you could, i'd be grateful.. smile
Posted By: ADWOFF Re: [6.0x] Spoiler Hack - 05/30/2002 2:50 AM
quote:
Originally posted by Oblivion Knight:
If you could, i'd be grateful.. smile

I would be, too--especially since the original link is down, and I can't find my notes on this. frown
Posted By: Lord Dexter Re: [6.0x] Spoiler Hack - 05/30/2002 7:54 AM
I thought I had downloaded it but it's gone. S:C had it but since it's not online anymore the last trace may be gone.
Posted By: PF Re: [6.0x] Spoiler Hack - 05/30/2002 9:22 PM
Here ya go smile

http://www.ffaddicts.com/PF/SpoilerHack.txt

If anyone can see a potential security risk with the first point of the hack then PLEASE let me know. (I certainly couldn't find one:))

BTW: I'm on holiday for 2 weeks as of Saturday so anything concerning this hack will probably have to wait until I come back smile
Posted By: ADWOFF Re: [6.0x] Spoiler Hack - 05/31/2002 4:36 AM
Nuts. I'm not sure those who are using UBB 6.3 will be able to use your hack since you made it for a 6.05 version.

Example, I'm supposed to find this code in the ubb_lib.cgi file

Code
[/code]The closest I can find is this:

[code]
And, according to the directions w/in the code, it's part of a routine we're not supposed to touch:

# If you are going to hack your board up, feel free to... but
# DO NOT REMOVE *OR IN ANY WAY* CHANGE THIS ROUTINE,
# OR ANYTHING THAT CALLS THIS ROUTINE

frown I think we'll be back to the beginning.

Does anyone have the original text file posted by Gamer?
Posted By: ADWOFF Re: [6.0x] Spoiler Hack - 05/31/2002 5:13 AM
Yay! I found the code! It's amazingly easy!

Open the ubb_lib.cgi file

Find this code:

Code
[/code]Under it, add this code:

Code
</pre></div></div>That's it for the ubb_lib.cgi<br><br>Open vars_wordlets_mods.cgi<br><br>Insert this code after the beginning code:<br><br> [code]
To get your spoiler code, you then type [spoiler] in front of the text you wish to warn others about.
Posted By: PF Re: [6.0x] Spoiler Hack - 05/31/2002 9:15 AM
Whoops forgot the hide from Daily Topic code...

# Find
Code
[/code]# Add ABOVE
[code]
Edit: Noticed that both of you are using 6.x rather than 6.0x. I dont have 6.2 or 6.3 so can't really port it. Maybe someone else can?
Posted By: Oblivion Knight Re: [6.0x] Spoiler Hack - 05/31/2002 12:51 PM
Looks like this hack is going to have to be virtually re-written for 6.3 users.. frown
Posted By: PF Re: [6.0x] Spoiler Hack - 05/31/2002 1:03 PM
quote:
Originally posted by Oblivion Knight:
Looks like this hack is going to have to be virtually re-written for 6.3 users.. frown

Could always request it in the Ideas and suggestions for 6.3 smile

I dont think it would be all that hard to port.
Since it is based on the quote code.
The first Generation of the spoiler hack I made, was nearly a complete copy of the quote code, and just said "Highlight to view" and setting the colour to the background colour of the post.
Then we found out it didn't work for Opera users.
So then came the second generation one which was the click to view but simplified.
Users started mentioning that it made all the spoilers on the page visible so back to the drawing board of making each spoiler unique, which is the one here.

All our users seem to be content with the way the spoilers work now so smile
Posted By: Oblivion Knight Re: [6.0x] Spoiler Hack - 05/31/2002 3:32 PM
I have too much spare time at the moment, if I get too bored I may have a go at porting the hack myself.. smile
Posted By: ADWOFF Re: [6.0x] Spoiler Hack - 05/31/2002 7:32 PM
PF,

I love the look of your spoiler hack, but I'm pretty clueless about what to look for in the 6.3 version to port your version to that.

I'll cross my fingers for Oblivion Knight to be able to do it. laugh
Posted By: LK Re: [6.0x] Spoiler Hack - 05/31/2002 7:53 PM
Good job! For 6.3, try:
[code][/code]It's not tested, but should work smile
Posted By: PF Re: [6.0x] Spoiler Hack - 05/31/2002 9:52 PM
Just realised that Daily Topics code wont quite work. Missed out one little bit
[code][/code]LK, Not sure if the sub promo is different in 6.3 but the code just above, removes the contents of the spoiler BEFORE the tags get removed. and the bit located here goes AFTER the tags get removed.

If you could port that if it's different, it would be appreciated smile
(Note: the Daily Topics part is an addon, not a necessity for it to work)
Posted By: Yamaha Raptor Re: [6.0x] Spoiler Hack - 05/31/2002 11:08 PM
hey PF what file do we need to look in for the last two codes you just posted?
did you update your text file with the fixes you just posted?
Posted By: Lord Dexter Re: [6.0x] Spoiler Hack - 06/01/2002 1:39 AM
Wooo, Good to see some code from this hack. I will install it on 6.3 later.
Posted By: PF Re: [6.0x] Spoiler Hack - 06/01/2002 3:39 AM
quote:
Originally posted by ClanKiller:
hey PF what file do we need to look in for the last two codes you just posted?
did you update your text file with the fixes you just posted?

ubb_lib_posting.cgi

And the text file is now updated for those fixes.

I wont have net access for 2 weeks now, so hopefully this all works for someone, and they can help out anyone having problems tipsy
Posted By: ADWOFF Re: [6.0x] Spoiler Hack - 06/01/2002 5:35 AM
I gave LK's code a shot at my test site, and when I went into the styles area of the CP, I received a message saying that there were a whole bunch of syntax errors.

Because I need to keep working on my test site, I reloaded the backup files.

I could reload the hacked files if someone wanted to take a look, but I think I'll wait until someone else tries it out.
Posted By: ADWOFF Re: [6.0x] Spoiler Hack - 06/01/2002 6:45 AM
I should've mentioned that the syntax errors I was receiving was the result of the public_common.pl file.
Posted By: LK Re: [6.0x] Spoiler Hack - 06/01/2002 6:49 AM
Thanks Sue, please rehack public_common.pl from the edited text in my other post.
© UBB.Developers