email Inactive Users

Started by Suki, April 19, 2014, 02:00:47 PM

Previous topic - Next topic

Suki

[url="https://custom.simplemachines.org/index.php?mod=3849"]Link to the mod[/url]

emailInactiveUsers

Sends emails to inactive users and deletes them if they haven't logged in on the forum.
Some features:
  • Chose how many days the user needs to be inactive for the mod to send the mail.
  • Chose how many days since the mail was sent for the user to be deleted. -Prevent users from been deleted after seding them an email.
  • Customize the mail body and subject, you can use the following wildcards:
    • {user_name}' => user's real name,
    • {display_name}' => user's display name,
    • {last_login}' => user's last time s(he) logged in on the forum,
    • {forum_name}' the forum's name,
    • {forum_url}' => the forum's url,
  • Check which usergroups will be affected by this mod. Main admin group cannot be affected.
  • Once the user has received the email and the grace period has expired, (s)he will appear on the mod's user list, on that list you can:
    • Mark the user for deletion. The user will be deleted the next time the scheduled task gets executed, there is a small chance for the user to skip deletion if (s)he logs in between the time the admin marked their account for deletion and the time the scheduled task gets executed, this timeframe, however, could be very small and it cannot be larger than a full day.
    • Mark the user as "untouchable" This special setting tells the mod to completely ignore this account, that is, the account won't be eligible for deletion even if it complies with all of the criteria.
  • A sub-menu in the admin button in the main menu will be added if the mod found 1 or more people ready to be marked for deletion.
Needs PHP 5.3 or greater, SMF 2.0 or greater.
License

This mod is license under the MPL 2.0 license.

Note

Special thanks to Kolya for allowing this mod to be open source and free for everyone. the forum

Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Shambles

I'll have a look at this, thanks for the good work :)

Shambles

If I could make one suggestion, it's that the Scheduled Task "emailInactiveUsers" should be disabled by default, until such time that the feature itself is enabled (which it isn't, by default).

Incredibly feature-rich coding, I have to say :D

radu81

thank you Suki for this mod!
sorry for my bad english

iorkara

Am I able to have an option that does not delete users at all? I just want to email inactive users, not delete them after some period...

Shambles

Couple of errors being logged (not a big issue)


Suki

Quote from: iorkara on April 20, 2014, 03:42:54 AM
Am I able to have an option that does not delete users at all? I just want to email inactive users, not delete them after some period...

Not at the moment, but shouldn't be difficult to add an admin setting and then apply that check just before the mod collects the users who meet the criteria for been deleted.


@Shambles, yes, I'm aware of that, the first one is a nasty bug with the multiple select, if you don't select any group, the setting is saved as false but the template requires it to be an empty array, not  boolean false. It only happens if you left that setting completely empty.

The other one is a missing "  on    $config_vars[] = array('large_text', 'eiu_message', '6" style="width:95%', 'subtext' => $txt['eiu_message_sub']);
  right after the style="width:95%, should be style="width:95%"
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Shambles

Thanks.

The fix you supplied for issue #2 doesn't cure the problem (error message persists) :(

Should that 6" be in there?

Suki

Its just a hardcoded thing for some browsers, you can remove it if you want to.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Impsat-1

Mmm... hey Great Job, but anyone can translate to spanish_latin-utf8 ???... will be great, Thanks & Regards.... 8).-
Vive Cáda Momento De Tu Vida Como Si Fueras a Irte Mañana, Más Planificala Cómo Si Jamás Fueras a Irte ;).-

Suki

I don't have any Spanish forum anymore so I just didn't do any translation.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

demlak

Quote from: iorkara on April 20, 2014, 03:42:54 AM
Am I able to have an option that does not delete users at all? I just want to email inactive users, not delete them after some period...

is there any solution on that? i was thinking about setting deletion days to 10.000 or so.. as a workaround..?

Suki

Sure, will add a setting in the next version.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

iorkara

Quote from: Suki on April 24, 2014, 09:07:15 PM
Sure, will add a setting in the next version.

Ok great! Looking forward to this. Thank you.

Ninja ZX-10RR

Quote from: demlak on April 24, 2014, 07:59:57 PM
Quote from: iorkara on April 20, 2014, 03:42:54 AM
Am I able to have an option that does not delete users at all? I just want to email inactive users, not delete them after some period...

is there any solution on that? i was thinking about setting deletion days to 10.000 or so.. as a workaround..?
That's the first thing i thought. Put like 1000000000000000000000 days before account deletion and you will be done XD they will die sooner  ;D ::) :P
And thanks for the great mod :D
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

MotRude

Thank you for this mod...Great Work!

Xarkurai

Much appreciated mod and work, thanks for sharing :).
Useful paid mod: Badge Awards - Award members for actions

SaltedWeb

I like this idea but will wait until the version that does not automatically delete members.

Thank you.
Knowing your limitations makes you human, exceeding these limitations makes you worthy of being human.

Ninja ZX-10RR

Discovered a little annoying thing, everytime i uninstall a mod it gives me an error telling me the thing i am attaching.
It's kinda of annoying but nothing happens actually and that line does not even exist in that file!!!!!!! Wtf????  :o
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

Suki

You need to disable he evaluation of templates from your admin panel

admin / configuration / server settings

clean your error log and wait untl that error happens again, you will now see the real file where the error is.
Disclaimer: unless otherwise stated, all my posts are personal and does not represent any views or opinions held by Simple Machines.

Advertisement: