Thread Rating, Code Tag URLS & MyCode
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #7
RE: Thread Rating, Code Tag URLS & MyCode
I am not sure if this is ok, but I have this mycode spoiler on my board. You can type as below

Code:
[info]
[img]http://static.modthesims2.com/customavatars/avatar318435_2.gif[/img]
[/info]
blablabla


Here is the spoiler code: - I have no idea if it is "safe" - you would have to ask Zinga.... I think it is not TBH.

Code:
<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em;"><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: block;"><span onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') {  this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerHTML = '<b>Info: </b><a href=\'#\' onClick=\'return false;\'>Hide This Info</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Info: </b><a href=\'#\' onClick=\'return false;\'>Show More Info</a>'; }" /><b>Info: </b><a href="#" onClick="return false;">Show More Info</a></span></div><div class="quotecontent"><div style="display: none;">$1</div></div></div>


Regular expression:

Code:
\[info\](.*?)\[/info\]



[Image: leelink.gif]
MYBB1.6 & XThreads
11-15-2010 09:54 PM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Thread Rating, Code Tag URLS & MyCode - leefish - 11-15-2010 09:54 PM

 Standard Tools
Forum Jump: