![]() |
Quote:
I get some type of warning and the forum skin turned white minus the banner. Quote:
|
edited: my IT guy rebooted it.
|
Quote:
Quote:
Quote:
|
Quote:
I'll check the database when the current drawing happens the end of this week. If it works, I'll finish add to the lottery output. Cheers. |
Quote:
Quote:
|
Hi Dark!
We need to stop giving credits to users without activity for the past two years. Where would we add some PHP code like this: Code:
// 60 * 60 * 24 * 365 * 2 = 63072000 Code:
<if condition="$userinfo[lastactivity] < (TIMENOW - 63072000)"> Thanks!! |
Quote:
If it works, just follow the instructions in post 890 above. Cheers. |
Quote:
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:
|
Quote:
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. |
Hi Dark,
I looked at that line in credits_daily.php. Perhaps my post was not clear, or I am missing something, or simply am making a mistake. I want users who have been inactive for two years to receive no credit for anything (especially credit for having their old posts viewed, since we get a lot of traffic). Does this one line in credits_daily.php "do it all", in other words, it is the one line that adds user credits for post views, posts, etc.? Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits = credits + CASE$pcsql ELSE 0 END WHERE credits_canearn = 1") Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits = credits + CASE$cdtsql ELSE 0 END, credits_numrefs = credits_numrefs + CASE$refsql ELSE 0 END WHERE credits_canearn = 1 AND usergroupid IN (" . implode(', ', $goodug) . ")") Thanks! |
All times are GMT. The time now is 06:29 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|