[REQUEST] Notification on new registered user for phpbb2

Support for the phpBB2 SEO mods released in the phpBB2 SEO Toolikt forum.

Moderator: Moderators

[REQUEST] Notification on new registered user for phpbb2

Postby user » Wed Mar 19, 2008 5:39 pm

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.
user
 
Posts: 3
Joined: Wed Mar 19, 2008 5:24 pm

Advertisement

Postby ultimatehandyman » Wed Mar 19, 2008 6:57 pm

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.
ultimatehandyman
PR2
PR2
 
Posts: 250
Joined: Thu Mar 15, 2007 12:55 am

Postby user » Wed Mar 19, 2008 7:28 pm

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
user
 
Posts: 3
Joined: Wed Mar 19, 2008 5:24 pm

Postby ultimatehandyman » Wed Mar 19, 2008 9:31 pm

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.
ultimatehandyman
PR2
PR2
 
Posts: 250
Joined: Thu Mar 15, 2007 12:55 am

Postby user » Thu Mar 20, 2008 1:11 am

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
user
 
Posts: 3
Joined: Wed Mar 19, 2008 5:24 pm

Re: [REQUEST] Notification on new registered user for phpbb2

Postby HB » Fri Mar 21, 2008 4:27 am

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: Select all
$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: Select all
$emailer->bcc('me@mywebsite.com');


That should send you an e-mail at the same time it sends out the activation.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1510
Joined: Mon Oct 16, 2006 2:25 am

Postby dcz » Mon Mar 24, 2008 2:45 pm

Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21393
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 SEO MODS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests