Quote:
Originally Posted by Chris.08i
Thank you so much for your quick reply.
I was hoping to implement this as a cron job, which I can then use whatever the cron job returns in my plugin.
As far as I know, you can't use userid's in a cron job?
|
Well, what you could do is query the infraction table to get all users who have been issued a permanent infraction during the last year (then build a comma-delimited list of userids), and then query the user table to set the users in the list you built with the value of 1 in the new column and all others are set to 0.
If that sounds good, I will see if I can construct the correct code for that.