• Welcome to Simple Machines Community Forum. Please login or sign up.

PM Auto Respond

Started by live627, August 22, 2015, 08:50:05 PM

Previous topic - Next topic

live627

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.

    $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





    License: MIT

    GitHub

Shambles

Could be very useful, thanks.

That changelog suggests you've had the mod quite a while :D


Quote
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
That version of the mod has been removed, it seems.

live627

QuoteThat changelog suggests you've had the mod quite a while :D
This is an older mod of mine ported from Wedge and used to be on livemods.

Quote from: Shambles on August 23, 2015, 04:22:32 AM
Quote
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
That version of the mod has been removed, it seems.
That wads a typo. Fixed,  thanks.

chrishicks

I just installed this on my forum and am having a bit of trouble with it. It installed just fine but I can't seem to actually turn it on in a users profile. I have the permissions for all usergroups set to allow but when I try to set it up it doesn't seem to take effect.

I'm guessing I'm missing something but here's what I do. I put a check in the box to turn it on and fill in the info as seen in this screengrab.

http://i.imgur.com/m8JPhtY.png

When I click on change profile I get this:

http://i.imgur.com/HQwGrqj.png

and everything is empty again. Am I missing a step somewhere? The above is with an Admin account by the way.

EDIT: I should add that I tested this by using a test account to send a PM to my admin account and the auto respond doesn't actually respond. Same goes if I go in reverse and send from my admin account to my test account. I just can't seem to turn on the auto respond.

Biology Forums

Is there a way to prevent it from being saved in the outbox if the member has it automatically programmed to store all outgoing PMs?

aegersz

June 13, 2016, 11:52:41 AM #5 Last Edit: June 13, 2016, 12:51:12 PM by aegersz
this does not work for me at all. i am running the Enhanced PM mod. but i removed it and i still can't save settings.

and NO auto response at all.

i have tried two systems, same problem.

i have exactly the same problem with the Lite version too.

I am not seeing any errors in the log either.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

aegersz

The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Advertisement: