Quote:
Today at 01:56 PM Boofo said this in Post #7
Zzed, I have both hacks installed. Is this what my showthread.php should look like now?
Also, I have the user's avatar on the forumhome_pmloggedin and it still shows (not the red X) Any way to fix that?
|
Boofo, the way you have yours set up it will show either miserable, or starved but not both.
They should be changed to 2 successive if() statements. like this:
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) {
if(($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) {
$onlinestat = "$onlinestat<br><font color=\"green\"><b>Miserable User</b></font>";
}
}
if($post[starved] == 1) {
if(($bbuserinfo[usergroupid] == 5) or ($bbuserinfo[usergroupid] == 6) or ($bbuserinfo[usergroupid] == 7)) {
$onlinestat = "$onlinestat<br><font color=\"red\"><b>Starved User</b></font>";
}
}
$post[posts]="$post[posts]$onlinestat";
$post[postcount] = ++$postcount;
$post[totalposts] = $totalposts;
$postbits .= iif(empty($postbits), '', '<br>').getpostbit($post);
}