Quote:
Originally Posted by Darkwaltz4
the easy way is to move those users into a usergroup that doesnt earn credits for anything
or you can add that check to the includes/functions_credits.php award_credits function, and then the includes/cron/credits_daily.php file to change this query
PHP Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits = credits + CASE$pcsql ELSE 0 END WHERE credits_canearn = 1");
to include the date range
|
Thanks Dark!
I don't think we will move the users to another usergroup, because if they become active again, which they often do, then we have to move them back. That that would not work for us.
So, I think I'll add the check to credits_daily.php as you suggested. I might add a new vB Option in the AdminCP for this instead of hardcoding our two year rule.
Thanks again.