Description: This hack prints a custom message to users that want to take an action they can't because they didn't activated their account yet. This probably saves you alot of emails from users who didn't properly read their activation-email asking you why they can't post while they did register.
VB-Version: Probably every version, certainly every 2.0 version
Instructions:
- open (and backup first) admin/functions.php
- Do a search for ###################### Start show_nopermission #######################
- replace
PHP Code:if ($bbuserinfo[userid]==0) {
eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
} else {
eval("standarderror(\"".gettemplate("error_nopermission_loggedin")."\");");
}
exit;
- with
PHP Code:if ($bbuserinfo[userid]==0) {
eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
} else {
if($bbuserinfo[usergroupid] == 3) {
eval("standarderror(\"".gettemplate("error_nopermission_awaiting_moderation")."\");");
}
else {
eval("standarderror(\"".gettemplate("error_nopermission_loggedin")."\");");
}
}
exit;
- create a new template called error_nopermission_awaiting_moderation
- add the following content in it:
PHP Code:You have recently registered at $bbtitle but not yet activated your account. You can find the link to activate your account in your welcome-email.
<p align="center">
<table border="0" bgcolor="#555576" cellpadding="4" cellspacing="1" align="center">
$logincode
</table>
</p>
<p><smallfont>If you didnt received the activation-email <a href="register.php?s=$session[sessionhash]&action=requestemail">click here</a> to resend it. <a href="member.php?s=$session[sessionhash]&action=lostpw">Forgotten your password?</a></smallfont>
- save and upload admin/functions.php
- enjoy
Last edited by Mas*Mind; Fri 25th May '01 at 9:49pm.




. Totally forgot about that
) find this hack usefull?




Bookmarks