i used this for 2.7
PHP Code:DELETE FROM users WHERE user_account_status='inactive'
i used this for 2.7
PHP Code:DELETE FROM users WHERE user_account_status='inactive'
this should be a default option in admin control , i just checked my site there were 6000+ inactive users :(
Need same for inactive videos.
I would consider people who have not logged in for over a year as an inactive user. How do we delete people whos last log in was, say...sometime in 2009 or older?
Code:DELETE FROM users WHERE user_last_login_time='???????????'
Last edited by grynmoors; 08-18-2010 at 09:26 PM.
If it's not fun, stop doing it!
To delete users who have not logged in since 2009, you would use:
Code:delete from users where user_last_login_time<1262304000
vShare Solutions
Custom vShare Modules and Services
Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!
To delete users who have not logged in since last year, add this code into cron.php:
Thanks,Code:$sql = "DELETE FROM `users` WHERE `user_last_login_time`<'" . strtotime("last Year") . "'"; mysql_query($sql);
i d like to send out a friendly reminder to users have not logged since a while(+months) similar to some forum scripts...any help? thanks
I've tried all of the above on a vShare 2.8.1 install and no joy? Is there something that will?
Hey there, I've tried all of the above in order to bulk remove inactive users and no joy.. is there something that will work with vShare 2.8.1? Thanks
Hey there, I've tried all of the above in order to bulk remove inactive users and no joy.. is there something that will work with vShare 2.8.1? Thanks
Is there something that will work with 2.8.1? I've tried all of the above
Bookmarks