MyBB Community Forums
Spoiler Help - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: Spoiler Help (/thread-108874.html)



Spoiler Help - aidzocfc1 - 2011-12-01

ok so i am trying to add this to my forum but its not working
I am not sure on how to do the css part where do i put it


Add this to your themes additional css:

Code:
a.spoiler, a.spoiler:visited, a.spoiler:active, a.spoiler:hover {color:#000; background:#fff; border: 1px dotted #ccc; text-decoration:none;}
a.spoiler span {display:none;}
a.spoiler:hover {border: 1px dotted #cc;}
a.spoiler:hover span {display:inline; font-weight:normal;}

Then create a new custom mycode inside admincp.

Regular Expression:
Code:
\[spoiler\](.*?)\[/spoiler\]

Replacement:
Code:
<a href="#" class="spoiler">Spoiler: <span>$1</span></a>



RE: Spoiler Help - ranjani - 2011-12-02

put above given css part at the bottom of global.css through admin panel & save the stylesheet

admin panel --> themes --> current theme --> global.css --> Edit Stylesheet: Advanced Mode