How to add Spoiler BBCode in vB5

mahimapu

SN Confirmed Member
Do you want your forum users to easily post spoiler alerts?

Go to AdminCP > Custom BB Codes > Add New BB Code and enter the following information:

Title: Spoiler
BB Code Tag Name: spoiler
Replacement:

Code:
<span style="cursor:pointer; border:1px solid red;padding:2px; color:red" onclick="this.nextSibling.style.display='';this.style.display='none'" title="Click to show content">SPOILER</span><span style="display:none; cursor:pointer; border:1px dotted #000; padding:2px" onclick="this.previousSibling.style.display='';this.style.display='none'" title="Click to hide content">{param}</span>

Example:
This is a test
Other Options: <use default> (for Button Image option, you could specify image path. If specified, a new button for this BB Code will appear in the editor)

Screenshots : Screenshot


Thanks to the Original Mod Creator - glennrocksvb

--- Posts Merged by Spam-Bot ---
Example: Screenshot should be like this..as this forum have spoiler tag.. the text have been hidded by the spoiler tag...
 
Top