Log in

View Full Version : Spoiler-Modification v. 1.0.0


Bernd Glasstett
03-16-2004, 10:00 PM
Spoiler-Modification v 1.0.0
This hack was developed by one of our users, TheSmallOne for use on www.comicforum.de The hack adds a spoiler-tag to the vbCode and displays the entered text between the tags as a button, displaying only "Show Spoiler". Once clicked, the spoiler is displayed. Very useful to hide postings on movie- or comicbook-forums, in which secrets about a story are revealed - in order to keep it up to every user, whether he would like to read it or not.

Features:


own image on editor
button with javascript
Templates to be changed: 1 (headinclude)
New phrases to be added: 2 (showspoiler, showspoilerwithtitle)
New custom BB Codes to be added: 2

PS: This hack was deleted on vbulletin.org. I am eager to see, if it is allowed here. If not, please tell me, where to post it - and don't just delete it.

Blue Moose Aaron
03-18-2004, 01:12 PM
Why was it deleted?

This is a great edit by the way. I added it to my forum. http://www.thekryptonian.com/showthread.php?t=3033

Thanks!

Bernd Glasstett
03-18-2004, 02:06 PM
I don't know, but discussion was going on, if this was a template-mod or a hack. Seems as if the moderators saw it as a template-mod :)

Blue Moose Aaron
03-18-2004, 02:15 PM
It is more of a template mod, but that's no reason to up and delete it. Whatever though... again, great hack.

imported_Prank
03-21-2004, 07:18 AM
cool - will be adding this, thanks!

Christian

Zachery
03-21-2004, 11:17 AM
Thread moved here :) nice work

Mr. Brian
03-22-2004, 08:16 AM
Thanks for sharing.. job welldone!

ryancooper
03-22-2004, 10:32 PM
Awesome! Installign tonight! Thanks!!

PlenoJure
03-25-2004, 04:09 AM
Installed & working well :)

dookie
04-11-2004, 05:57 AM
Thank you, works fine. :)

daFish
04-12-2004, 05:03 PM
This is a very nice hack, but i think it didnt work with firefox.
Can anyone confirm this?

Schwarze Katze
04-28-2004, 07:07 PM
Nope. I just tried it. Works.

ryancooper
05-14-2004, 01:00 AM
New phrases to be added: 2 (showspoiler, showspoilerwithtitle)

What 2 phrases? they are not in the instructions. I can;t seem to get it to work see here: http://talkdisney.com/forums/showthread.php?p=241423#post241423

What could i have missed??

Thanks!

imported_Synicide
05-14-2004, 07:01 PM
This is great guys. :D I really love it.

Viol8or
05-15-2004, 10:42 AM
Nice work, simple clean and good ... THANKS a lot, was looking for this!

marcel-ea
06-28-2004, 01:46 AM
A small question.

