Quote:
Originally Posted by SamirDarji
Yep, just the random username of someone who was active within the week or month that the query is run in. I'm planning to make it into a cron job and just email me or somehow otherwise send me the name.
I want to use this to reward users for being online and logged in. I have a large number of users that visit my site, but don't log in.
Thank you so very much!
|
Ah okay, easy enough. Just put this file into your includes/cron folder and create a scheduled task for it. It will send you an email with a random username for a user that's logged in the past week and one for the past month. Change the $to_email variable inside the file as well.
Dylan