ok. I added the following to adduser.php.
// --------------------------------------------------------------------- <br />// Now if we are manually approving user registration we need to send an<br />// email to all admins <br />if (($config['userreg']) && (!$config['verify'])) {<br /> $query = "<br /> SELECT U_Email<br /> FROM {$config['tbprefix']}Users<br /> WHERE U_Status = 'Administrator'<br /> ";<br /> $sth = $dbh -> do_query($query);<br /> while(list($adminemail) = $dbh -> fetch_array($sth)) {<br /> if (!$adminemail) {<br /> continue;<br /> }<br /> $newuser = rawurlencode($Loginname);<br /> $to = $adminemail; <br /> $header = $mailer -> headers();<br /> $subject = "{$ubbt_lang['NEWREG']} {$config['title']}"; <br /> $msg = "A New User Has Registered: $Loginame \n{$ubbt_lang['NEWREGBODY']} {$config['phpurl']}/admin/login.php?fi<br />le=approveuser.php";<br /> mail("$to","$subject","$msg",$header);<br /> }<br /> }
I then registered a test account and got the same old email output.
[]A new user has registered at Living Hope Ministries. To approve this account, please visit
http://forums.livehope.org/threads/admin/login.php?file=approveuser.php [/]
Am I adding it in the right file?