Advertisement:
NameCheap

Author Topic: PM Auto Respond  (Read 130 times)

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 4,809
  • Gender: Male
  • Cat: Destroy!
    • live627 on Facebook
    • @live627 on Twitter
    • livemods
PM Auto Respond
« on: Yesterday at 08:50:05 PM »
Link to Mod

This mod is something similar to a vacation responder in that it sends a PM to a user who sent a PM. The message and subject are customisable, so the auto PM can be totally unique.

It is based on permissions, so under membergroup permissions, a new entry is added to the centralized permissions management area under the category "Contact members using the personal messaging system" called "Automatically respond to incoming PMs".

Depending on certain criteria found in the incoming message, you can create different variations for auto response. This feature is very similar in nature to the PM Rules in SMF 2.

The choices of criteria are:
  • Sender's name
  • Sender's membergroup (will also work on additional groups)
  • Sender is a buddy
  • Message subject contains keyphrase
  • Message body contains specified phrase


Lastly, this mod uses hooks and no file edits.

Code: [Select]
$txt['pm_ar_enabled'] = 'Auto respond to PMs';
$txt['pm_ar_subject'] = 'Auto respond subject';
$txt['pm_ar_subject_desc'] = 'Subject of PM to send to users who PM you';
$txt['pm_ar_body'] = 'Auto respond message';
$txt['pm_ar_body_desc'] = 'The message to send';
$txt['pm_ar_outbox'] = 'Save message in outbox';
$txt['pm_ar_deny'] = 'Members to not send to';
$txt['pm_ar_deny1'] = 'Membergroups to not send to';
$txt['pm_ar_profile_area'] = 'PM Auto Response';
$txt['permissionname_pm_ar'] = 'Automatically respond to incoming PMs';
$txt['pm_ar_general'] = 'General';
$txt['pm_ar_general_desc'] = 'Your generic message to default to if a filter is missing.';
$txt['pm_ar_filters'] = 'Filters';
$txt['pm_ar_filters_desc'] = 'Use different responses if certain criteria is met.';

Changelog
1.2 - 14th Sept 2013
+ Submitted freely to mod site
! Naming is now more uniform

1.1 - 5th Aug 2011
+ Added filtering options
! Some bug fixes, misnamed variables

1.0 - 18th July 2011
Initial release



I will NOT backport this mod. One for SMF 1.1.x can be found at http://custom.simplemachines.org/mods/index.php?mod=23



License: MIT

GitHub
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein