Hello, everytime i install a spoiler mycode or plugin, the spoiler works but does not open when clicked open or show. This has been happening for a while and i thought maybe it's a installed plugin which i removed but is still active? although spoiler is not working when i delete the files.. is there anything i should check or try because spoilers are needed for Graphics section.
give forum URL and a test user account so that someone can check it ..
Neither of them work, they all work on a testing mybb i have.. they work when you test them in MyCode in admin cp but they do not work when in a post.
Try this for Regex:
\[spoiler\](.*?)\[/spoiler\]
Replacement:
<div>
<div style="border: 1px solid green;margin: 0 15px 5px 15px;background: #ffffff;padding: 3px 5px 3px 5px;font-weight: bold;text-align: right;color: #404040;">
<span style="float:left; padding-top: 2px;">Spoiler</span> <input type="button" value="Show" style="width:80px;font-size:10px;margin:0px;padding:0px;" 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.innerText = ''; this.value = 'hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.value = 'Show';}">
</div>
<div>
<div style="background: #ffffff;margin: 0 15px 15px 15px;padding: 5px;border: 1px solid green;display: none;">
$1
</div>
</div>
</div>
NONE OF THEM WORK, THEY ALL WORK IN THE ADMINCP MYCODE TEST BUT WHENEVER I PUT THEM IN A POST, THEY DON'T OPEN.
wow, sorry.. didn't know caps was on
hello?
i am new using this
Replacement:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px; width:852; height:26"> <span> <b>Content Spoiler</b>: </span> <input type="button" class="button" value="Show" 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.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"> </div> <div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;"> <div style="display: none;"> $1 </div> </div> </div>
and \[hide\](.*?)\[/hide\] as expression and it still does not work..
http://gamer-freakz.com/thread-403.html