Quote:
08-15-03 at 01:20 PM Beorn said this in Post #76
I'm not sure what the problem is. Change the while line to the about 20 lines provided in the hacking instructions...
|
if i am to understand correctly i would change this code
PHP Code:
while ($post=$DB_site->fetch_array($posts) and $counter++<$perpage) {
if ($postdone[$post[postid]]) {
$counter--;
continue;
} else {
$postdone[$post[postid]]=1;
}
$onlinestat = "";
if(($post[miserable] == 1) || ($post[stunned] & 4)){
if(($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) {
$onlinestat = "$onlinestat<br><font color=\"red\"><b>Miserable User</b></font>";
}
}
$post[posts]="$post[posts]$onlinestat";
to this code?
PHP Code:
// Copyright ? 2003 Michael Benza. All Rights Reserved
// <a href="http://www.benza.us" target="_blank">[url]http://www.benza.us[/url]</a>
$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")."\";");
}
if ($postdone[$post[postid]]) {
$counter--;
continue;
} else {
$postdone[$post[postid]]=1;
}
$onlinestat = "";
if(($post[miserable] == 1) || ($post[stunned] & 4)){
if(($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) {
$onlinestat = "$onlinestat<br><font color=\"red\"><b>Miserable User</b></font>";
}
}
$post[posts]="$post[posts]$onlinestat";
// END WARNING SYSTEM!
one bracket can mess everything up, i want to be certain i am doing this correct