Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
The easiest way... if you don't wish to turn on new user approval... is to override the email that would normally get sent for users that need approval. This won't turn on the approval process... it'll just send the email to the admin anyway.

In adduser.php find this.... and remove (or comment out) the lines in Red.

code:

// ---------------------------------------------------------------------
// Now if we are manually approving user registration we need to send an
// email to all admins
[:"red"] if ($config['userreg']) {[/]
$query = "
SELECT U_Email
FROM {$config['tbprefix']}Users
WHERE U_Status = 'Administrator'
";
$sth = $dbh -> do_query($query);
while(list($adminemail) = $dbh -> fetch_array($sth)) {
if (!$adminemail) {
continue;
}
$newuser = rawurlencode($Username);
$to = $adminemail;
$header = $mailer -> headers();
$subject = "{$ubbt_lang['NEWREG']} {$config['title']}";
$msg = "{$ubbt_lang['NEWREGBODY']} {$config['phpurl']}/admin....
mail("$to","$subject","$msg",$header);
}
[:"red"] }[/]



Edit: Careful not to miss removing that last } if you remove the if. the color is tough to see on the } by itself.
I also shorteded the one line with the URL so that Dave_L doesn't have to scroll.

Hope that works for ya.

Last edited by JoshPet; 11/11/2002 12:50 AM.
Sponsored Links
Entire Thread
Subject Posted By Posted
Mail New User to Admin sportbikes 11/11/2002 7:17 AM
Re: Mail New User to Admin JoshPet 11/11/2002 7:49 AM
Re: Mail New User to Admin sportbikes 11/12/2002 10:45 AM
Re: Mail New User to Admin JoshPet 11/12/2002 11:00 AM
Re: Mail New User to Admin sportbikes 11/12/2002 11:30 AM
Re: Mail New User to Admin sportbikes 12/31/2002 12:11 PM
Re: Mail New User to Admin Eugene 03/25/2003 5:53 PM
Re: Mail New User to Admin Eugene 03/26/2003 12:34 AM
Re: Mail New User to Admin Astaran 03/26/2003 2:40 PM
Re: Mail New User to Admin Eugene 03/26/2003 10:05 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2916
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 18
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)