Support Forum

Admin and Moderator email notification

ST StevenHodson
StevenHodson
Member

I have been watching SimplePress for some and finally decided to make the switch from SMF to SimplePress (still wish I could have found a data importer for SMF) and I am still in the process of getting it all set up. In general – even though my current forum members may not to be happy at first with the change – SimplePress is answering all the things I want.

However one thing I would really like – Admins and Mods notification of new member sign up and confirmation completion by email.

Now you could already have that in place but I did search for it but didn't find anything.

20 Answers

New Answer

MP Mr Papa
Mr Papa
Member

registrations and email notifications are handled by WP, so no, spf admins and moderators dont get that kind of notification. There are other plugins available for WP where you can add those kind of registration notifications.

spf admins can receive notifications of new posts. moderators notifications will be coming in 4.1 and I posted a quick fix on how to add it to 4.0

ST StevenHodson
StevenHodson
Member

Mr Papa said:

There are other plugins available for WP where you can add those kind of registration notifications.


could possibly suggest one that is known to play nice with SimplePress ??

thanks 🙂

YS Yellow Swordfish
Yellow Swordfish
Member

The admin does get an email notifying them of a new registration but not the follow up confirmation. This is standard WP stuff.

ST StevenHodson
StevenHodson
Member

Yellow Swordfish said:

The admin does get an email notifying them of a new registration but not the follow up confirmation. This is standard WP stuff.


thanks .. this end of WP is new to me. Never used the User section before so I'm having to figure this all out. That said I had one of the other Admins sign up as a new user late last night and at this point she still hasn't recieved any mail nor have I.

any possible suggests of where to look to track down where this notification process is going off the rails?

YS Yellow Swordfish
Yellow Swordfish
Member

Start with email settings in the WP admin ‘general’ page. Also check the email settings in the forum Options > Email tab

ST StevenHodson
StevenHodson
Member

Yellow Swordfish said:

Start with email settings in the WP admin ‘general’ page. Also check the email settings in the forum Options > Email tab


turns out because I am using and install of WP on a WinServer & IS$ +PHP I needed a SMTP plugin. Everything is working as it should so far but I do have some other requests coming at some point 🙂

Great product …

YS Yellow Swordfish
Yellow Swordfish
Member

Ah the pains of using IIS. WordPress itself doesn’t much like IIS…

UN
Unknown
Member

Mr Papa said:

registrations and email notifications are handled by WP, so no, spf admins and moderators dont get that kind of notification. There are other plugins available for WP where you can add those kind of registration notifications.

spf admins can receive notifications of new posts. moderators notifications will be coming in 4.1 and I posted a quick fix on how to add it to 4.0


Hi!

I've been using the forum search, but couldn't dig up the thread you refered to, in which you posted the code/quick fix.

Would you mind posting the link to it?

Thanks

YS Yellow Swordfish
Yellow Swordfish
Member

I can do better than that!

As far as I can see the only change is to the sQL statement that grabs the admins list: Just add to the end of it:

…WHERE admin = 1 OR moderator = 1

That should do it unles you also want to change the message about notifyiung Admins…

(Thanks for the email by the way. it's a tomorrow job now!)

MP Mr Papa
Mr Papa
Member

yes, thats the only change for notifications to optionally go to mods too…

UN
Unknown
Member

Thank you!

Of course I always have something else up my sleave 🙂

So I also thought of connected the above with another criteria which stems from a new (custom) user pfoile field I added to allow a moderator to opt-in/out of receiving these emails.

…in addition I would have to add

AND profile_customfield = true

, is this possible?

YS Yellow Swordfish
Yellow Swordfish
Member

You shouldn’t need this I believe.
The notification to moderators should be triggered by their setting on the Manage Admins > Admin Options tab…
At least that is my understanding…

UN
Unknown
Member

hi andy!

right, but I don't want to make moderators admins, hence I can't use that setting (I think) – or could I possibly make them admins with “no capabilities” e.g. to ?

here is what I did and the code piece that works (changes are highlighted). the only drawback is, that it requires the custom field to be the first custom field since it's hardcoded below (I'm sure this could be done a tad more elegant to make it dynamic).

with this change, moderators can now opt-in via their profile.

$admins_email = '';
### oliver:
### $admins = $wpdb->get_results(“SELECT user_id, admin_options FROM “.SFMEMBERS.” WHERE admin = 1″);
$admins = $wpdb->get_results(“SELECT user_id, admin_options FROM “.SFMEMBERS.” WHERE admin = 1 OR moderator = 1“);

if ($admins)
{
   foreach ($admins as $admin)
   {
       if ($admin->user_id != $newpost['userid'])
       {
           $admin_opts = unserialize($admin->admin_options);
           ###oliver: 2 lines below changed
           $mod_opts = get_usermeta($admin->user_id, 'sfcustomfield0');    ### custom field hardcoded

           if ($admin_opts['sfnotify'] || $mod_opts=='on')

           {
               $email = $wpdb->get_var(“SELECT user_email FROM “.SFUSERS.” WHERE ID = $admin->user_id”);
               if ($admins_email != '') $admins_email .= ', ';
               $admins_email .= $email;
           }
       }
   }
}

YS Yellow Swordfish
Yellow Swordfish
Member

I didn't write this part and I can't easily test at the moment as my local codebase is in upheaval from a big restructuring. But as I understand it, your Moderator should be able to have access to the manage Admins personal options tab without having any of the actual Admin capabilities turned on. So they should be able to opt in for email notifications on that panel.