REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spoiler mycode
#1
Ask and you shall recieve.

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 #cccccc;}
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>

Change to suit your needs.  Works in IE, FF, and Opera.  

You can see it in action here:

http://www.pokemonboard.com/showthread.php?tid=150
Please let me know if you have any problems.
Reply


Messages In This Thread
Spoiler mycode - by labrocca - Oct 15, 2006, 03:13 AM
RE: Spoiler mycode - by labrocca - Oct 15, 2006, 03:15 AM
RE: Spoiler mycode - by labrocca - Oct 18, 2006, 01:51 PM
RE: Spoiler mycode - by CiLiBi18 - Nov 01, 2006, 04:26 PM
RE: Spoiler mycode - by XxAnimusxX - Dec 29, 2006, 12:43 PM
RE: Spoiler mycode - by banana29 - Nov 09, 2007, 10:35 AM
RE: Spoiler mycode - by splatzone - Dec 18, 2007, 03:29 PM
RE: Spoiler mycode - by slappymancuso - Jan 20, 2008, 03:44 AM
RE: Spoiler mycode - by exarchate - Feb 26, 2008, 10:06 AM
RE: Spoiler mycode - by exarchate - Feb 26, 2008, 10:44 AM
RE: Spoiler mycode - by exarchate - Feb 27, 2008, 06:09 AM
RE: Spoiler mycode - by judel - Feb 27, 2008, 05:56 PM
RE: Spoiler mycode - by IBO_VM - May 09, 2008, 12:55 AM
RE: Spoiler mycode - by Ooka - Jul 08, 2008, 07:10 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  MyCode Issues / Help / Guidance coolbud012 0 688 Oct 22, 2013, 08:55 AM
Last Post: coolbud012
  Using some MyCode in [CODE] boxes. Tekno Venus 2 1,021 Aug 26, 2012, 04:19 PM
Last Post: Tekno Venus
  How to add mycode for a click to PM hostpro 0 823 Mar 24, 2012, 04:32 PM
Last Post: hostpro
  Spoiler Plugin [With Button[ S.T.A.R.S 2 2,000 Nov 19, 2011, 03:00 AM
Last Post: mybbk
  Mycode privileges ? i3urn 3 1,435 Jun 27, 2011, 08:34 AM
Last Post: Oliver Evans

Forum Jump:


Users browsing this thread: 1 Guest(s)