PDA

View Full Version : Better Spoiler bb code


Ezo
11 Nov 2007, 17:22
Hello, i had to post this for a friend,
Enjoy it.


Code made by ilT

My site:
http://somewhereyoubelong.com

No Title
Title: Spoiler (No Title)
Tag: spoil
Replacement:



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



Example: Some text
Use Option: No

With Title
Title: Spoiler (With Title)
Tag: spoil
Replacement:


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



Example: Some Text
Use Option: Yes

Screenshot
http://img36.picoodle.com/img/img36/5/11/8/f_examplem_1cef83c.png

yoyoyoyo
11 Nov 2007, 17:32
thanks much - here is the image so people can upload it to their own server. Can the hidden text be viewed in archive mode?

Magnumutz
11 Nov 2007, 17:35
Just change the image with anything you want...
All i can say is that it's pretty nasty from him to add such a background.

puertoblack2003
11 Nov 2007, 20:24
no go error

Warning: sprintf() [function.sprintf]: Too few arguments in includes\class_bbcode.php on line 1115

LlanMan
12 Nov 2007, 08:25
I get this error also.

Other than that it looks good.

projectego
12 Nov 2007, 08:43
Very, very cool. I like it. :)

/me clicks install

TWTCommish
12 Nov 2007, 15:10
Does this function properly with multiple spoilers in a single post? I hacked my own board for somethign similar, but ran into that particular hurdle.

liquidrage
16 Nov 2007, 18:25
The problem with this is the spoilers are shown in the mouse over even since the replacement doesn't take effect until they view the thread.

superthang
30 Nov 2007, 13:24
can someone tweak this into so that we can use our own images?
like we can supply our own little thumbnail for each spoiler ?

thanks

techgsmnet
30 Nov 2007, 17:11
can someone tweak this into so that we can use our own images?
like we can supply our own little thumbnail for each spoiler ?

thanks

you about backgrount picture?
Just change picture link to you.

SamuraiNigel
01 Dec 2007, 03:15
So, this looks like something I want, but I don't know what to do with the code. Do I throw this into a template? Which one? Do I replace what's in the template or add to it? There aren't any instructions here that i can see...

Edit: Nevermind, I figured it out.

superthang
01 Dec 2007, 12:14
you about backgrount picture?
Just change picture link to you.

no, i mean like can we supply each with different image so user can click on that image and it show something related to that image

example
content content content about car

content content content about boat

and so on.

also got this error: style is not "null" or an object

vasek
02 Jan 2008, 18:43
added custom title on button:
add new BB code:

Title: Spoiler with custom text on button
Tag: spoiler2


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



sample: hidden text
use option: On

steve1966
03 Jan 2008, 08:30
ok i managed to figure out how to install but when i click on my custom button on the tool bar I a get a pop up same as insert an image

and when i post the what i have inserted into the box i cannot get the hid show to show up
please can someone tell me what i have done wrong

tintructo
03 Jan 2008, 10:40
hi can someone tell me what template to add this code to thanks

or if i have to add this mod code somewhere else please can you give me a an instruction how to install

thanks

AdminCP -> Custom BB Codes -> Add New BB Code

in the title input , put something like "Spoiler"
in the tag input, put something like "spoiler" so you will have the bbcode like this : text
in the replacement textarea, put the code of the spoiler that you can see on the thread

and that's all :)

steve1966
03 Jan 2008, 11:25
its ok i have sorted it now and got it working

mikkitine
28 Mar 2008, 13:15
Multiple spoiler tags won't open after the first spoiler tag has been open regardless of whether they were used in the same post or not. This happens on IE/Safari browsers afaik.

tjsrachel
04 Apr 2008, 02:07
added custom title on button:
add new BB code:

Title: Spoiler with custom text on button
Tag: spoiler2


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





sample: hidden text
use option: On

I am using this one for the custom text on the button but after you press the button the text disappears and does not come back. Anyone have any ideas how I can get the text to stay after selected?

gibigbig
22 Apr 2008, 10:06
works nicely
i customized it for my site

Coldhands
05 May 2008, 19:45
Found a bug!


Spoilers can be used to lure people to phishing sites.

Allow me to demonstrate:

If you have spoilers on your forum, post this and click on the spoiler.



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




Any suggestions on how to fix this lil bug?

Coldhands
20 May 2008, 20:36
Bump.

This hack does make vB vulnerable to steal passwords via phishing. At the minimum, people should know that clicking on a spoiler button shouldn't open a new window. On a fast enough phishing server, the user may not even notice (assuming the phishing server served up already cached images).

tick tock

Also, you can't nest the spoilers in IE. If you put a spoiler inside of a spoiler it just craps out.

MonkYZ
12 Jul 2008, 20:40
I am using this one for the custom text on the button but after you press the button the text disappears and does not come back. Anyone have any ideas how I can get the text to stay after selected?

Same here. The title text usually dissapears... How can we fix it ?

dimitrisvb
26 Oct 2008, 21:59
by far the best spoiler tag i've seen up to now...
thanx :D

dimitrisvb
27 Jan 2010, 17:38
is this going to work with vb 4.0 ? :confused:

Per1213
16 Mar 2010, 17:45
This doesn't work in Chrome. Any plans to fix that?