Quote:
Originally posted by inetd
I need next:
If the user did not come on a forum of XX days, irrespective of quantity of his reports - he inactive
If at the user of 0 reports - he too inactive
Help me.
|
lol, what a very nice request ;p
Anyway, find this in the inactiveusers.php
PHP Code:
$isinactive=$ddate-$row["joindate"];
if (($row["lastpost"]==0)&&($isinactive>$timeactive)) {
$yninactive="<font color=\"#FF0000\"><a href=\"user.php?s=$session[sessionhash]&action=remove&userid=".$row["userid"]."\" target='_blank'>YES!</a></font>";
} else {
$yninactive="No</font>";
}
if you just take out the $row["lastpost"]==0 part it will do what you want (thought I'm not sure what you mean by.. 'too inactive'.
So
replace the code above with:
PHP Code:
$isinactive=$ddate-$row["joindate"];
if ($isinactive>$timeactive) {
$yninactive="<font color=\"#FF0000\"><a href=\"user.php?s=$session[sessionhash]&action=remove&userid=".$row["userid"]."\" target='_blank'>YES!</a></font>";
} else {
$yninactive="No</font>";
}
That auta do it. But I attached the updated file for you.