when i add the code
Code:
$WarnUserGroups = explode(",",$WarnUserGroups);
$WarnUserGroupsView = explode(",",$WarnUserGroupsView);
$WarnUserGroupsSum = explode(",",$WarnUserGroupsSum);
$WarnUserGroupsUnwarnable = explode(",",$WarnUserGroupsUnwarnable);
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
if($WarnOnOff) {
if(in_array($bbuserinfo['usergroupid'],$WarnUserGroupsSum)) {
eval("\$post['warninglvlwords'] = \"".gettemplate("warn_postbitsum")."\";");
}
if(in_array($bbuserinfo['usergroupid'],$WarnUserGroupsView)) {
eval("\$post['viewwarnings'] = \"".gettemplate("warn_postbitview")."\";");
}
if(in_array($bbuserinfo['usergroupid'],$WarnUserGroups) && !in_array($post['usergroupid'],$WarnUserGroupsUnwarnable)) {
eval("\$post['addwarning'] = \"".gettemplate("warn_postbitadd")."\";");
}
if($post['warninglvlwords'] || $post['viewwarnings'] || $post['addwarning']) {
eval("\$post[warnlink] = \"".gettemplate("warn_postbitaddin")."\";");
}
}
iget unexcept $ on the very last line.......which is after ?> which doesn't exsist