Announcement

Collapse
No announcement yet.

Scheduled Task

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Scheduled Task

    I would like a new Scheduled Task that deletes entries in the usergroup Users Awaiting Email Confirmation where current date minus Last Activity date is equal to or greater than five days (or user defined). That, or an SQL Query that does the same thing.

    This is an SQL Query I wrote a long time ago to identify users in Users Awaiting Email Confirmation:
    Code:
    select username, usergroupid, from_unixtime(joindate), from_unixtime(lastvisit), posts from user where usergroupid = 3 and lastvisit <= (unix_timestamp() - (86400 * 0)) order by from_unixtime(lastvisit);
    What modification to this query would be required to delete matched records?
    The Linux Community has given me much. I do what I can to return the favor!

    #2
    Which usergroup should the users be moved to? Users must always have a usergroup assigned to them
    Buy me a coffeePayPal QR Code
    My Amazon Affiliate Link
    Fast vBulletin VPS Host:
    This site is hosted by IONOS

    Comment


      #3
      I don’t want to move them. I want to delete them.
      The Linux Community has given me much. I do what I can to return the favor!

      Comment


        #4
        Oh you want to delete the users?
        Buy me a coffeePayPal QR Code
        My Amazon Affiliate Link
        Fast vBulletin VPS Host:
        This site is hosted by IONOS

        Comment


          #5
          Well, never mind. I keep forgetting about AdminCP > Users > Prune / Move Users. That does what I want.
          The Linux Community has given me much. I do what I can to return the favor!

          Comment


            #6
            Yeah but you'll have to keep doing it manually.
            Buy me a coffeePayPal QR Code
            My Amazon Affiliate Link
            Fast vBulletin VPS Host:
            This site is hosted by IONOS

            Comment


              #7
              I would also like to have an auto delete for the usergroup "users awaiting email confirmation". I've been manually deleting after 4-5 days if they do not confirm. The AdminCP > Users > Prune / Move Users., won't do that from what I see.

              Comment


                #8
                Originally posted by Mitch View Post
                The AdminCP > Users > Prune / Move Users., won't do that from what I see.
                This is how it's done.Click image for larger version

Name:	Screen Shot 2025-05-08 at 8.46.23 AM.png
Views:	46
Size:	127.6 KB
ID:	32395Click image for larger version

Name:	Screen Shot 2025-05-08 at 8.46.44 AM.png
Views:	42
Size:	77.8 KB
ID:	32396Then check Delete and click Go.
                The Linux Community has given me much. I do what I can to return the favor!

                Comment


                  #9
                  Thanks for the reply. Is this an advantage over just going into the usergroup manager and deleting them there? Neither way is automatic

                  Comment


                    #10
                    Doing it this way allows you to delete all matches at once. Doing it via Usergoup Manager, you can only delete one at a time.
                    The Linux Community has given me much. I do what I can to return the favor!

                    Comment


                      #11
                      Roger that. I'll try it out. Thanks for posting the screen shots

                      Comment


                        #12
                        Still thinking on this, and I would still like to see a Scheduled Task (cron job) or a MOD (if that is doable). If it is a Schedule Task, that means writing a custom .php for it (./includes/cron/deleteusersawaitingemailconfirmation.php).

                        Click image for larger version

Name:	User Manager.png
Views:	43
Size:	93.4 KB
ID:	32411

                        It would compare the Last Activity date to the Task/MOD execution date. If the number of days since Last Activity is equal to or greater than a definable value, the user is deleted.

                        Our forum; and I'm sure almost all others; get a fair number of new registrations that never confirm, and never contact a site Administrator seeking help on their registration. These are what I call 'drive-by' registrations and/or BOT registrations. In either case, I don't need or want them just sitting in the queue.
                        The Linux Community has given me much. I do what I can to return the favor!

                        Comment


                          #13
                          I give those user 4 days to confirm, then delete. So my delete list is never that large. Never had someone bitch

                          Comment


                            #14
                            And I do the same thing, but it would be nice to have an automated process that does this for you.
                            The Linux Community has given me much. I do what I can to return the favor!

                            Comment


                              #15
                              I will add this mod to my todo list.
                              Buy me a coffeePayPal QR Code
                              My Amazon Affiliate Link
                              Fast vBulletin VPS Host:
                              This site is hosted by IONOS

                              Comment

                              Latest Posts

                              Collapse

                              Working...
                              X
                              Searching...Please wait.
                              An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                              Please push the back button and reload the previous window.'
                              An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                              Please push the back button and reload the previous window.'
                              An internal error has occurred and the module cannot be displayed.
                              There are no results that meet this criteria.
                              Search Result for "|||"