send_email_notification

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

send_email_notification

Post by Barrowboy »

Hi

With this UDT is it possible to only have a notification from just users i.e. Editors not Administrators.

Thanks
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: send_email_notification

Post by Dr.CSS »

Sorry but you may need to give more detail as to what you mean/want...
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: send_email_notification

Post by Barrowboy »

I thought it was a simple enough question. I just wanted to only send email notification when a back end editor edited a page and not when admin edited a page.

The notifications are sent to admin email so there is no need to sent one when admin makes the update.

He already knows.

Cheers,
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: send_email_notification

Post by Dr.CSS »

This would be an events manager function...
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: send_email_notification

Post by paulbaker »

Looks like you are talking about the code shown here:
http://www.cmscanbesimple.org/blog/send ... age-change

If so you could change the last line (@mail...) to something like this, assuming your admin's login name is "dave":

Code: Select all

if ($editor != "dave") {
@mail($to, $subject, $message);
}
i.e. only send the email if the change has been made by someone other than dave. I do something similar - works great for me.
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation

CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: send_email_notification

Post by Barrowboy »

Hi Thanks for your tip.

I have done something similar by checking the username and then acting.

Thanks again.
Post Reply

Return to “The Lounge”