The Arcive of vBulletin Modifications Site. |
|
Better Spoiler bb code Details »»
|
|||||||||||||||||||||||||
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:
<div id="spoiler"><div><input type="button" value="Show Spoiler!" style="width:100px;font-size:12px;margin:10px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'Hide Spoiler!'; } else { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = ''; this.innerText = ''; this.value = 'Show Spoiler!'; }" />
<div id="show" style="background-image:url(http://img37.picoodle.com/img/img37/5/11/7/f_backgroundm_872c796.png); display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-style:solid;border-width:1px; padding: 4px; width:98%">
{param}</div>
<div id="hide"></div></div></div>
Use Option: No With Title Title: Spoiler (With Title) Tag: spoil Replacement: Code:
<div id="spoiler"><div><font size="4">{option}</font><input type="button" value="Show Spoiler!" style="width:100px;font-size:12px;margin-left:10px;margin-bottom:3px;padding:0px;" onclick="if (this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = ''; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = 'none'; this.innerText = ''; this.value = 'Hide Spoiler!'; } else { this.parentNode.parentNode.getElementsByTagName('div')['show'].style.display = 'none'; this.parentNode.parentNode.getElementsByTagName('div')['hide'].style.display = ''; this.innerText = ''; this.value = 'Show Spoiler!'; }" />
<div id="show" style="background-image:url(http://img37.picoodle.com/img/img37/5/11/7/f_backgroundm_872c796.png); display: none; background-color:transparent; background-repeat:repeat; margin: 0px;border-style:solid;border-width:1px; padding: 4px; width:98%">
{param}</div>
<div id="hide"></div></div></div>
Use Option: Yes Screenshot ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
thanks much - here is the image so people can upload it to their own server. Can the hidden text be viewed in archive mode?
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
||||
|
||||
|
no go error
Warning: sprintf() [function.sprintf]: Too few arguments in includes\class_bbcode.php on line 1115 |
|
#5
|
|||
|
|||
|
I get this error also.
Other than that it looks good. |
|
#6
|
||||
|
||||
|
Very, very cool. I like it.
![]() [high]* projectego clicks install[/high] |
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
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 |
|
#10
|
|||
|
|||
|
Quote:
Just change picture link to you. |
![]() |
|
|