PDA

View Full Version : User Moving/Pruning System


philliplewis
08-21-2001, 07:19 AM
On there you can move people that

Has less than x posts:

can u make a hack that allows you to do

Has more then x posts:

so you can move ppl to a new group if they have more then 50 posts?

Admin
08-21-2001, 07:33 AM
In user.php under your admin folder add
if ($maxposts) {
$sqlconds .= iif($sqlconds=="","WHERE","AND")." posts > $maxposts";
}
below
if ($minposts) {
$sqlconds .= iif($sqlconds=="","WHERE","AND")." posts < $minposts ";
}

And add
makeinputcode("Has more than <i>x</i> posts:","maxposts",iif($maxposts,$maxposts,""));
below
makeinputcode("Has less than <i>x</i> posts:","minposts",iif($minposts,$minposts,""));

This should do the work. I would test it, but I have only 1 user at my demo board.

Good luck, and tell me if there are any problems! :)

philliplewis
08-21-2001, 10:35 AM
I will try it and get back to you.

Thanks for your help!