PDA

View Full Version : BB Code Enhancements - DI - BBCode [spoiler]


D.Ilyin
05-07-2008, 10:00 PM
DI - BBCode [spoiler] 1.30


Product information:
It's simple BBcode. But all of released here was too "difficult" to install :p. This one is very simple :rolleyes:. It use jQuery (http://jquery.com/) javascript library v.1.2.3.
And can be usefull for large listing, for image hiding and so on...

Usage:
some text
some text
some text
some textor
text
text
text
text
Result on screen-01.gif (https://vborg.vbsupport.ru/attachment.php?attachmentid=80160)

Installation information:
Files edit: 0
Templates edit: 0
Files to upload: 5
Time to install: less then 1 minute

Installation instructions: Upload all content in ./upload folder of plugin to your forum root directory
Import XML file through ACP: Plugin System > Manage Products > [Add/Import Product]
Optional: edit ./clientscript/vbulletin_css/spoiler.css to customize spoiler

Knowing problems: Not work if a quick reply or quick edit with AJAX functions was used for adding spoiler to post. You must reload page.

Tips: To edit default spoiler header when bbcode used without option - use that link ./admincp/phrase.php?do=edit&e[GLOBAL][spoiler_default_header] If you use english phrase and then translate it on your own language, you must rebuil post cache ./admincp/misc.php?do=buildpostcache
(full instructions in screenshots see in this post (https://vborg.vbsupport.ru/showpost.php?p=1531942&postcount=44) from Ims)
If you have very customized editor template (like in this post (https://vborg.vbsupport.ru/showpost.php?p=1528526&postcount=36)) and [SPOILER] button do not display you should add it manualy (if you want it of course :D):
In Style manager ./admincp/template.php?do=modify open your style and choose Edit Temlates
Open editor_toolbar_on template
Find
<if condition="$vBeditTemplate['extrabuttons'] != '' ">and add it before<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_spoiler"><img src="$stylevar[imgdir_editor]/spoiler.gif" alt="[SPOILER]" width="21" height="20" border="0" /></div></td>




History:
Released: 1.00 - 09.05.2008
v.1.00 - first public release

Updated: 1.10 - 12.05.2008
v.1.10 - changed slide time to be faster
v.1.10 - changed place of deafault header phrase
v.1.10 - fixed bug with new thread preview with spoiler
v.1.10 - fixed bug with new reply preview with spoiler post (https://vborg.vbsupport.ru/showpost.php?p=1514674&postcount=12)

Updated: 1.20 - 21.05.2008
v.1.20 - added link to vbulletin.org modification thread
v.1.20 - added version check link
v.1.20 - added SPOILER button in advanced editor
v.1.20 - added spoiler.gif for advanced editor
v.1.20 - fixed bbcode parsing in WYSIWYG editor (post (https://vborg.vbsupport.ru/showpost.php?p=1524266&postcount=29))
v.1.20 - added history.txt and readme.txt file

Updated: 1.30 - 26.05.2008
v.1.30 - added flash demo
v.1.30 - added usage help in bbcode list ./misc.php?do=bbcode (post (https://vborg.vbsupport.ru/showpost.php?p=1528192&postcount=35))
v.1.30 - added support for announcements (post (https://vborg.vbsupport.ru/showpost.php?p=1519579&postcount=25))
v.1.30 - made modification - Valid XHTML 1.0 Transitional

Please, click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=178573) if you like it!

Thanks for help: Marco van Herwaarden (https://vborg.vbsupport.ru/member.php?u=59998) & Boofo (https://vborg.vbsupport.ru/member.php?u=9948)

urdu
05-08-2008, 09:31 PM
Thanks ... i will try this (click install button)

Zweeper
05-09-2008, 04:25 PM
when the quick reply fault was fixed, i will use it

D.Ilyin
05-09-2008, 04:50 PM
I think that can't be fixed. Because JS included in <head> could not initializate spoiler that was not created or added when page was loaded. It initializate all spoilers only on full page reload.

maidos
05-09-2008, 05:15 PM
i will also use this mods when the quickreply has been fixed

Magnumutz
05-09-2008, 05:51 PM
Looks pretty nice :)
Good job.

ramsayeg
05-09-2008, 06:08 PM
Well, I've got to join the others.. if this will work with Auto-reply I'll make sure to install, most of my users don't bother going into Advanced mode so this won't help me.

D.Ilyin
05-09-2008, 07:24 PM
Looks pretty nice :)
Good job.
Thanks! :rolleyes:
if this will work it works! But it's a Javascript maxims. I can't jump over my head. Nobody can't. If somebody know how to do this... then tell me and i do this mod better.

Derek Chai
05-09-2008, 09:10 PM
Do you have a demo because this might be the spoiler I needed and can I remove the button?

Boofo
05-10-2008, 01:09 AM
Looks good. ;)

dvbusuario
05-10-2008, 04:34 AM
And the button to this bbcode?

Speedy1505
05-10-2008, 07:52 AM
how i can use this BB-code ???
i have installed ... and why .....
bla bla <== dosn't work on Post
80262

DubaiHost
05-10-2008, 12:40 PM
Great one ..
Installed ,,
Thanks.

D.Ilyin
05-12-2008, 10:40 AM
Updated:
v.1.10 - changed slide time to be faster
v.1.10 - changed place of deafault header phrase
v.1.10 - fixed bug with new thread preview with spoiler
v.1.10 - fixed bug with new reply preview with spoiler (post (https://vborg.vbsupport.ru/showpost.php?p=1514674&postcount=12))

Speedy1505
05-12-2008, 01:07 PM
thx ...
this Update works ...

i have found 1 Bug -- sorry ....
see Pic's please

and cann you insert a Button on the Editor ???

:( -- bad english -- sorry

D.Ilyin
05-12-2008, 01:21 PM
i have found 1 Bug -- sorry ....
see Pic's pleasehm.... i didn't see anything strage, with the exception of code formating.
and cann you insert a Button on the Editor ???
will be added in next version.

Speedy1505
05-12-2008, 01:49 PM
i have upload all Files and dir's ...
the images will not be see on this post ...

i have reinstall -- the image is not visible :(

great, you ar insert ab button at the editor ... :)

D.Ilyin
05-12-2008, 02:16 PM
the images will not be see on this post ...try to open this file: http://<your_forum.com>/images/misc/icon_plus.gif

Speedy1505
05-12-2008, 04:48 PM
yes .. file is present an i can open in browser

http://www.netvision-technik.de/forum/images/misc/icon_plus.gif

D.Ilyin
05-13-2008, 06:25 AM
yes .. file is present an i can open in browser

http://www.netvision-technik.de/forum/images/misc/icon_plus.gif
Just open ./clientscript/vbulletin_css/spoiler.css
FIND (2 times):
/images/misc/icon_plus.gif
REPLACE WITH
/forum/images/misc/icon_plus.gif

Ronya
05-13-2008, 06:36 AM
wrong link on INSTALLL button http://http//www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=178573

D.Ilyin
05-13-2008, 06:49 AM
Ronya thanks! fixed.

Speedy1505
05-13-2008, 05:44 PM
ich have replace 2 Links ...
its not visible ....
view Threade....
http://www.netvision-technik.de/forum/showthread.php?t=899
and Posting
http://www.netvision-technik.de/forum/showpost.php?p=5925&postcount=9

D.Ilyin
05-14-2008, 05:23 AM
you didn't add
/ before forum/images/misc/icon_plus.gif
must be
/forum/images/misc/icon_plus.gif
not
forum/images/misc/icon_plus.gif

Ronya
05-14-2008, 05:36 PM
Dont work in announcements, i guess there is no javascript.

Ronya
05-16-2008, 07:37 AM
i dont know how to change code for annunsments :( Can any1 help ?

D.Ilyin
05-17-2008, 07:37 AM
Dont work in announcements, i guess there is no javascript.
Do you mean external mod? Or native vB announcements?

Ronya
05-17-2008, 09:23 AM
Native

dvbusuario
05-19-2008, 01:20 AM
not work in internet explorer

any help me?

P.s. Sorry for my english

D.Ilyin
05-21-2008, 08:15 AM
Sory for silence... Was in busy....

Updated: 1.20 - 21.05.2008
1.20 - added link to vbulletin.org modification thread
1.20 - added version check link
1.20 - added SPOILER button in advanced editor
1.20 - added spoiler.gif for advanced editor
1.20 - fixed bbcode parsing in WYSIWYG editor (post (https://vborg.vbsupport.ru/showpost.php?p=1524266&postcount=29))
1.20 - added history.txt and readme.txt file

D.Ilyin
05-21-2008, 11:08 AM
Do you have a demo because this might be the spoiler I needed and can I remove the button?
added SWF demo (https://vborg.vbsupport.ru/attachment.php?attachmentid=81074) in first post.

topper_grave
05-22-2008, 02:52 AM
Installed.

Works perfectly in Internet Explorer, but it does not work in Firefox 3.

D.Ilyin
05-22-2008, 05:02 AM
topper_grave can you explain what did you mean? And how can i reproduce this bug?

D.Ilyin
05-22-2008, 01:51 PM
Hi, i just installed your Spoiler Addon on my vB 3.7.0

Works perfectly.

But as I use a German board, I wanted to have the phrase in German, too.

I did as stated in your first post ( To edit default spoiler header when bbcode used without option - use that link ./admincp/phrase.php?do=edit&e[GLOBAL][spoiler_default_header] )

But the Text still says "Click here to see full text", instead of "Spoiler: Hier klicken um den ganzen Text zu lesen" (My translation).

How can this be fixed? good and right question (i don't know why it was deleted). Added TIP 2 how to fix it in first post.

choccyclaire
05-22-2008, 06:00 PM
How do we get it to show up in the bbcode list?

www.xxx.com/misc.php?do=bbcode

Works great btw. :)

belceb
05-23-2008, 01:53 AM
where is the button?

topper_grave
05-23-2008, 02:32 AM
topper_grave can you explain what did you mean? And how can i reproduce this bug?
Oh, I'm so sorry, of course I should have described the problem better. Well, here it is:

Using Firefox 3 I can see the spoiler bar, with the little + sign and all, but it does not expand to reveal the contents when I click it, which it should. To get to the bottom of this I tried it with both Internet Explorer 7 and Firefox 2 and both worked without a glitch, but with Firefox 3 nothing happens when you click to expand. Firefox 3 supposedly handles overlays/layers differently (some other sites I frequent has had problems with this - such as http://wigflip.com/roflbot/ - but solved them with workarounds), but I do not know if your addon used any kind of overlays or something of the sort.

I realize this could very well be a bug in Firefox 3 and not something you can or should try to fix, but seeing as more and more people on our forum (currently 15% of our userbase, and climbing) is using Firefox 3 we had to stop using your addon to not alienate them, which would drive them off the forum rather than changing their favorite browser.

I am going to post this at the Mozilla forums too, to see if the error is on their part.

D.Ilyin
05-23-2008, 05:22 AM
How do we get it to show up in the bbcode list?

www.xxx.com/misc.php?do=bbcode

Works great btw. :)
will be added in next version.
Dont work in announcements, i guess there is no javascript.and this too.

dvbusuario
05-23-2008, 05:24 AM
Esta nueva version, se muestra el contenido rapidamente y luego se oculta por si solo, hay manera de solucionarlo? :(

D.Ilyin
05-23-2008, 06:01 AM
where is the button?
belceb you have a customized editor template (or you template was not revert to vB 3.7.0) and should edit it manualy.

In Style manager ./admincp/template.php?do=modify open your style and choose Edit Temlates
Open editor_toolbar_on template
Find
<if condition="$vBeditTemplate['extrabuttons'] != '' ">and add it before<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_spoiler"><img src="$stylevar[imgdir_editor]/spoiler.gif" alt="[SPOILER]" width="21" height="20" border="0" /></div></td>

Added in TIPs list.

D.Ilyin
05-23-2008, 06:06 AM
I realize this could very well be a bug in Firefox 3 and not something you can or should try to fix, but seeing as more and more people on our forum (currently 15% of our userbase, and climbing) is using Firefox 3 we had to stop using your addon to not alienate them, which would drive them off the forum rather than changing their favorite browser. I'll take a look on that... And please give me a link in PM on Mozilla bug report if you post it. Thanks.
Esta nueva version, se muestra el contenido rapidamente y luego se oculta por si solo, hay manera de solucionarlo? :( чего? чего?!?! :confused:

D.Ilyin
05-26-2008, 10:57 AM
Updated: 1.30 - 26.05.2008
1.30 - added flash demo
1.30 - added usage help in bbcode list ./misc.php?do=bbcode (post (https://vborg.vbsupport.ru/showpost.php?p=1528192&postcount=35))
1.30 - added support for announcements (post (https://vborg.vbsupport.ru/showpost.php?p=1519579&postcount=25))
1.30 - made modification - Valid XHTML 1.0 Transitional

choccyclaire
05-26-2008, 11:13 AM
Thanks so much for adding the part I asked about!

Upgraded.

lms
05-26-2008, 03:30 PM
good and right question (i don't know why it was deleted). Added TIP 2 how to fix it in first post.

Press language and phrases -> search phrases -> text search = "Click here to see full text" in show thread phrases -> find

spoiler_default_header -> EDIT -> "Spoiler: Hier klicken um den ganzen Text zu lesen" in your language -> SAVE

Maintenaince -> Update Counters -> rebuild messages cache and Rebuild Thread Information -> Enjoy

See attach files.

topper_grave
05-26-2008, 06:56 PM
I'll take a look on that... And please give me a link in PM on Mozilla bug report if you post it. Thanks.
You can completely disregard from my error report. I have no idea what went wrong the first time, but after uninstalling your plugin and then installing it again, it worked flawlessly with FF3 too. Sorry for wasting your time with a faulty report. I should of course have tried reinstalled it before reporting.

Oh, and I have a question/request: Is there any way of stopping people from "nesting" the spoiler tags? People quickly figured out you can put spoiler tags within spoiler tags, and apparently in their minds it's super fun to do that to a depth of say 20 spoilers inside each other. :rolleyes:

Anyways, thanks for a great plugin!

D.Ilyin
05-27-2008, 06:23 AM
Thanks so much for adding the part I asked about!

Upgraded.
choccyclaire, you are welcome!

D.Ilyin
05-27-2008, 06:26 AM
Ims thanks! added link with your instrucrion in first post.

D.Ilyin
05-27-2008, 06:41 AM
You can completely disregard from my error report. I have no idea what went wrong the first time, but after uninstalling your plugin and then installing it again, it worked flawlessly with FF3 too.Glad to hear that because in my FF3 it works fine :(.

Is there any way of stopping people from "nesting" the spoiler tags? People quickly figured out you can put spoiler tags within spoiler tags, and apparently in their minds it's super fun to do that to a depth of say 20 spoilers inside each other. :)
i'll think a little... but... not promise.

And think this mod no need support any more. It is perfect! :D :D :D

FPSChris
07-12-2008, 07:41 PM
Ehm, i cant seem to make this work with vBadvanced CMPS

The text "Click here to see full text" shows up, but im guessing something isnt working with the paths or if it's CSS code causing it, not sure what i can report..

t2k7
07-18-2008, 05:03 PM
Useful mod. Well done! I have installed it and everything is fine except for the "advanced" editor with a specific skin. There i get "Wrap [SPOILER] tags around selected text". What's wrong?

Finally one question. I wanted to have the spoiler tag in the quick reply editor. I edited the templates for all my skins with this code

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_spoiler"><img src="$stylevar[imgdir_editor]/spoiler.gif" alt="[SPOILER]" width="21" height="20" border="0" /></div></td>

but it didn't work good on the same skin as before. I changed the stylevar with the full path to the image and then it worked. But why this is happening while the other skins worked good with the stylevar ?

Thank you!

FPSChris
07-31-2008, 11:07 PM
Weird, it doesnt quite work with flash animations, it just closes immideatly..

Jaxel
08-17-2008, 12:10 AM
One bug...

Doesnt seem to work after Ajax Quick Edit... need to refresh the page.

D.Ilyin
08-17-2008, 09:06 AM
One bug...

Doesnt seem to work after Ajax Quick Edit... need to refresh the page.it's not a bug.... it's "future"... :)
i wrote about it already. and don't know how can i fix it :(

D.Ilyin
08-22-2008, 04:56 AM
Useful mod. Well done! I have installed it and everything is fine except for the "advanced" editor with a specific skin. There i get "Wrap [SPOILER] tags around selected text". What's wrong?You just need to copy spoiler.gif in /editor/ folder in your specific style folder.

D.Ilyin
08-22-2008, 04:56 AM
Weird, it doesnt quite work with flash animations, it just closes immideatly..can you give me a sample? I'm not completle understand what is the problem :(

vbboarder
08-23-2008, 11:47 PM
it's not a bug.... it's "future"... :)
i wrote about it already. and don't know how can i fix it :(

I also had the spoiler and other JS mods (ie: Image Resizer) not working after a user performs a quick reply or quick edit. However, after installing these 2 cool mods by PHPKD, I no longer have that problem! The 2 mods are:

Advanced Quick Reply: https://vborg.vbsupport.ru/showthread.php?t=180330

Advanced Quick Edit: https://vborg.vbsupport.ru/showthread.php?t=184971

Not sure how these 2 mods fixed the problem, but hey it's working! :D

popular
08-28-2008, 08:22 PM
doesn't seem to work with Internet Explorer on large posts with pics

yingzhou
08-31-2008, 03:30 PM
great mod. :D

snake-boy
08-31-2008, 04:08 PM
Perhaps I'm missing something really obvious, but since there is only one spoiler.css, how can I customize it to match my other styles. It looks/works great in default, but I need to change background colors etc for my other styles. If I do that, it looks horrible under the default skin.

What am I missing?

D.Ilyin
09-01-2008, 08:16 AM
doesn't seem to work with Internet Explorer on large posts with picscan you give an example?
great mod. :D Thanks! :rolleyes:
Perhaps I'm missing something really obvious, but since there is only one spoiler.css, how can I customize it to match my other styles. It looks/works great in default, but I need to change background colors etc for my other styles. If I do that, it looks horrible under the default skin.

What am I missing?i'll try to do it style depended in closed time.

mad@Max
09-14-2008, 02:33 PM
How i can disable mod or him parsing on vbadvanced?
Im try in modul BBCode [spoiler]: disable parse in WYSIWYG add
if ($this->is_wysiwyg() AND THIS_SCRIPT == 'adv_index')
But nothing happens:(

rob01
10-15-2008, 06:30 PM
i install it

but nothing happens i only see this
Click here to see full text

any ideas?

ELvictor
10-22-2008, 06:02 PM
Hi! it's a great hack.

but if you use the with don't work

example:

[spoiler]
[code]
Text here




can any help me?

thanks

D.Ilyin
10-24-2008, 06:51 AM
Hi! it's a great hack.

but if you use the with don't work

example:

[spoiler]
[code]
Text here




can any help me?

thanks i can't reproduce this :(
On my forum works fine.

ELvictor
10-24-2008, 08:42 PM
i can't reproduce this :(
On my forum works fine.

On Internet Explorer works fine, but in firefox doesnt work :(

any help?

mad@Max
10-25-2008, 12:10 AM
For me mod work on all browsers:)

D.Ilyin
10-25-2008, 09:48 AM
ELvictor can you give me a link and test account if needed in PM?

On all browsers and on 3 my forums there is no any problems.

bartek24m
11-05-2008, 08:46 PM
it works great but how can i change the tag into other e.g. ?

Plz answer me thanks

D.Ilyin
11-06-2008, 06:59 AM
Do you mean that you need something like this:
hidden text
and it must work like SPOILER bbcode?

If yes, than you shoud manualy change XML file with your bbcode.

Freddy.k
11-06-2008, 09:20 AM
merci cool

mad@Max
11-28-2008, 07:03 PM
Somebody was think about how make it work after quick reply (ajax)?

D.Ilyin
12-01-2008, 05:21 AM
mad@Max, i'll fix it to cristmas :)

btotw
01-01-2009, 08:23 PM
Installed fine, but produces an error (attached)

Help?

marianoblesa
01-19-2009, 04:02 AM
could make it work in version 3.8.0?

Thank you

M3xital
01-26-2009, 06:32 PM
Hi
Are you planning to make an update to make it work with version 3.8.0.?
Thanks

ShiZoPhreN
04-15-2009, 03:38 AM
Any news?! :)

fly
04-23-2009, 04:50 PM
Has anyone actually tested it in 3.8 and found it not working? Just asking, as I don't see that mentioned anywhere...

vasek
05-03-2009, 02:11 PM
I found bug when spoiler images are not displayed:
if forum is installed not in root dirrectory of domain.
i mean, i got vs installed here http://www.somesite.com/forums/ - but spoiler.css uses images only from respective to root dir:

.folded {
display: block;
background: transparent url(/images/misc/icon_plus.gif) no-repeat left center;
padding-left: 14px;
}

.unfolded {
display: block;
background: transparent url(/images/misc/icon_minus.gif) no-repeat left center;
padding-left: 14px;
}

so i fixed by adding "/forums" to URL in spoiler.css.

vasek
05-03-2009, 03:02 PM
can anyone provide simple how-to about adding spoiler button to quickedit?
or may be it'll be a new feature in 1.31? :)

4yBak
05-10-2009, 04:15 PM
why this spoiler dosn't work at social groups (vb 3.8.2)?

maidos
05-20-2009, 11:50 AM
can anyone provide simple how-to about adding spoiler button to quickedit?
or may be it'll be a new feature in 1.31? :)

also want to know that

W!cKeD
05-31-2009, 10:44 PM
* Thanks & Installed * :up:

Works fine with vBulletin Version: 3.8.2

I use this Add-on for adding [SPOILER]-Code in Editors ==> Quick Editor Improver (https://vborg.vbsupport.ru/misc.php?do=producthelp&pid=quickeditor_improver) :-)

ArnyVee
06-13-2009, 01:24 PM
Any suggestions on using this for registered users only?

I've installed and it seems to work on initial testing. But, I want this spoiler info to only display when the users actually are registered.

Also, any idea as to how to make this mod/hack only be available for mods and admins?

H3C x Nevz
06-15-2009, 11:38 PM
I don't see any XML file?

emperatour
06-17-2009, 08:17 AM
Any suggestions on using this for registered users only?

I've installed and it seems to work on initial testing. But, I want this spoiler info to only display when the users actually are registered.


I also want to prevent unregistered users from seeing spoiled info. Any suggestions?

Flowsion
07-08-2009, 05:55 PM
Is there a reason sometimes, the spoilers don't work and you have to refresh multipl etimes?

Makc666
07-14-2009, 02:10 PM
Double space before with in phrases:

This is an example with default header.

This is an example with user define header.

M.C.
07-16-2009, 10:15 PM
I have problem on my 3.8 it's work only in first post (not first post of thread but first post it used), other spoilers in thread don't work :(

Also my image resize hack (http://www.ncode.nl/vbulletinplugins/) don't work within spoiler :(

ArnyVee
07-17-2009, 11:54 PM
Anyone have a suggestion on how to hide this from 'guests'?

Konstantinos
07-18-2009, 08:28 AM
one question . since it uses javascript. is the content inside the spoiler indexable by search engines ? i whould prefer if it wasnt

ArnyVee
07-25-2009, 05:59 PM
Am I assuming correctly by thinking that I can limit the view of this mod to registered users only by editing the xml file?

If so, any tips on where I put the code?

fly
07-26-2009, 01:38 PM
Am I assuming correctly by thinking that I can limit the view of this mod to registered users only by editing the xml file?

If so, any tips on where I put the code?

Not really. You'll want the 'hide' hack for that.

itsheinz
07-27-2009, 03:10 PM
great mod..imma use it now :)

Kirschtorte
10-06-2009, 08:14 AM
Great job! https://vborg.vbsupport.ru/external/2011/02/1.gif

But there is a little bug i think.

1.) Create a spoiler and submit the Posting.
2.) Edit the spoiler and submit the changes.
3.) Now you will see, the spoiler doesn't work anymore. you can click, but nothing happens.

Only this two ways are possible to make the spoiler works again:

1.) reopen the page or
2.) refresh the browser window

That is not so good i find...

Hubbitus
10-25-2009, 09:01 AM
Hello, guys.

Fix spoiler on quick post/edit is quite trivial. Main what we must doing it is attach event handler not only to page ready, but to post add/change too.

Please see attached patches.

One additional note. In archive bundled 2 patches, first, called "quick-post|edit.old.patch" is "quick" fix. But I also suggest (really this idea was by Plague admin of imho.ws ;) ) move function initSpoilers and its attachment to document ready event into external file to allow caching it by browser. And full changes present in "quick-post|edit.patch".

With best wishes, Pavel.

MixFTW
11-03-2009, 11:04 AM
hi i got some prob with displaying spoiler img on editor bar:
http://img249.imageshack.us/img249/486/prob.gif
P.S.: i tried all instruction in this tread but img still didnt appear.

Any suggestions?

Hubbitus
11-03-2009, 11:28 AM
What image now set for button? Adjust path to where you place it.

Kirschtorte
11-03-2009, 11:33 AM
Hello,

you have to correct the path to the image. You can find it in the "spoiler.css" file in:
...yourforum/clientscript/vbulletin_css/spoiler.css

Hell Bomb
11-21-2009, 06:35 PM
any change this becoming a 3.8 mod?

Warlord
11-26-2009, 01:33 AM
To install this on the quick reply edit the showthread_quickreply template

Find:

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
</if>

Add after:

<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_spoiler"><img src="$stylevar[imgdir_editor]/spoiler.gif" alt="[SPOILER]" width="21" height="20" border="0" /></div></td>

EDIT: I created my own BB Code the old fashioned way and did not install this mod so to speak, but I don't see why it wouldn't work on 3.8

If not, just add the following BB Code.

In the Admin CP Click Custom BB Codes then select Add New BB Code. Fill in the blanks with this information.

Title: Spoiler
BB Code Tag Name: spoiler
Replacement:
<div style="margin:5px 20px 20px 20px">

<div class="smallfont" style="margin-bottom:2px"><b>Spoiler:</b>

<input type="button" value="Click to Reveal" style="width:100px;font-size:10px;margin:0px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName(' div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('d iv')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">

</div>

<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">

<div style="display: none;">

{param}

</div>

</div>
Example: This text is Animation Spoiler
Description: The [spoiler] tag allows you hide your text.

Make sure you upload the attached image to forumroot/images/editor.

Skyrider
12-23-2009, 05:54 PM
Will this work for vBulletin 4 by any chance?

Ghostt
01-04-2010, 11:49 PM
will that problem fixed soon or no chance to fix it??

1. Not work if a quick reply or quick edit with AJAX functions was used for adding spoiler to post. You must reload page.

/EDIT
thx at Hubbitus ! your fix fixed it :)

Makc666
01-28-2010, 07:01 AM
There is a little bug here.

This product doesn't handle private messages.

The fix is very simple.

Just add this one to plugins section:

<plugin active="1" executionorder="5">
<title>BBCode [spoiler]: private</title>
<hookname>private_complete</hookname>
<phpcode><![CDATA[eval('$headinclude .= "' . fetch_template('spoiler_connector') . '";');]]></phpcode>
</plugin>

edytwinky
01-30-2010, 02:10 PM
Will this work for vBulletin 4 by any chance?

Nope. Did not work for me on the install

topper_grave
04-01-2010, 05:56 PM
Have been using this Spoiler for ages now, and I love it dearly, but it does not work in PM's or in Visitor Messages.

Does anyone know how to enable this in PM's and Visitor Messaging? I tried to use Makc666's example to make spoilers in PM's work, but I have no idea what to put in the Hook field for example.