Account Activation

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
desleyhan
Registered User
Posts: 26
Joined: Wed Aug 27, 2008 4:04 am

Account Activation

Post by desleyhan » Sun Mar 28, 2010 2:23 pm

Hi All,

I have set my forum registration to Account Activation (This determines whether users have immediate access to the board or if confirmation is required. You can also completely disable new registrations.)

So all new registration activation is send to the founder's email. But i do have a few admins who are also receiving this email account activation.

How do I narrow to only having the founder to receive such emails?

Thanks

User avatar
JimA
Community Team Leader
Community Team Leader
Posts: 7451
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Account Activation

Post by JimA » Sun Mar 28, 2010 2:46 pm

Every administrator who has the admin permission "Can manage users" will receive those e-mails.
To change it into only the board founder to receive the activation e-mails, make this change.

Open: includes/ucp/ucp_register.php

Find:

Code: Select all

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); 
Replace with:

Code: Select all

if ($config['require_activation'] == USER_ACTIVATION_ADMIN)
{

// We only want founders to get the e-mails
 $where_sql = ' WHERE user_type = ' . USER_FOUNDER;

$sql = 'SELECT user_id, username, user_email, user_lang, user_jabber, user_notify_type
    FROM ' . USERS_TABLE . ' ' .
    $where_sql;
$result = $db->sql_query($sql); 
Image Jim Mossing Holsteyn - Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.

desleyhan
Registered User
Posts: 26
Joined: Wed Aug 27, 2008 4:04 am

Re: Account Activation

Post by desleyhan » Sun Mar 28, 2010 3:59 pm

Hi Jim,

I'm pretty new with this.

Not sure how to 'Open: includes/ucp/ucp_register.php'

Could you kindly guide me please?

Thanks again.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49734
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Account Activation

Post by stevemaury » Sun Mar 28, 2010 4:05 pm

Download it with FTP, open it in a good text editor like Crimson editor or Notepad++ (both free, google). Fine the text, edit it save it and upload it via FTP.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

desleyhan
Registered User
Posts: 26
Joined: Wed Aug 27, 2008 4:04 am

Re: Account Activation

Post by desleyhan » Tue Mar 30, 2010 12:12 am

Hey it worked for me ...

Thanks alot!

Locked

Return to “[3.0.x] Support Forum”

Who is online

Users browsing this forum: Bing [Bot] and 55 guests