MyBB Community Forums

Full Version: Problem while Saving Template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After i save my templates it becomes like this :

<html>
<head>
<title>My Forums</title>

{$headerinclude}
<script type=\"text/javascript\">
<!--
lang.no_new_posts = \"{$lang->no_new_posts}\";
lang.click_mark_read = \"{$lang->click_mark_read}\";
// -->
</script>
</head>
<body>
{$header}
{$forums}
{$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>

i don't know why the "\" and "/" are being placed everywhere..anyone plz help !!


Ask your host to disable magic quotes.
Will that work ?
Yes.
doers the host have to do this or can i do it myself ?
You should be able to disable it in php.ini or the .htaccess file. If you have a php.ini file in your public_html or http directory, find the magic quotes function and set it to off, as below:
magic_quotes_gpc = Off


Otherwise, you can add this line to your .htaccess file:
php_flag magic_quotes_gpc Off