New user registration alerts

Permalink 1 user found helpful
I have set up a way for new users to register for an account with this website and I have set it to manual approval by an admin instead of email validation because the admins need to approve members.

The problem is that there is no notification to the admins when a new user submits their info for approval. No email, nothing. Unless the admins manually check the user lists they will never see it.

I am not a PHP coder so I am looking to the concrete5 system to help me with this.

Any suggestions?

facerX
 
cleverington replied on at Permalink Reply
cleverington
I am checking my sites daily to see if a new user has registered!!
cleverington replied on at Permalink Reply
cleverington
I am checking my sites daily to see if a new user has registered!!
luan replied on at Permalink Reply
Same issue.
Tony replied on at Permalink Best Answer Reply
Tony
Check out the event system:

http://www.concrete5.org/documentation/developers/system/events/...

basically, you'd need to add this to /config/site.php:
define('ENABLE_APPLICATION_EVENTS',true);

Then add a file called site_events.php to that same folder, with something like this in there:
Events::extend('on_user_add', $class, $method, $filename, $params = array());

hope that helps.
geojlc replied on at Permalink Reply
geojlc
Since this seems to be a common question, maybe it would be a good idea to use this as the example on the page you reference. My husband (who knows more php than I do) and tried to use the example to set up an on_user_add event to send me an email and ended up breaking things... Luckily, I have learned to back up, so it was a recoverable break.

My husband says he couldn't figure out how to find the email in the $ui variable to pass into the mail call.

For those of use who aren't php developers (I only know enough to modify basic code, not write my own), the page you referenced here isn't all that clear or helpful.
moth replied on at Permalink Reply
moth
I've got this working for me in the context of user registrations.

However, the real show-stopper for me is that the event runs BEFORE the newly created User gets all his attributes applied.

This might be useful in some cases, but not really for me... leaves me with having to retrieve the post variables instead.