Notify Admin on Registration

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: Notify Admin on Registration

Post by iyeru42 »

If you set phpBB3 to activate via admin, you won't need this modification.
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
bvigorda
Registered User
Posts: 108
Joined: Sun Mar 19, 2006 2:59 am
Location: British Virgin Islands
Contact:

Re: Notify Admin on Registration

Post by bvigorda »

iyeru42 wrote:If you set phpBB3 to activate via admin, you won't need this modification.
Thanks for your reply. I do want it set for the user to be able to confirm registration. I have added this code to my phpBB3 and it's working great.

Thanks again and have a great day!
Gail
akazihaha
Registered User
Posts: 13
Joined: Sun Dec 30, 2007 7:25 am

Re: Notify Admin on Registration

Post by akazihaha »

There's a problem, after installing this mod, i registered 3 accs, but no email to admin via board. I use on local host
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: Notify Admin on Registration

Post by iyeru42 »

akazihaha wrote:There's a problem, after installing this mod, i registered 3 accs, but no email to admin via board. I use on local host
Does your local server connect to the internet? Does your local server have the mail() or sendmail available? What version of PHP on your local server?
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
akazihaha
Registered User
Posts: 13
Joined: Sun Dec 30, 2007 7:25 am

Re: Notify Admin on Registration

Post by akazihaha »

So Email will be sent to inbox in board or Internet Mail? I can send message between user via board, using php5, and no internet connection ^^
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: Notify Admin on Registration

Post by iyeru42 »

akazihaha wrote:So Email will be sent to inbox in board or Internet Mail? I can send message between user via board, using php5, and no internet connection ^^
This notification requires "e-mail addresses" not private messages. Either you have an e-mail server on your local host, or your server connects to the Internet.
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
akazihaha
Registered User
Posts: 13
Joined: Sun Dec 30, 2007 7:25 am

Re: Notify Admin on Registration

Post by akazihaha »

iyeru42 wrote:
akazihaha wrote:So Email will be sent to inbox in board or Internet Mail? I can send message between user via board, using php5, and no internet connection ^^
This notification requires "e-mail addresses" not private messages. Either you have an e-mail server on your local host, or your server connects to the Internet.
oh so that is my problem ^^, sorry for that
barban
Registered User
Posts: 7
Joined: Mon Dec 31, 2007 12:30 pm
Contact:

Re: Notify Admin on Registration

Post by barban »

I just installed and tested on phpbb3 Gold forum (http://forum.openhandsetdevelopers.com) and it works without problems.

Thanks a lot, ameeck.
User avatar
iyeru42
Registered User
Posts: 1120
Joined: Wed Feb 01, 2006 7:22 pm
Location: Madison, WI
Contact:

Re: Notify Admin on Registration

Post by iyeru42 »

akazihaha wrote:oh so that is my problem ^^, sorry for that
If you need one for PMs: http://www.phpbb.com/community/viewtopi ... 9&t=573016 But that notifies the user that they first logged in. Although I bet someone can edit it to notify the admin rather than the user. ;)
My Website | My MOD Requests | Foreign Key Docs (some topics are not requests)
"It's easy to rebel, but it's hard to be recognized."
man2u2uk
Registered User
Posts: 49
Joined: Sat Sep 22, 2007 6:27 pm
Location: Portsmouth, UK
Contact:

Re: Notify Admin on Registration

Post by man2u2uk »

Hi,

I tried installing this on my phpbb3 gold forum,

but i got confused with the edits as i cannot seem to find

<!CDDATA (when it asks for it)

Can someone please post how to make it work on phpbb3 gold

thanks in advance
User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: Notify Admin on Registration

Post by karlsemple »

Are you using prosilver? If you are using a different style be sure it is up to date.
Image
man2u2uk
Registered User
Posts: 49
Joined: Sat Sep 22, 2007 6:27 pm
Location: Portsmouth, UK
Contact:

Re: Notify Admin on Registration

Post by man2u2uk »

Yes i am using prosilver.

the problem is the instructions say:

find the following code:

Code: Select all

<![CDATA[				}

				$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
				trigger_error($message);]]>
but i can only find:

Code: Select all



				$message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
				trigger_error($message)
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Notify Admin on Registration

Post by ameeck »

The <![CDATA[ is a structural part of the XML file and shouldn't be displayed after displaying the XML with the XSL stylesheet – simply said, it's not meant to show up in the rendered file in the browser.

The correct string to search for is:

Code: Select all

}

                $message = $message . '<br /><br />' . sprintf($user->lang['RETURN_INDEX'], '<a href="' . append_sid("{$phpbb_root_path}index.$phpEx") . '">', '</a>');
                trigger_error($message); 
man2u2uk
Registered User
Posts: 49
Joined: Sat Sep 22, 2007 6:27 pm
Location: Portsmouth, UK
Contact:

Re: Notify Admin on Registration

Post by man2u2uk »

It Works :)

The reason why i didnt think it worked, is because after installation i was looking in the control panel for a
"Notify Admin on Registration" tab or similar

But when i setup a dummy account i got an email so i guess it works :)

(i have 2 admins on my forum will they both get the same email seperatly)

because when i recieved the email saying a user had signed up, it only had my email address in the To: box and not the other admins
Crelby1
Registered User
Posts: 23
Joined: Sun Feb 11, 2007 7:48 pm
Location: Russia
Contact:

Re: Notify Admin on Registration

Post by Crelby1 »

Hi!
Tried to use your MOD to email about new reports (report.php), but exped a problem.

Fatal error: Call to a member function on a non-object in /forum/report.php on line 161

line 161:
$messenger->template('admin_notify_registered', $row['user_lang']);

Have you any idea about that?

Thanks in advance! :)
Post Reply

Return to “[3.0.x] Abandoned MODs”