PDA

View Full Version : protecting new members


Lionel
06-24-2005, 08:29 PM
How can I change the below to give new members a 30 days grace period instead of the 10 Posts?

$thefted = $DB_site->query_first("SELECT userid, usergroupid, username, ".$vboptions['uttpoints_pointsfield']." AS points FROM ".TABLE_PREFIX."user WHERE posts > 10 AND ".$field."='".addslashes($data)."'");
if (!isset($thefted['userid'])) {
$message = "User does not exist <br />or, You may not steal from users with less than 10 posts.";
uttstore_print_end_message($message);
}

akanevsky
06-24-2005, 09:04 PM
Change posts>10 to:

(" . TIMENOW . " - registerdateline) > " . 30*24*12*12 . "

Change registerdatline to the actual field name of the date when the person is registered and - there you go.

Lionel
06-24-2005, 09:09 PM
That would be joindate. Thanks