vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=162449

Better Spoiler bb code
by Ezo
11 Nov 2007 18: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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [spoil]Some text[/spoil]
Use Option: No

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Example: [spoil=Title Text]Some Text[/spoil]
Use Option: Yes

Screenshot
https://www.vbulletin.org/forum/external/2007/11/9.png

yoyoyoyo 11 Nov 2007 18:32

1 Attachment(s)
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 18: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 21:24

no go error

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

LlanMan 12 Nov 2007 09:25

I get this error also.

Other than that it looks good.

projectego 12 Nov 2007 09:43

Very, very cool. I like it. :)

/me clicks install

TWTCommish 12 Nov 2007 16: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 19: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 14: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 18:11

Quote:

Originally Posted by superthang (Post 1392320)
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 04: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 13:14

Quote:

Originally Posted by techgsmnet (Post 1392414)
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
[spoiler=http://vbulletin.com/car.gif]content content content about car[/spoiler]

[spoiler=http://vbulletin.com/boat.gif]content content content about boat[/spoiler]

and so on.

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

vasek 02 Jan 2008 19:43

added custom title on button:
add new BB code:

Title: Spoiler with custom text on button
Tag: spoiler2

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

sample: [spoiler2=text on button]hidden text[/spoiler2]
use option: On

steve1966 03 Jan 2008 09: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 11:40

Quote:

Originally Posted by steve1966 (Post 1414464)
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 : [spoiler]text[/spoiler]
in the replacement textarea, put the code of the spoiler that you can see on the thread

and that's all :)


All times are GMT. The time now is 12:40.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.