Prune Users

Automatically delete user accounts based on their last activity
User avatar
kasimi
mChat developer
Posts: 699
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Prune Users

#21

Post by kasimi » 27 Aug 2018, 08:12

I see where your problem is. To only prune users who have been active at least once, try this:
  • Open ext/kasimi/pruneusers/cron/prune_users.php
  • Find, around line 124:

    Code: Select all

    AND u.user_lastvisit < ' . (int) $lifetime;
    
  • On a new line above, add:

    Code: Select all

    AND u.user_lastvisit > 0
    

User avatar
jan_2017
Distinguished Donor
Posts: 109
Joined: 13 May 2017, 18:07

Re: Prune Users

#22

Post by jan_2017 » 27 Aug 2018, 08:15

Okay :D

I will test it , very thanks!

Bye Jan :wave:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest