Additional Info
Type
Package ID
karlbenson:emailinactiveusers
First Created
December 06, 2007, 11:32:48 PM
Last Updated
May 01, 2008, 06:25:53 PM

Automatically Email Inactive Ordinary Users v1.6

Automatically email inactive users to try to remind/tempt them to come back. (aka AEIOU mod)
Compatible With 1.1.4, 1.1.5
Latest version v1.6
Downloads 9,238
Reviews 0
Rating 0/5
Subscribers 7
License (View License)
Author(s)
This mod has been taken over by rsw686
The new link for which is http://custom.simplemachines.org/mods/index.php?mod=1186


AUTO EMAIL INACTIVE ORDINARY USERS v1.6
By Karl Benson

Link to Mod | Support TopicDonate

Compatibility
For SMF 1.1.x Only

Introduction
Automatically email inactive users to try to remind/tempt them to come back.

~ Warning ~
Remember to Backup BOTH your DATABASE (structure & data) and your FILES BEFORE installing this mod.
Due to the way this mod works, it MAY affect performance/resource usage/mail servers.
Although currently its working perfectly fine on some very HUGE forums (with 50,000+ members).

Before you request a feature addition...
... please note that this is a SIMPLE Email Inactive Users mod containing pretty much ALL the functionality as I intend to add to the mod.  The only updated versions for this mod will for minor tweaks, language translations, bug fixes and updates for future SMF version support.

How The Mod Works
=> User has not visited for 21 days or more
===> An Initial Email Sent
=====> A further 21 days passes and user still has not visited
=======> A Final Email Sent
=========> A further 21 days passes and user still has not visited
===========> (Optionally) Delete User Account (With a Threshold setting eg Delete users only if they have made less than 10 posts)

Features
o Adds a new section in the admin area (via Admin > Features & Options > AEIOU)
- Note: The mod is disabled straight after installation to enable you to customize the emails and settings.
- Includes Settings:
> Customize Initial Email Subject (text-only) [with replaced variables]
> Customize Initial Email Message (text-only) [with replaced variables]
> Customize Final Email Subject (text-only) [with replaced variables]
> Customize Final Email Subject (text-only) [with replaced variables]
> Enable/Disable Deleting of Users
> Set a Post Threshold
- Other Settings (But NOT recommended to alter)
> Chunksize
> Max Emails To Send Per Hour
> Max Emails To Send Per Day
o Panel showing stats and status of the mod
o Panel showing last 10 inactive users emailed
o Tries to prevent overloading your mail server/exceeding your hourly / daily mail limits
o It does NOT use CRON.
o Anti-spam prevention
- Sending times/periods are hard-coded and cannot be changed
- Limits the no. of emails to be sent out by this mod to TWO.
- User who return after receiving an email have the email process reset (back to 0 email sent)
o Supports Languages
- English/English-utf8
- English_British/English_British-utf8
I welcome translations for other languages. Please post the translated language strings in the Support Topic.

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.
(Note: Existing database settings will remain. However existing custom emails created in pre-v1.3 will be reset)

Install the mod via the Package Manager to install on ALL themes.
As there are no theme edits for this mod. It only affects Source Files.

If your using a different language than those supported by this mod (listed above), then you will need to add (and translate as necessary) the language strings to your Modifications.{language}.php and/or Modifications.{language}-utf8.php for each theme (The language folder can be found at Themes/{themename}/languages/).

Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Donate
Has this modification helped you? Support the developer by Donating

Common Questions
o Can the periods before and between sending emails be changed?
- No. The periods are hardcoded.  However the periods are ONLY minimums. On large forums, it could be alot longer.
o Whats the minimum period between becoming inactive and user deletion?
- 63 days minimum
- Minimum 21 days to become inactive for sending the initial email
- Minimum 21 days before sending the final email
- Minimum 21 days before deleted user (optionally)
> Note however, it may take longer in each stage depending on the no. of users to email/delete.
o Emails are not being received. Why is it not working?
- A 5 point checklist
1) Get users to check their spam/junk folder. The users mail provider may believe it to be spam.
   > If so, this is not a bug with this mod.  It could be being labelled as spam for several reasons.
2) Even though the mod takes care not to overload your mailserver, it is possible it may have been by SMFs other emailing functions.
   > Email yourself using SMF, if you don't receive the email then it is likely your mailserver is overloaded or not functioning
   > Most hosts have limits (not always publicised) on the no. of emails per hour/day - Contact your host and find out what they are.
   > Sending Newsletters and announcing topics are common ways to overload your mail server.
3) Is the Last 10 Inactive Users Emailed showing recent emails?
   > If it is, then as far as the mod is concerned its working properly.
4) Are there any errors related to it in your error log?
5) Alternatively I am willing to consider it could be a bug. See Support.
o Will this work for SMF 2.0
- No. This mod will need re-writing.  SMF 2.0 will have a task scheduler and mail outbox (which tries to prevent overloading like this mod does).
- So It will need to be more closely integrated with SMF and avoid clashing with other tasks.

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 - 7th December 2007
o Initial release
o Added Danish/Danish-utf8 (Thanks to Fallen Angel)
1.1 - 13th January 2008
o Fixed lost password link (action=reminder) (Thanks HugoDiaz)
o Added check to only email activated users
o Added check so don't email banned users (by username only)
o Altered order of to whom it send emails.
o Added Brazilian/Brazilian-utf8 (Thanks to tckbm)
o Added Italian/Italian-utf8 (Thanks to TigerRR)
o Added Spanish/Spanish-utf8 (Thanks to minos)
o Added Spanish_es/Spanish_es-utf8 (Thanks to minos)
o Added Turkish/Turkish-utf8 (Thanks to CiOooo)
o Fixed default message/subject on install (to use current language)
1.2 - 16th January 2008
o Fixed so don't email members awaiting account deletion by admin
o Fixed not resetting amount sent per hour/day at same time
o Improved checks for reaching limit
1.3 - 3rd March 2008
o Removed - all non-english language strings (as most the strings have changed)
o Changed the no. of emails sent from 3 to 2 and the dates
o Fixed so doesn't set to max sent, instead uses a different variable
o Added Stats/Status
o Added Last 10 Users emailed
o Added ability to edit BOTH emails
o Added re-activation - so if stopped and admin views aeiou page and theres emails, restart
o Fixed email replacement variables to use preg (so can use mixed case)
o Changed install.php to delete old email variables
o Changed install.php to support manual install using ssi
1.4 - 4th March 2008
o Fixed Times to take users times
o Fixed emails to strip_tags as html would break sending email
o Altered install.xml to reduce conflict with other mods
1.5 - 28th April 2008
o Fixed - Issues where the mod stops (removed lockkey)
o Fixed so admins don't get emailed (even though they wouldn't get deleted)
o Fixed differences between admin vs actual query (takes dateRegistered into account)
o Fixed undefined aeiou_stop
1.6 - 1st May 2008
o Fixed hourly/daily stats not resetting (when down to the last few people)
o Few comment changes
o Few re-ordering of code changes
o Moved call of subs-post.php to only when needed
o Checked works for SMF 1.1.5
AEIOU_v1.6.zip
13.25 KB
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: