View Full Version : BB Code Enhancements - Spoiler BB Code
finalcuthalo
08-05-2008, 10:00 PM
Spoiler BB Code
A simple spoiler BB Code with a show/hide button.
Usage: the cake is a lie
Tag Name: Spoiler
Replacement:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler</b> <input type="button" value="Show" style="width:45px;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>
</div>
Q-v-n-s-Q
08-06-2008, 05:48 AM
- reserved -
VanDaMe
08-06-2008, 08:58 AM
waiting for the files :D
Internetcafe
08-06-2008, 10:32 AM
waiting for the files :D
Could be a long wait ;)
iNRoC
08-06-2008, 12:58 PM
Kool
Digital Jedi
08-06-2008, 01:39 PM
Could be a long wait ;)
Really long wait. :D
mark370
08-06-2008, 04:38 PM
waiting for the files :D
Lol There Is No Files M8 Just Add To Your Custom BB Codes In ACP :D
agitated
08-06-2008, 06:01 PM
:confused: and the difference is ?
https://vborg.vbsupport.ru/showthread.php?t=184855
dartho
08-06-2008, 10:12 PM
:confused: and the difference is ?
https://vborg.vbsupport.ru/showthread.php?t=184855
They're heaps different - that one underlines the word Spoiler, this one bolds it ... :rolleyes:
Karri
08-07-2008, 04:37 PM
so in other words, yet another person that didn't actually create the code they are claiming credit for. :rolleyes:
Twilkey
08-08-2008, 01:40 AM
Actually I am a friend of finals and he doesnt copy others work.
Karri
08-08-2008, 02:27 PM
Guess it is just a total coincidence that he managed to come up with the exact same code as the other mentioned mod or as code that was being used on live sites since at least 2005.
GaiLoan
08-09-2008, 09:16 AM
nice thanks
Twilkey
08-10-2008, 04:29 AM
Guess it is just a total coincidence that he managed to come up with the exact same code as the other mentioned mod or as code that was being used on live sites since at least 2005.
I have seen alot of people get accused of copying others. I have seen final code alot of things. He has things that he has made that hasnt been released here. He doesnt really have to copy someone else. Plus this is a very simple mod that a noob could make. If he was going to copy someone, why copy this?
Thanks alot...this one is much more different and usefull then the link agitated provided.
Cheers
Nadeemjp
12-03-2008, 01:02 AM
it is not displaying properly:(
zombietom
07-18-2009, 02:51 PM
Excellent! Works great and my members have been asking for it.
thanks and i clicked installed!
EDIT: I made a quick button to use in advance mode,it's noting special but it will do .
https://vborg.vbsupport.ru/external/2009/07/36.jpg
JαρŘα?σoζ
09-20-2009, 07:28 AM
How can I add spoiler title, anyone can help me with this?
So it's like:
Spoiler for Anime: <button show>
- The contents (like quote) -
GamerFill
12-16-2010, 06:15 AM
Great stuff! Works wonders for the GamerFill community!
Thank you!
lpetrich
09-21-2013, 04:13 AM
To control the title, change the label into {option} and for "Use {option}" select "Yes". It will then work with hidden text
BTW, I know someone who is having trouble with Google Chrome -- the code does not work properly with that browser. It doesn't hide or at least re-hide.
ETA: You have to make a separate definition for a version that uses {option}, but they can have the same tag -- both can be "hide".
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.