| :: |
| Author |
Message |
user
Joined: 19 Mar 2008 Posts: 3
|
Posted: Wed Mar 19, 2008 5:39 pm Post subject: [REQUEST] Notification on new registered user for phpbb2 |
|
|
Hi everyone!
I'm not sure if this is the right section section of the website to make a mod request, but i hope so
I need a simple script that would e-mail me (the e-mail can be specified in the code, so it would have no need for whoever does this for me to edit the phpbb admin configuration, just the script) when someone registers in the forum!
Using the moment of the e-mail confirmation sending, it would also send an e-mail for me, but only giving me the url and the username.
REASON: Multiple forums, it's boring to visit one by one and see if there are new users, specially because most of the time there aren't... lol
This should be simple for a experienced coder
Thank you! |
Last edited by user on Thu Mar 20, 2008 1:12 am; edited 1 time in total |
|
| Back to top |
|
 |
|
 |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 205
|
Posted: Wed Mar 19, 2008 6:57 pm Post subject: Re: [REQUEST] Notification on new registered user for phpbb2 |
|
|
Can you not just log into the control panel and select
General admin
configuration
Enable account activation
then tick the admin box
Then when someone signs up they cannot post until you approve the person. I believe that the system sends you an email this way so that you can approve it. |
_________________ DIY | DIY directory |DIY forum |
|
| Back to top |
|
 |
user
Joined: 19 Mar 2008 Posts: 3
|
Posted: Wed Mar 19, 2008 7:28 pm Post subject: Re: [REQUEST] Notification on new registered user for phpbb2 |
|
|
I know about that, but in that case the user wouldn't be able to use the site until i approve him.
I want both the confirmation and admin notification to be sent
Thanks |
|
|
| Back to top |
|
 |
ultimatehandyman PR2

Joined: 15 Mar 2007 Posts: 205
|
Posted: Wed Mar 19, 2008 9:31 pm Post subject: Re: [REQUEST] Notification on new registered user for phpbb2 |
|
|
I used to get shed loads of spam.
I installed the humanizer mods from phpbb.com and it has stopped 99.9% of all spam. |
_________________ DIY | DIY directory |DIY forum |
|
| Back to top |
|
 |
user
Joined: 19 Mar 2008 Posts: 3
|
Posted: Thu Mar 20, 2008 1:11 am Post subject: Re: [REQUEST] Notification on new registered user for phpbb2 |
|
|
| ultimatehandyman wrote: | I used to get shed loads of spam.
I installed the humanizer mods from phpbb.com and it has stopped 99.9% of all spam. |
Sorry i don't have problem with bots. The main reason is i have some forums, and it's boring to visit one by one and see if there are new users, specially because most of the time there aren't... lol |
|
|
| Back to top |
|
 |
HB phpBB SEO Team

Joined: 16 Oct 2006 Posts: 790
|
Posted: Fri Mar 21, 2008 4:27 am Post subject: Re: [REQUEST] Notification on new registered user for phpbb2 |
|
|
| user wrote: | This should be simple for a experienced coder
Thank you! |
I can give you some hints and guesses, but you'll have to test it. Notice that emailer.php has methods like send(..) and bcc(..). I bet you could easily modify the registration code to BCC you on every registration notify. For example, open usercp_register.php and notice there's lots of code like this:
| Code: | $emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->use_template('user_activate', stripslashes($user_lang));
$emailer->email_address($email);
$emailer->set_subject($lang['Reactivate']);
... etc ...
$emailer->send();
$emailer->reset(); |
Seems to me that you could add this line of code before $emailer->send():
| Code: | | $emailer->bcc('me@mywebsite.com'); |
That should send you an e-mail at the same time it sends out the activation. |
_________________ Dan Kehn |
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13354
|
|
| Back to top |
|
 |
|
|