MyBB Community Forums

Full Version: Issues with templatings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm trying to install this plugin:

http://community.mybb.com/thread-84481.html

And I need to add this code to postbit & postbit_classic:

<script type="text/javascript">
    if(use_xmlhttprequest == "1")
    {
        new PopupMenu("profile_{$post['pid']}");
    }
</script> 

When I save it automatically it changes to this code:

<script type="text/javascript">
&nbsp;&nbsp;&nbsp; if(use_xmlhttprequest == "1")
&nbsp;&nbsp;&nbsp; {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new PopupMenu("profile_{$post['pid']}");
&nbsp;&nbsp;&nbsp; }
</script>

So, I can't install correctly this plugin.

Can anyone help me?

Thanks in advance.
admin control panel --> preferences --> Turn on / off Codepress <-- set to OFF & save settings

then add the code by deleting the earlier pasted code ..
Go to Admin CP > Home > Preferences > Turn on / off Codepress > Off.

Codepress is buggy and does this very often. Disable it and you should be able to save templates just fine then!