Hi
With this UDT is it possible to only have a notification from just users i.e. Editors not Administrators.
Thanks
send_email_notification
Re: send_email_notification
Sorry but you may need to give more detail as to what you mean/want...
Re: send_email_notification
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,
The notifications are sent to admin email so there is no need to sent one when admin makes the update.
He already knows.
Cheers,
Re: send_email_notification
This would be an events manager function...
Re: send_email_notification
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":
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.
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);
}
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
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
Re: send_email_notification
Hi Thanks for your tip.
I have done something similar by checking the username and then acting.
Thanks again.
I have done something similar by checking the username and then acting.
Thanks again.