MyBB Community Forums

Full Version: Spoiler's froze.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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 ..
http://gamer-freakz.com

Username: MyBBSupport
Password: mybb123

Spoiler thread: http://gamer-freakz.com/thread-403-post-1589.html

Code used: http://mybbgroup.com/mybb-spoiler-easy-m...b-spoiler/

I have no idea why it is doing this but no other codes or plugins work.. they just do that, so i don't know what it is.
Anybody seen it?
http://gyazo.com/3b8ba169830385a9b9ddea5238355eec

It works fine when testing in admin cp mycode but whenever i go into the post.. it doesn't work, someone help Sad
I recommend trying this. This has worked for my site in the past:

http://mods.mybb.com/view/spoiler-bbcode
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
Pages: 1 2