use spoiler ?

xasanofa

New Member
Please anybody know how to use a spoiler in VB 3.8.1 ? I've been instaled on my system but can't use it :-)..please help me..maybe other members hava same problem with me
 
its like a
Code:
 but hidden, and when you press button next to that hidden space, the stuff inside of that hidden box shows up.. Basic BB code...
 
Here...Use this one:
AdminCP->Custom BB Codes->Add New BB Code.

Title: Spoiler
BB Code Tag Name: spoiler
Replacement:
Code:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px"><b>Spoiler ^_^</b><i></i> <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('div')[1].getElementsByTagName('div')[0].style.display = '';		this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[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>
Example:
Test 1,2,3
Description: Use this to hide important information which might spoil a movie, program, etc for other users.
Use {option}: No
Remove Tag If Empty: Yes
Disable BB Code Within This BB Code: No
Disable Smilies Within This BB Code: No
Disable Word Wrapping Within This BB Code: No
 
Back
Top