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:
Example: [spoiler]This is a test[/spoiler]
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)
Demo: The quick SPOILER jumps over the SPOILER .
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>
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)
Demo: The quick SPOILER jumps over the SPOILER .
Comment