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.
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Notify Admin on Registration

Post by ameeck »

I don't think so, because of two reasons:
a) In my point of view, it's not necessary, one activation is enough, don't see a reason for this double registration(could you give me an example?)
b) It's not quite what this MOD is supposed to do, if I were to implement this, I would start another MOD
ToXiQ
Registered User
Posts: 69
Joined: Mon Jun 05, 2006 4:54 pm

Re: Notify Admin on Registration

Post by ToXiQ »

I ask with the registering of an account a real first and last name and no free email address may be used.

I also request a the same registration methode like First Lastname instead of first last

We are checking every submission. When I get the information send including an activation link I can do this easy!

Also we know if the first activation link was used we get a email so we know the email provided is working

regards Walter
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: Notify Admin on Registration

Post by Raimon »

Nice MOD ameeck,
Here you have the dutch translation ; http://forum.phpbbservice.nl/download.php?id=186 :)
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!
User avatar
Martin Truckenbrodt
Registered User
Posts: 3045
Joined: Sun Mar 23, 2003 6:22 pm
Location: Franconia
Name: Martin Truckenbrodt
Contact:

Re: Notify Admin on Registration

Post by Martin Truckenbrodt »

ToXiQ wrote:@ameeck,

Are you also planning to implement a double registration option?

sample:

user registering himself and activate with activation email
admin gets this email from you + activation user link

Your email is needed to check if registration information (username) is correct before activating user?

regards Walte
Hello,
here's the first RC of my Double Activation MOD Pack: http://www.phpbb.com/community/viewtopi ... 0&t=585061 .

Bye Martin
Free tutorial: Installing MODs in phpBB 3.0
Advanced Block MOD - Prevent spam on your phpBB 3.0 board with Stop Forum Spam, BotScout, Akismet, Project Honey Pot and several IP-RBL and Domain-RBL DNS blacklists!
My MODs
Use the official phpBB Ideas to vote missing core features!!!
eachin
Registered User
Posts: 12
Joined: Sun Oct 21, 2007 2:59 pm

Re: Notify Admin on Registration

Post by eachin »

I have a couple questions, does this work with RC7? and will it show you all required fields submitted during registration? because I have added a number via the ACP.

Thanks,
Kyle
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Notify Admin on Registration

Post by ameeck »

It doesn't at the moment, only basic info like the username and e-mail...but I'll consider adding this functionality...

It works fine with RC7.
eachin
Registered User
Posts: 12
Joined: Sun Oct 21, 2007 2:59 pm

Re: Notify Admin on Registration

Post by eachin »

I just installed it, and it looks good, I just need to figure out how to access the other registration fields that I added.

Any suggestions as to how I might go about that?

Thanks, this is a nice simple mod that should be quite useful for me.
User avatar
TheUniqueTiger
Registered User
Posts: 303
Joined: Wed Sep 05, 2007 7:57 pm
Location: India
Contact:

Re: Notify Admin on Registration

Post by TheUniqueTiger »

Thanks for this MOD! Looking forward for future releases.
You have only One Life... So before you are History, make sure you make it to the History books! - TheUniqueTiger
hoakerk.
Registered User
Posts: 5
Joined: Sat Nov 10, 2007 1:10 pm
Location: Portugal
Name: Vitaliy Paritskiy
Contact:

Re: Notify Admin on Registration

Post by hoakerk. »

Fatal error: Call to a member function on a non-object in */includes/usercp_register.php on line 770

