Here is a cron I am running, Code Monkey.
PHP Code:
<?php
if (!is_object($vbulletin->db))
{
exit;
}
$days = 7;
$points = 5;
$minpointlevel = 100;
$cutoff = TIMENOW - (86400 * $days);
$vbulletin->db->query_write("
UPDATE ".TABLE_PREFIX."user
SET reputation = reputation - $points
WHERE lastactivity < $cutoff AND reputation > $minpointlevel
");
?>
You think you could take a minute and tell me what I would put in place of
lastactivity to make it the
last post time??
I am thinking it is simply
lastpost, but I'd love your opinion/help.