He write 2 Pharses must be added.
Where are this Pharses`? I donĀ“t see in the install.

thx

Cover Zero
06-28-2004, 07:18 PM
I've been using this hack for a while also. Great stuff.

marcel-ea
06-29-2004, 07:54 AM
super can you say me where are the pharses?

chrisvonc
06-30-2004, 12:32 AM
AdminCP > Languages & Phrases > Phrase Manager
:)

marcel-ea
06-30-2004, 06:38 PM
oh my good :D no i search this pharses of this hack
is not in the file not in post!

New phrases to be added: 2 (showspoiler, showspoilerwithtitle)

oki but what for content?

Hoffi
07-12-2004, 10:40 PM
It works great, but in the JS Code is a little Error. It is not really an Error, but you did not make the Closing JS-Tag correctly.

The Code must see like this:


var IMGDIR_MISC = "$stylevar[imgdir_misc]";
function showSpoiler(block) {
// by The Small One
block.nextSibling.nextSibling.style.display ="block";
block.parentNode.removeChild(block);
}
// -->
</script>


The JavaScript Comment to Hide the Ending HTML-Comment must be placed just before the Ending HTML-Script Tag.

If a Browser without JavaScript visits your Site he displays the Code of the Function inside the Forum.

jugo
07-22-2004, 05:11 PM
Um...Very nice work..
Although...I can't quite find a use for it though....

Quelyn
09-26-2004, 02:18 PM
awesome, very very neat. The only thing I don't like is that it drops the spoiler onto it's own line and doesn't keep the button with the rest of the paragraph. Other than that it's awesome.

Erwin
09-27-2004, 04:51 AM
Warning people that using an input tag in a bbcode an enabling options is a BAD idea, as this allows javascript insertion and the copying of cookies. As someone who has been hacked with a similar spoiler mod, I'm just letting others know that such bbcode mods are not safe, especially if they allow variables in an input tag to be inserted by users.

gwhooooey
10-27-2004, 11:36 PM
When posting a spoiler in the first post, the text in the spoiler shows up on the thread preview from forum display. Anyway to make it so it doesn't do this?

Michael2
11-07-2004, 08:53 AM
That's really cool. I'd add it but I think my members would abuse it. Thanks for sharing though!

TwinsForMe
03-10-2005, 08:15 PM
/me clicks install

ETA: How do I get the button to appear on the quick reply box?

weaver
03-10-2005, 09:12 PM
...

zetetic
03-27-2005, 12:38 PM
This is a good hack and I've been using it for the last year, but unfortunately the spoiler content still appears in thread preview. Does anyone know how I can prevent this?

Morpherex
05-01-2005, 03:08 AM
I wouldn't mind having this updated a little bit, to do some fixes :(.

FilmoreSlim
08-15-2005, 09:14 AM
Yeah I like this better then the other various spoiler mods ... some people just don't realize they need to "highlight" the text to reveal the text. With this it's pretty obvious! Thanks ;)

Omega Prime
09-11-2005, 05:12 PM
For whatever reason, this doesn't seem to work with 3.5, even when it used to work fine for me with 3.0.7 :(

Colejo
09-30-2005, 06:52 PM
For whatever reason, this doesn't seem to work with 3.5, even when it used to work fine for me with 3.0.7 :(

It works for me. I just had to edit the new headinclude template.

PamelaE
10-14-2005, 05:29 PM
Does this def work on 3.5? I really need to implement this.

http://www.soapchat.net

Borgs8472
11-11-2005, 03:00 PM
This is compatible with 3.5

Alviker
12-30-2005, 01:27 PM
Run really in vB 3.5.x? :( :( In my vB 3.5.1 not run :( :( Sorry for my bad english ^^U. The button "Show Spoiler" appears, but when I click on this, not appear the Spoiler :( :(

http://foros.ffultimate.com

Help please. I like this hack :( Very thanks.

Atte. Alviker

Cal813
01-23-2006, 02:58 AM
works for me on 3.5.3 however I wanted to know if there is a way to have a hide button as well? like comicforum has??

DjTaz
01-25-2006, 05:09 PM
Brilliant - thanks :D

Borgs8472
01-30-2006, 05:49 PM
I like to use {option} rather than "Show Spoiler about {option}", it allows for lots more uses.

Aislinn
03-01-2006, 12:58 AM
So cool, thanks a ton!

yesfans
03-11-2006, 02:05 PM
GREAT HACK! Works great for my yesfans.com site.

TequilaLady
04-27-2006, 03:45 AM
I did install the spoiler-thing and I got this on my page, how can I make that disappeare?

zetetic
04-29-2006, 01:58 PM
I like to use {option} rather than "Show Spoiler about {option}", it allows for lots more uses.
I've never used the variable bbcode (step 4 in the instructions) at all, because of Erwin's warning (https://vborg.vbsupport.ru/showpost.php?p=719177&postcount=24) about xss vulnerability.

sphero
08-02-2006, 03:35 AM
This is a cool mod, i mentioned it in the german support forum about 4 years ago ;)

The way i wanted to realize it was simply custom VB, this way i didnt need to change or mod any files, just a little change on one database table for the custom VB.

Could call it spoiler light :)

=> http://www.vbulletin-germany.com/forum/showthread.php?t=3204

works fine and the users are happy too.
and the best is, works with all older and with all new versions of VBulletin...