The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I want to set up a cron job for this, but not sure how to do the query.
I want to reduce every users Rep by a certain amount, say 10, who has not logged in for over 24 hours. Guessing it involves updating the User Rep table using a conditional of useractivity, but... I'd appreciate anyone who KNOWS how to write this query so I can insert into a daily cron. Cheers, G_Man. |
|
#2
|
|||
|
|||
|
<font size="2">umm... help?</font>
|
|
#3
|
||||
|
||||
|
Not tested...
PHP Code:
|
|
#4
|
|||
|
|||
|
Quote:
CHEERS!! Works a treat. |
|
#5
|
||||
|
||||
|
I'm pretty sure you could reduce the active part to just one query ;
PHP Code:
|
|
#6
|
|||
|
|||
|
Quote:
Yep... I'll prune them at some point anyway. Thanks for the alternative code, too, Paul.
|
|
#7
|
|||
|
|||
|
interesting.. so where does this go?
|
|
#8
|
||||
|
||||
|
As a new cron job probably (new file).
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|