MyBB Community Forums

Full Version: template check
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When i did template check i get dis errror



The following errors were encountered:

-The templates below matched known security issues. Please review them.

Check Templates
pointsinpost_listposts_points_table Options
<tr class="{$bgcolor}">
<td valign="top">
<span class="smalltext">
{$lang->thread}: {$thread['subject']}<br />
{$lang->psubject}: {$post['subject']}
<br />
<table width="100%"><tr><td><span class="smalltext"><em>{$message }</em></span></td></tr></table>
</span></td>
<td align="center">{$username}</td>
<td align="center">{$forum}</td>
<td align="center"><a href="javascript:MyBB.whoPosted({$post['tid']});">{$thread['replies']}</a></td>
<td align="center">{$thread['views']}</td>
<td align="center"><b>{$post['points']}</b></td>
</tr>

pointsinpost_table_postbit Options
<tr>
<td class="trow1">
<div id="pointsaddsuccess"><center><strong>{$lang->give_points} {$post['postpoints']}</strong></center></div>
</td>
</tr>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/PostInPoints.js"></script>
<script type="text/javascript">
	var uid = {$post['uid']};
	var udid = {$mybb->user['uid']};
	var pid = {$post['pid']};
	var tid = {$post['tid']};
	var numpointsgroup = {$usergroups[$mybb->user['usergroup']]['pointsaddpost']};
</script>

pointsinpost_table_postbit_classic option
<tr>
<td class="trow1" colspan="2">
<div id="pointsaddsuccess"><center><strong>{$lang->give_points} {$post['postpoints']}</strong></center></div>
</td>
</tr>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/PostInPoints.js"></script>
<script type="text/javascript">
	var uid = {$post['uid']};
	var udid = {$mybb->user['uid']};
	var pid = {$post['pid']};
	var tid = {$post['tid']};
	var numpointsgroup = {$usergroups[$mybb->user['usergroup']]['pointsaddpost']};
</script>


http://friznioz.6te.net
user:test
pas:Tester1
(2012-07-30, 09:50 AM)pertono Wrote: [ -> ]When i did template check i get dis errror



The following errors were encountered:

-The templates below matched known security issues. Please review them.

Check Templates
pointsinpost_listposts_points_table Options
<tr class="{$bgcolor}">
<td valign="top">
<span class="smalltext">
{$lang->thread}: {$thread['subject']}<br />
{$lang->psubject}: {$post['subject']}
<br />
<table width="100%"><tr><td><span class="smalltext"><em>{$message }</em></span></td></tr></table>
</span></td>
<td align="center">{$username}</td>
<td align="center">{$forum}</td>
<td align="center"><a href="javascript:MyBB.whoPosted({$post['tid']});">{$thread['replies']}</a></td>
<td align="center">{$thread['views']}</td>
<td align="center"><b>{$post['points']}</b></td>
</tr>

pointsinpost_table_postbit Options
<tr>
<td class="trow1">
<div id="pointsaddsuccess"><center><strong>{$lang->give_points} {$post['postpoints']}</strong></center></div>
</td>
</tr>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/PostInPoints.js"></script>
<script type="text/javascript">
	var uid = {$post['uid']};
	var udid = {$mybb->user['uid']};
	var pid = {$post['pid']};
	var tid = {$post['tid']};
	var numpointsgroup = {$usergroups[$mybb->user['usergroup']]['pointsaddpost']};
</script>

pointsinpost_table_postbit_classic option
<tr>
<td class="trow1" colspan="2">
<div id="pointsaddsuccess"><center><strong>{$lang->give_points} {$post['postpoints']}</strong></center></div>
</td>
</tr>
<script type="text/javascript" src="{$mybb->settings['bburl']}/jscripts/PostInPoints.js"></script>
<script type="text/javascript">
	var uid = {$post['uid']};
	var udid = {$mybb->user['uid']};
	var pid = {$post['pid']};
	var tid = {$post['tid']};
	var numpointsgroup = {$usergroups[$mybb->user['usergroup']]['pointsaddpost']};
</script>


http://friznioz.6te.net
user:test
pas:Tester1

How do i fix the error?
still need help. pleas support
The first template has a space in the message var:
{$message }

I can't see the problem in the second template.
The problem is probably: {$usergroups[$mybb->user['usergroup']]['pointsaddpost']}
(2012-08-02, 06:40 PM)Paul H. Wrote: [ -> ]The first template has a space in the message var:
{$message }

I can't see the problem in the second template.

First template is fix thanks to you , need other 2 template to get fixt.

(2012-08-03, 05:57 PM)pertono Wrote: [ -> ]
(2012-08-02, 06:40 PM)Paul H. Wrote: [ -> ]The first template has a space in the message var:
{$message }

I can't see the problem in the second template.

First template is fix thanks to you , need other 2 template to get fixt.

Did again recheck template now one more is moved.
only have problem with pointsinpost_table_postbit_classic