Previous Thread
Next Thread
Print Thread
Rate Thread
#135002 05/27/2001 11:36 AM
Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
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]

Sponsored Links
#135003 05/27/2001 1:32 PM
Joined: Apr 2001
Posts: 46
Member
Member
Offline
Joined: Apr 2001
Posts: 46
hey hey

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

thanks dude

..::|-Peace-|::..

#135004 05/27/2001 1:36 PM
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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...


- Allen wavey
- What Drives You?
#135005 05/27/2001 2:22 PM
Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
alrighty allen, I will make a wordlet for it real quick.

#135006 05/27/2001 2:44 PM
Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
Wordlets added. *sorry* Allen, I always forget to add wordlets. tipsy

Sponsored Links
#135007 05/27/2001 3:11 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
Quote
quote:
no prob, too easy for me. wink

#135008 05/27/2001 3:58 PM
Joined: Nov 2000
Posts: 652
Member
Member
Offline
Joined: Nov 2000
Posts: 652
It is easy, yet useful. tipsy

#135009 03/28/2002 3:03 AM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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!


Sue
adwoff.com
#135010 05/29/2002 5:31 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
The link is down (not surprisingly after all this time).
Anyone still have it? This could come in quite useful at my board.. smile

#135011 05/29/2002 3:55 PM
Joined: Apr 2002
Posts: 111
PF Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
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.

Sponsored Links
#135012 05/29/2002 5:04 PM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
If you could, i'd be grateful.. smile

#135013 05/29/2002 7:50 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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


Sue
adwoff.com
#135014 05/30/2002 12:54 AM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
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.

#135015 05/30/2002 2:22 PM
Joined: Apr 2002
Posts: 111
PF Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
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

#135016 05/30/2002 9:36 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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?


Sue
adwoff.com
#135017 05/30/2002 10:13 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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.


Sue
adwoff.com
#135018 05/31/2002 2:15 AM
Joined: Apr 2002
Posts: 111
PF Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
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?

#135019 05/31/2002 5:51 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
Looks like this hack is going to have to be virtually re-written for 6.3 users.. frown

#135020 05/31/2002 6:03 AM
Joined: Apr 2002
Posts: 111
PF Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
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

#135021 05/31/2002 8:32 AM
Joined: Mar 2002
Posts: 451
Spotlight Runner-Up
Spotlight Runner-Up
Offline
Joined: Mar 2002
Posts: 451
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

#135022 05/31/2002 12:32 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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


Sue
adwoff.com
#135023 05/31/2002 12:53 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Good job! For 6.3, try:
[code][/code]It's not tested, but should work smile

#135024 05/31/2002 2:52 PM
Joined: Apr 2002
Posts: 111
PF Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
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)

#135025 05/31/2002 4:08 PM
Joined: Jul 2000
Posts: 837
Member
Member
Offline
Joined: Jul 2000
Posts: 837
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?

#135026 05/31/2002 6:39 PM
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Wooo, Good to see some code from this hack. I will install it on 6.3 later.

#135027 05/31/2002 8:39 PM
Joined: Apr 2002
Posts: 111
PF Offline
Member
Member
Offline
Joined: Apr 2002
Posts: 111
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

#135028 05/31/2002 10:35 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
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.


Sue
adwoff.com
#135029 05/31/2002 11:45 PM
Joined: May 2001
Posts: 794
Content Queen
Content Queen
Offline
Joined: May 2001
Posts: 794
I should've mentioned that the syntax errors I was receiving was the result of the public_common.pl file.


Sue
adwoff.com
#135030 05/31/2002 11:49 PM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Thanks Sue, please rehack public_common.pl from the edited text in my other post.


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
isaac
isaac
California
Posts: 1,157
Joined: July 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 20221218)