MyBB Community Forums

Full Version: Template editing is odd.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
ok, whenever i save a template it escapes every " and ' with \" and \'...

Example:
<html>
<head>
<title>{$mybb->settings[\'bbname\']}</title>
{$headerinclude}</br>{$myannouncements}
<script type=\"text/javascript\">
<!--
	lang.no_new_posts = \"{$lang->no_new_posts}\";
	lang.click_mark_read = \"{$lang->click_mark_read}\";
// -->
</script>
</head>
<body>
{$header}{$tabmenu}
{$ps_header_index}
{$forums}
<script type=\"text/javascript\">
<!--//
var myflowers=new ddtabcontent(\"menutabs\")
myflowers.setpersist(true)
myflowers.init()
-->
</script>

{$ps_footer_index}
{$boardstats}

<dl class=\"forum_legend smalltext\">
	<dt><img src=\"{$theme[\'imgdir\']}/on.gif\" alt=\"{$lang->new_posts}\" title=\"{$lang->new_posts}\" style=\"vertical-align: middle; padding-bottom: 4px;\" /></dt>
	<dd>{$lang->new_posts}</dd>

	<dt><img src=\"{$theme[\'imgdir\']}/off.gif\" alt=\"{$lang->no_new_posts}\" title=\"{$lang->no_new_posts}\" style=\"vertical-align: middle; padding-bottom: 4px;\" /></dt>
	<dd>{$lang->no_new_posts}</dd>

	<dt><img src=\"{$theme[\'imgdir\']}/offlock.gif\" alt=\"{$lang->forum_locked}\" title=\"{$lang->forum_locked}\" style=\"vertical-align: middle;\" /></dt>
	<dd>{$lang->forum_locked}</dd>
</dl>
<br style=\"clear: both\" />
{$footer}
</body>
</html>

It means I cant edit any templates, and are forced to revert the templates, meaning I have to reinstall every plugin.
I believe it has something to do with magicquotes....
But template editing was fine a few days ago Sad
There's hundreds of threads on this; your host would just have upgraded to 5.3 where it became a problem.