MyBB Community Forums

Full Version: Cant edit template. Gives error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Whenever I try to make any template edits, I get this error :

The following errors were encountered:

A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.

This happened after the upgrade. Please help. Huh
Your template most likely contains one of these variables:

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

Post the contents of the template you're trying to edit so we can take a look at the code.
Here's the header template I am trying to modify :

<navigation>
{$affiliates_header}
<div id="header">
<span style="float:right">
<div id="welcome" style="text-align: left; color: #ffffff; text-shadow: 0 1px 0 #000; width: 510px; padding-top: 3px;">
{$welcomeblock}
</div>
</span>
<a href="{$mybb->settings['bburl']}"><img src="{$theme['imgdir']}/logo.png" style="margin-right: 30px;"></a><img src="{$theme['imgdir']}/sep.png">
</div>
<div id="container">
<div id="toplinks">
<ul>
<span style="float:right">
<li><a href="{$mybb->settings['homeurl']}"><img src="{$theme['imgdir']}/toplinks/home.png" alt="Home">&nbsp;Home&nbsp;</a></li>
<li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$theme['imgdir']}/toplinks/forums.png" alt="Members">&nbsp;Members&nbsp;</a></li>
<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$theme['imgdir']}/toplinks/demo.png" alt="Search">&nbsp;Search&nbsp;</a></li>
<li><a href="{$mybb->settings['bburl']}/myawards.php"><img src="{$theme['imgdir']}/toplinks/awards.png" alt="Awards">&nbsp;Awards&nbsp;</a></li>
<li><a href="{$mybb->settings['#']}"><img src="{$theme['imgdir']}/toplinks/purchase.png" alt="Upgrade">&nbsp;Upgrade&nbsp;</a></li>
<li><a href="{$mybb->settings['bburl']}/contact.php"><img src="{$theme['imgdir']}/toplinks/contact.png" alt="Contact">&nbsp;Contact&nbsp;</a></li>
</span>
<li class="nomarg">
<a href="{$mybb->settings['bburl']}/usercp.php"><img src="{$theme['imgdir']}/toplinks/usercp.png" alt="User CP">&nbsp;User CP&nbsp;</a>
{$modcplink}
{$admincplink}
</li>
<li><a href="#"><img src="{$theme['imgdir']}/toplinks/links.png" alt="Forum Links">&nbsp;Forum Links&nbsp;</a>
<ul>
                    <li><a href="{$mybb->settings['bburl']}/search.php?action=getnew">View New Posts</a></li>
                    <li><a href="{$mybb->settings['bburl']}/search.php?action=getdaily">View Todays Posts</a></li>
                    <li><a href="{$mybb->settings['bburl']}/search.php?action=finduserthreads&uid={$mybb->user['uid']}">View Your Threads</a></li>
</ul>
</li>
</ul>
</div>
<br />
<br />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
 {$headerannounce}
			{$pending_joinrequests}
			<br />


BTW, my forum link is here : avidcoders.com
It was this line that was causing the issue:

<li><a href="{$mybb->settings['#']}"><img src="{$theme['imgdir']}/toplinks/purchase.png" alt="Upgrade">&nbsp;Upgrade&nbsp;</a></li>

It should be:

<li><a href="{$mybb->settings['bburl']}"><img src="{$theme['imgdir']}/toplinks/purchase.png" alt="Upgrade">&nbsp;Upgrade&nbsp;</a></li>

But I'm not sure why it was considering it as a security risk, I don't think it could do anything bad. Do we have a bug here?
Thanks a lot! Works like charm. Big Grin