I'm just toing to throw out my previous try and have another go.
under this:
PHP Code:
if ($url==$HTTP_REFERER) {
$url=urlencode($url);
}
add this
PHP Code:
// ############################### start remail ###############################
if ($HTTP_GET_VARS['action']=="remail") {
if ($bbuserinfo[usergroupid]==3) {
$userinfo=$DB_site->query_first("SELECT useractivation.userid,useractivation.activationid,user.username,user.email FROM `useractivation` LEFT JOIN `user` USING(userid) WHERE user.userid='$bbuserinfo[userid]'");
$username=$userinfo[username];
$userid=$userinfo[userid];
$activateid=$userinfo[activationid];
eval("\$message = \"".gettemplate("email_activateaccount",1,0)."\";");
eval("\$subject = \"".gettemplate("emailsubject_activateaccount",1,0)."\";");
vbmail($userinfo[email],$subject,$message);
eval("standarderror(\"".gettemplate("remail_confirmed")."\");");
exit;
} elseif ($bbuserinfo[userid]==0) {
eval("standarderror(\"".gettemplate("error_remailogin")."\");");
exit;
} else {
eval("standarderror(\"".gettemplate("error_noremail")."\");");
exit;
}
}
As for the added templates
remail_confirmed:
Code:
$username, you have just resent your account activation email. Click <a href="index.php?s=$session[sessionhash]">here</a> to return to the main index.
error_remailogin:
Code:
You must be logged in to resend your account activation email.
if you
error_noremail:
Code:
Only Users Awaiting Activation can resend their activation email.