Advertisement:

Author Topic: email Inactive Users  (Read 43587 times)

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,020
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
email Inactive Users
« on: April 19, 2014, 02:00:47 PM »
Link to Mod

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.
- 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](http://www.mozilla.org/MPL/2.0/).

##### Note
Special thanks to [Kolya ](http://www.simplemachines.org/community/index.php?action=profile;u=8490) for allowing this mod to be open source and free for everyone. the forum
I'm not a criminal.
I'm not a rapist.

Offline sǝๅqɯɐɥS

  • SMF Hero
  • ******
  • Posts: 4,459
  • Gender: Male
    • i30 Owners Club
Re: email Inactive Users
« Reply #1 on: April 19, 2014, 03:08:04 PM »
I'll have a look at this, thanks for the good work :)

Offline sǝๅqɯɐɥS

  • SMF Hero
  • ******
  • Posts: 4,459
  • Gender: Male
    • i30 Owners Club
Re: email Inactive Users
« Reply #2 on: April 19, 2014, 03:50:32 PM »
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

Offline radu81

  • Jr. Member
  • **
  • Posts: 315
  • Gender: Male
Re: email Inactive Users
« Reply #3 on: April 19, 2014, 07:50:51 PM »
thank you Suki for this mod!
sorry for my bad english

Offline iorkara

  • Semi-Newbie
  • *
  • Posts: 34
  • Sorry, we are open.
Re: email Inactive Users
« Reply #4 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...

Offline sǝๅqɯɐɥS

  • SMF Hero
  • ******
  • Posts: 4,459
  • Gender: Male
    • i30 Owners Club
Re: email Inactive Users
« Reply #5 on: April 20, 2014, 06:59:33 AM »
Couple of errors being logged (not a big issue)


Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,020
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: email Inactive Users
« Reply #6 on: April 20, 2014, 08:45:09 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%"
I'm not a criminal.
I'm not a rapist.

Offline sǝๅqɯɐɥS

  • SMF Hero
  • ******
  • Posts: 4,459
  • Gender: Male
    • i30 Owners Club
Re: email Inactive Users
« Reply #7 on: April 20, 2014, 09:26:18 AM »
Thanks.

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

Should that 6" be in there?

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,020
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: email Inactive Users
« Reply #8 on: April 20, 2014, 09:41:13 AM »
Its just a hardcoded thing for some browsers, you can remove it if you want to.
I'm not a criminal.
I'm not a rapist.

Offline Impsat-1

  • Jr. Member
  • **
  • Posts: 321
Re: email Inactive Users
« Reply #9 on: April 21, 2014, 02:01:30 AM »
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 ;).-

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,020
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: email Inactive Users
« Reply #10 on: April 21, 2014, 07:59:00 AM »
I don't have any Spanish forum anymore so I just didn't do any translation.
I'm not a criminal.
I'm not a rapist.

Offline demlak

  • Jr. Member
  • **
  • Posts: 157
Re: email Inactive Users
« Reply #11 on: April 24, 2014, 07:59:57 PM »
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..?

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,020
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: email Inactive Users
« Reply #12 on: April 24, 2014, 09:07:15 PM »
Sure, will add a setting in the next version.
I'm not a criminal.
I'm not a rapist.

Offline iorkara

  • Semi-Newbie
  • *
  • Posts: 34
  • Sorry, we are open.
Re: email Inactive Users
« Reply #13 on: April 24, 2014, 11:43:50 PM »
Sure, will add a setting in the next version.

Ok great! Looking forward to this. Thank you.

Offline Ninja ZX-10RR

  • SMF Hero
  • ******
  • Posts: 2,127
  • Gender: Male
  • Sniper Legends
    • Flavio93Zena on Facebook
    • Virtual Interactive Games Entertainment Forum
Re: email Inactive Users
« Reply #14 on: April 25, 2014, 01:09:13 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

Offline MotRude

  • Semi-Newbie
  • *
  • Posts: 95
    • @@cruetube on Twitter
    • CrüeTube
Re: email Inactive Users
« Reply #15 on: April 25, 2014, 09:23:12 AM »
Thank you for this mod...Great Work!

Offline Xarkurai

  • Jr. Member
  • **
  • Posts: 207
Re: email Inactive Users
« Reply #16 on: April 25, 2014, 10:14:47 AM »
Much appreciated mod and work, thanks for sharing :).
Useful paid mod: Badge Awards - Award members for actions

Offline SaltedWeb

  • Full Member
  • ***
  • Posts: 549
  • Web Systems Since 1995 SMF Since 2005
Re: email Inactive Users
« Reply #17 on: April 29, 2014, 11:32:02 AM »
I like this idea but will wait until the version that does not automatically delete members.

Thank you.
You have a choice in life, run it yourself. Or abandon freedom and let others do it for you.

Offline Ninja ZX-10RR

  • SMF Hero
  • ******
  • Posts: 2,127
  • Gender: Male
  • Sniper Legends
    • Flavio93Zena on Facebook
    • Virtual Interactive Games Entertainment Forum
Re: email Inactive Users
« Reply #18 on: April 29, 2014, 01:21:06 PM »
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

Offline Suki

  • SMF Super Hero
  • *******
  • Posts: 15,020
  • Kaizoku Jotei
    • MissAllSunday on GitHub
    • SMF mods
Re: email Inactive Users
« Reply #19 on: April 29, 2014, 05:00:35 PM »
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.
I'm not a criminal.
I'm not a rapist.