PDA

View Full Version : Spoiler-Modification v. 1.0.0


Bernd Glasstett
17 Mar 2004, 08:36
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
18 Mar 2004, 15:12
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
18 Mar 2004, 16:06
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
18 Mar 2004, 16:15
It is more of a template mod, but that's no reason to up and delete it. Whatever though... again, great hack.

imported_Prank
21 Mar 2004, 09:18
cool - will be adding this, thanks!

Christian

Zachery
21 Mar 2004, 13:17
Thread moved here :) nice work

Mr. Brian
22 Mar 2004, 10:16
Thanks for sharing.. job welldone!

ryancooper
23 Mar 2004, 00:32
Awesome! Installign tonight! Thanks!!

PlenoJure
25 Mar 2004, 06:09
Installed & working well :)

dookie
11 Apr 2004, 07:57
Thank you, works fine. :)

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

Schwarze Katze
28 Apr 2004, 21:07
Nope. I just tried it. Works.

ryancooper
14 May 2004, 03:00
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
14 May 2004, 21:01
This is great guys. :D I really love it.

Viol8or
15 May 2004, 12:42
Nice work, simple clean and good ... THANKS a lot, was looking for this!

marcel-ea
28 Jun 2004, 03:46
A small question.

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

thx

Cover Zero
28 Jun 2004, 21:18
I've been using this hack for a while also. Great stuff.

marcel-ea
29 Jun 2004, 09:54
super can you say me where are the pharses?

chrisvonc
30 Jun 2004, 02:32
AdminCP > Languages & Phrases > Phrase Manager
:)

marcel-ea
30 Jun 2004, 20:38
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
13 Jul 2004, 00:40
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



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
22 Jul 2004, 19:11
Um...Very nice work..
Although...I can't quite find a use for it though....

Quelyn
26 Sep 2004, 16:18
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
27 Sep 2004, 06:51
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
28 Oct 2004, 01:36
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
07 Nov 2004, 10:53
That's really cool. I'd add it but I think my members would abuse it. Thanks for sharing though!

TwinsForMe
10 Mar 2005, 22:15
/me clicks install

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

weaver
10 Mar 2005, 23:12
...

zetetic
27 Mar 2005, 14:38
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
01 May 2005, 05:08
I wouldn't mind having this updated a little bit, to do some fixes :(.

FilmoreSlim
15 Aug 2005, 11:14
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
11 Sep 2005, 19:12
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
30 Sep 2005, 20:52
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
14 Oct 2005, 19:29
Does this def work on 3.5? I really need to implement this.

http://www.soapchat.net

Borgs8472
11 Nov 2005, 17:00
This is compatible with 3.5

Alviker
30 Dec 2005, 15:27
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
23 Jan 2006, 04:58
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
25 Jan 2006, 19:09
Brilliant - thanks :D

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

Aislinn
01 Mar 2006, 02:58
So cool, thanks a ton!

yesfans
11 Mar 2006, 16:05
GREAT HACK! Works great for my yesfans.com site.

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

zetetic
29 Apr 2006, 15:58
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 (http://www.vbulletin.org/forum/showpost.php?p=719177&postcount=24) about xss vulnerability.

sphero
02 Aug 2006, 05:35
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...