the line is:
// BEGIN "Notify admin on registration MOD" - most of the code borrowed from phpBB, thank you
// Don't send e-mail if activation was sent, would only be duplicite
if ($config['require_activation'] != USER_ACTIVATION_ADMIN)
{
// Grab an array of user_id's with a_user permissions ... these users can activate a user
$admin_ary = $auth->acl_get_list(false, 'a_user', false);
$admin_ary = (!empty($admin_ary[0]['a_user'])) ? $admin_ary[0]['a_user'] : array();

// Also include founders
$where_sql = ' WHERE user_type = ' . USER_FOUNDER;

if (sizeof($admin_ary))
{
$where_sql .= ' OR ' . $db->sql_in_set('user_id', $admin_ary);
}

$sql = 'SELECT user_id, username, user_email, user_lang, user_jabber, user_notify_type
FROM ' . USERS_TABLE . ' ' .
$where_sql;
$result = $db->sql_query($sql);

while ($row = $db->sql_fetchrow($result))
{
$messenger->template('admin_notify_registered', $row['user_lang']);
$messenger->to($row['user_email'], $row['username']);
$messenger->im($row['user_jabber'], $row['username']);

$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($data['username']),
'USER_MAIL' => $data['email'],
'USER_REGDATE' => date($config['default_dateformat'], $user_row['user_regdate']))
);

$messenger->send($row['user_notify_type']);
}
$db->sql_freeresult($result);
}
// END "Notify admin on registration MOD"
eachin
Registered User
Posts: 12
Joined: Sun Oct 21, 2007 2:59 pm

Re: Notify Admin on Registration

Post by eachin »

I'm trying to get this mod to include the custom fields I am required to track below is the (not functional) code i have come up with... (in ucp_register.php)

Code: Select all

							$messenger->assign_vars(array(
								'USERNAME'			=> htmlspecialchars_decode($data['username']),
								'USER_MAIL'			=> $data['email'],
								'FIRST_NAME'    => $cp_data['first_name'],
								'LAST_NAME'     => $cp_data['last_name'],
								'TITLE'         => $cp_data[2],
								'WEBSITE'       => $cp_data[3],
								'ORGANIZATION'  => $cp_data[4],
								'PHONE'         => $cp_data[5],
								'ADDRESS'       => $cp_data[6],
								'CITY'          => $cp_data[7],
								'PROVINCE'      => $cp_data[8],
								'POSTAL'        => $cp_data[9],
								'INDIVIDUAL'    => $cp_data[10],
								'PAYMENT'       => $cp_data[11],
								'USER_REGDATE'		=> date($config['default_dateformat'], $user_row['user_regdate']))
							);
I have tried using the custom profile field names, and also numeric addressing, neither is resulting in anything useful. If anyone has any idea how to get access to the custom profile data submitted by the user at registration it would be greatly appreciated.

Thanks,
Kyle
Commerce
Registered User
Posts: 4
Joined: Tue Dec 04, 2007 4:09 pm
Location: Colorado
Contact:

Re: Notify Admin on Registration

Post by Commerce »

What a great and functional MOD. Thank you.

FWIW, works fine on RC8.

-Commerce
Boards.Org
johnj7l
Registered User
Posts: 164
Joined: Mon Nov 26, 2007 2:52 pm

Re: Notify Admin on Registration

Post by johnj7l »

Works great but is there a way to turn this mod off without having to redit files???
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm

Re: Notify Admin on Registration

Post by ameeck »

I intend that in the next version, you should be able to set it to several options - send to mods/admins/founder/nobody

Actually I might do it today, seems I have some spare time.
johnj7l
Registered User
Posts: 164
Joined: Mon Nov 26, 2007 2:52 pm

Re: Notify Admin on Registration

Post by johnj7l »

Wow cant wait hope yo post when you updated it so I can install it quickly!
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 »

Please disregard this post - I have found the answer.


Hello,

I've downloaded this mod to install on phpBB3 Gold.

I don't understand the following instructions as I've never seen a "file copy" instruction in a mod before
(I haven't installed many mods):

Instructions:
File Copy
Copy: root/language/en/email/admin_notify_registered.txt
To: language/en/email/admin_notify_registered.txt

I am unable to locate admin_notify_registered.txt in the path
language/en/email/

Even if I could locate it, I don't know how to copy
root/language/en/email/admin_notify_registered.txt to it.

Could someone please give a newbie detailed instructions?

Many thanks
Post Reply

Return to “[3.0.x] Abandoned MODs”