adding spoiler mycode
#1
Here how to add spoiler mycode

Title:
Make any title you like

Short Description:
Any description

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

Replacement:
<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em; width: 100%;" ><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: balock;"><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>Spoiler </b><a href=\'#\' onClick=\'return false;\'>Hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Spoiler </b><a href=\'#\' onClick=\'return false;\'>Show</a>'; }" /><b>Spoiler </b><a href="#" onClick="return false;">Show</a></span></div><div class="quotecontent"><div style="display: none;">$1</div></div></div>

Use:
[spoiler]text[/spoiler]


Attached Files Thumbnail(s)
       
Reply
#2
(2012-05-28, 08:53 AM)Muhammad99Izzat Wrote: Here how to add spoiler mycode

Title:
Make any title you like

Short Description:
Any description

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

Replacement:
<div style="padding: 3px; background-color: #FFFFFF; border: 1px solid #d8d8d8; font-size: 1em; width: 100%;" ><div style="text-transform: uppercase; border-bottom: 1px solid #CCCCCC; margin-bottom: 3px; font-size: 0.8em; font-weight: bold; display: balock;"><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>Spoiler </b><a href=\'#\' onClick=\'return false;\'>Hide</a>'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerHTML = '<b>Spoiler </b><a href=\'#\' onClick=\'return false;\'>Show</a>'; }" /><b>Spoiler </b><a href="#" onClick="return false;">Show</a></span></div><div class="quotecontent"><div style="display: none;">$1</div></div></div>

Use:
[spoiler]text[/spoiler]

Thanks!
Reply
#3
There's an error in that code.

This:
display: balock;

Should be this:
display: block;

There no such css as "display: balock;". That's a typo error.
Reply
#4
Best Spoiler code in mybb spoiler history Wink
+ rep
damn you are banned :/
MyBB From My Beautiful Board Heart
Reply
#5
Works grate thanks man. Big Grin
Reply
#6
Thxx, finly it does work Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)