MyBB Community Forums
Yet another spoiler tag - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Requests (https://community.mybb.com/forum-65.html)
+---- Thread: Yet another spoiler tag (/thread-23142.html)



Yet another spoiler tag - ElTopo - 2006-10-10

Hi,

I have a simple spoiler tag implemented using 'MyCode'

Regular expression
\[spoiler\](.*?)\[/spoiler\]
Relacement
<div style="font-weight: bold; color: grey; background-color: grey;">$1</div>

This generally works well, except that I cannot hide images/color characters.

So I am requesting a click-to-view spoiler tag (maybe used with [spoiler2] tag)

all spoiler section is initially hidden, user has to click on [Show] button to show it:
[Image: spshow.png]
then the button changes to [Hide], click it again to hide the spoiler:
[Image: sphide.png]

Thanks!


RE: Yet another spoiler tag - User 2877 - 2006-10-15

http://www.mybbcentral.com/showthread.php?tid=2

A complete spoiler tag with mouseover.