View Full Version : Spoiler search fix
El_Muerte
06 Oct 2005, 17:45
Quite some forums have a [spoiler] tag to remove content until the user requests it. However, when searching the forum the content within the spoiler will be visible (when results are shown as posts).
This plugin will remove the content of the spoiler with the text " [[spoiler removed]]" (you can change the phrase through the phrase manager, id: spoilerfix_replacement)
http://www.vbulletin.org/forum/attachment.php?attachmentid=35361&stc=1
And as extra, this is the replacement HTML I use for the spoiler tag on my forum:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
It will look like this:
http://www.vbulletin.org/forum/attachment.php?attachmentid=35362&stc=1
Live demo (http://el-muerte.student.utwente.nl/lba/forum/misc.php?do=bbcode#spoiler) of this spoiler tag
Does this also include the [spoiler] code itself for threads? I need that too...
edit: It doesn't. Can that be added or can you not do replacement stuff in plugins/products?
Blam Forumz
07 Oct 2005, 19:24
Yes, please include the spoiler tag code
El_Muerte
07 Oct 2005, 23:29
vbcodes can't be included in products (well, not easily)
all you've got to do is create a new vbcode with the tag name "spoiler" and use the replacement HTML I posted above.
wolfyman
08 Oct 2005, 17:57
very nice, thanks :)
MetalAges
01 Nov 2005, 22:58
Just a quick question. Say a guy has a 5meg video clip in his spoiler tag...will it only load if someone clicks to "show" ?
El_Muerte
02 Nov 2005, 06:26
Just a quick question. Say a guy has a 5meg video clip in his spoiler tag...will it only load if someone clicks to "show" ?
I doubt it. It's up to the plugin and browser settings I guess.
Pvtiste
30 Nov 2005, 13:35
very nice ! thx
aciurczak
30 Nov 2005, 19:52
This is nice (and needed), but folks can still see the spoiler contents with the mouseover preview ( tooltips ). I don't want to disable those previews; is there any way to blank the content within the spoiler tag from being shown in those?
El_Muerte
01 Dec 2005, 08:37
This is nice (and needed), but folks can still see the spoiler contents with the mouseover preview ( tooltips ). I don't want to disable those previews; is there any way to blank the content within the spoiler tag from being shown in those?
I checked it out and there is no way to fix the thread previews :(
There's no way to hook into the processing before the vbtags are removed.
I personally like the text link instead of the button link. Just do an <a> and use an onClick parameter to send info to the nodes.
Very nice. How about another button? After you clicked "show spoiler" you will see "hide spoiler" and you can hide it again ^^.
Very nice. How about another button? After you clicked "show spoiler" you will see "hide spoiler" and you can hide it again ^^.
This is what I use for that
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Ok,
i used SPOILER in my old forum. But now on 3.5.2 he dosn't want to work ? Any ideea ? I don't really understand what this hack do.
EDIT: Actualy, if I create a new spoiler he works. But old spoilers don't want to work. I just see the button, click it and...nothing.
This is what I use for that
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Okay, that is just WAY cool. It's clean and perfect and my users love it! Thanks.
I love how the button says "Show" when the text is hidden ... and "Hide" when the text is showing. However, this doesn't work on Safari (for Mac.) Any workaround?
cclaerhout
09 Jan 2006, 10:48
Thank you ! Great bbcode.
Nigh7mar3
05 Feb 2006, 12:44
No one have a cool button to insert spoiler code?
Thanks nice mod
cerebro
24 Feb 2006, 15:35
Thanks, works fine in explorer and firefox
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.