News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Delete Unactivated Members

Started by dougiefresh, November 23, 2017, 11:59:31 AM

Previous topic - Next topic

dougiefresh

Link to Mod



DELETE UNACTIVATED MEMBERS v1.5
By Dougiefresh -> Link to Mod



Introduction
One day, I looked at my forum and saw that 9,870 out of 14,776 were unactivated, most of them over 1 year old.  This irritated me, so I wrote this mod to automatically remove members who haven't activated their account after a specified number of days.  There is also an option to email users that their membership has been deleted due to lack of activation of the membership.

Please note that this mod does not set the number of days setting initially.  You must do this in order for this mod to function.  I recommend 30 days, however, you can set it to whatever you want.

Admin Settings
In Admin => Members => Registration => Settings, there are 2 new settings:
o Days before unactivated accounts are deleted
o Notify users whose accounts are being deleted?

Compatibility Notes
This mod was tested on SMF 2.0.14 and SMF 2.1 Beta 3, but should work on SMF 2.0 and up.  SMF 1.x is not and will not be supported.

Changelog
The changelog can be viewed at XPtsp.com.

License
QuoteCopyright (c) 2017 - 2018, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Shambles

Sounds useful. If it could optionally email the registrant too, that would be very useful.

dougiefresh

Uploaded v1.1 - November 23th, 2017
o Added support for SMF 2.0 Beta 3.




@sǝๅqɯɐɥS:  Well, I could add that into the code.  However, I assume that most of the member emails whom I'm deleting are fake.  Judging from the sampling of email addresses I saw on my own forum, this is probably the case.  But I'll see what I can do about adding such code...

dougiefresh

Uploaded v1.2- November 24th, 2017
o Added code & option to send emails to users we are deleting.

Westwegoman

This is a great addition. I've always wondered why SMF didn't have this built in already. The forum software I used before SMF hadit and it was quite helpful.

Thanks for bringing this to SMF.

Westwegoman

I noticed that the text "Notify users whose accounts are being deleted?" does not appear next to the tick box.

Colin

Quote from: dougiefresh on November 23, 2017, 12:17:34 PM
Uploaded v1.1 - November 23th, 2017
o Added support for SMF 2.0 Beta 3.




@sǝๅqɯɐɥS:  Well, I could add that into the code.  However, I assume that most of the member emails whom I'm deleting are fake.  Judging from the sampling of email addresses I saw on my own forum, this is probably the case.  But I'll see what I can do about adding such code...


I think you mean 2.1

Nice mod!
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

-Rock Lee-

This is good to use but lately I have many registered users but not activated but without a couple of spam bots. As usual, the translation into normal Latin Spanish and utf-8.


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Uploaded v1.3 - November 26th, 2017
o Added Spanish Latin translation, courtsey of Rock Lee!




@Rock Lee:  Thank you for the translation!  It's been included in this version!

Westwegoman

Quote from: Westwegoman on November 26, 2017, 12:57:40 AM
I noticed that the text "Notify users whose accounts are being deleted?" does not appear next to the tick box.

Just seeing if you missed this.

dougiefresh

@Rock Lee:  Can you translate the following string for me for both language files?
$txt['DUMD_notify_users'] = 'Notify users whose accounts are being deleted?';
Thanks!

Quote from: Westwegoman on November 29, 2017, 09:37:23 PM
Quote from: Westwegoman on November 26, 2017, 12:57:40 AM
I noticed that the text "Notify users whose accounts are being deleted?" does not appear next to the tick box.
Just seeing if you missed this.
::) Obviously I did, not once but twice....  Waiting for Rock Lee for a translation of the string....

-Rock Lee-

Quote from: dougiefresh on November 29, 2017, 11:19:38 PM
@Rock Lee:  Can you translate the following string for me for both language files?
$txt['DUMD_notify_users'] = 'Notify users whose accounts are being deleted?';
Thanks!

It was not converted ... how strange ::)

Code (spanish_latin) Select
$txt['DUMD_notify_users'] = '¿Notificar a los usuarios cuyas cuentas se están eliminando?';

and

Code (spanish_latin-utf8) Select
$txt['DUMD_notify_users'] = '¿Notificar a los usuarios cuyas cuentas se están eliminando?';

Here I leave the translated lines :D

Quote from: dougiefresh on November 29, 2017, 11:19:38 PM
Quote from: Westwegoman on November 26, 2017, 12:57:40 AM
I noticed that the text "Notify users whose accounts are being deleted?" does not appear next to the tick box.
::) Obviously I did, not once but twice....  Waiting for Rock Lee for a translation of the string....

Point to my oversights of code, it may be that transports me to the other side of the window the translation to the right on this side :-[ ... :laugh: but with that should be anything you tell me and I translate it with pleasure.


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Uploaded v1.4 - November 30th, 2017
o Fixed language files so that missing string comes up on configuration pages.




@Rock Lee:  No, it seems there is no oversight on your part....  The translation is there, just not under the right string....   :-[

-Rock Lee-

@dougiefresh I always check that everything is in order, I never have a problem, it could be my hand and I erase just part of the variable ... well, I am human I can miss this errata, they will say, I also apologize I will pay more attention to the next one ;)!

QuoteAn erratum or corrigendum (plurals: errata, corrigenda) (comes from Latin: errata corrige) is a correction of a published text. As a general rule, publishers issue an erratum for a production error (i.e., an error introduced during the publishing process) and a corrigendum for an author's error.[1]

An erratum is most commonly issued shortly after its original text is published. Patches to security issues in a computer program are also sometimes called errata.

https://en.wikipedia.org/wiki/Erratum


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

Uploaded v1.5 - October 11th, 2018
o No functionality change.
o Updated documentation to point to new website.

Advertisement: