Elxis CMS Forum

Support => Administration => Topic started by: yiannisK on June 22, 2009, 14:24:16

Title: Administrator notification of new user registration
Post by: yiannisK on June 22, 2009, 14:24:16
Is there a way Elxis notify me when a new user is registered, account activated via e-mail?
As it does when i select Account Activation: Manual.
Title: Re: Administrator notification of new user registration
Post by: yiannisK on June 23, 2009, 11:17:49
Anybody home?  ::)
Title: Re: Administrator notification of new user registration
Post by: datahell on June 23, 2009, 21:22:07
I am home!
components/com_registration/registration.php
line 367-373:

if ($mainframe->getCfg('useractivation') == "1") {
.........
mosMail($mainframe->getCfg('mailfrom'), $mainframe->getCfg('fromname'), $email, $subject, $message);

Add bellow:

mosMail($mainframe->getCfg('mailfrom'), $mainframe->getCfg('fromname'), 'your e-mail address here', 'New user registration', $message);
Title: Re: Administrator notification of new user registration
Post by: yiannisK on June 24, 2009, 00:00:50
Thanks!

EDIT: i feel like idiot  ;D.
This site was on Olympus 2008, and if i am not wrong this feature was not enabled. The admin was notified only when the registered user had to be approved manually.
The admin notification works fine after the update in 2008.1 2245 and then in 2009

Anyway, the above hack is very useful to notify a 2nd administrator