Version: , by Mas*Mind
Developer Last Online: Sep 2003
Version: 2.2.x
Rating:
Released: 05-25-2001
Last Update: Never
Installs: 37
No support by the author.
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;
<p><smallfont>If you didn't 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
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Okay, As in my post earlier. I forgot to rename all file extensions to .php3
I am usually very careful when doing so while using Note Tab Lite. Having said that, I rename all to .php33
All is not my fault as that was the first thing I thought of to check, but the program's search feature did not find them. I had to locate them all myself. Only about nine or so.
Wow, didn't see this til now. Very useful Mas*Mind, I will install it shortly. Even after adding additional lines to the normal error template I still get mail daily about stuff like this. Great little hack!
Location: Amsterdam, The Netherlands, currently living in Cape Town, South Africa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
Glad y'all like it
I slightly changed the error_nopermission_awaiting_moderation -template to make it even more clear:
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.
If you didn't received the activation-email or you've allready deleted it, <a href="register.php?s=$session[sessionhash]&action=requestemail&email=$bbuserinfo[email]">click here</a> to resend it to you're email-adress ($bbuserinfo[email]).
If you still don't receive it then, you probably have entered an incorrect addres, you can correct it by editing your <a href="member.php?s=$session[sessionhash]&action=editprofile">profile</a>.
I have taken the liberty of re-wording the new template, as well as adding a new part to it. The re-wording was done to improve the English a bit (and that is not said to be critical). I added a line to say that maybe the user supplied the wrong address, and should contact the webmaster if he/she still does not get the activation email.
PHP Code:
You have recently registered at $bbtitle, but have not yet activated your account. You can find the link to activate your account in your welcome-email.
<p><smallfont>If you haven't received the activation email, <a href="register.php?s=$session[sessionhash]&action=requestemail">click here</a> and it will be resent. If you still do not receive the activation email, you may have mistyped your email address. If you suspect you used the incorrect email address, please contact the <a href="mailto:webmaster@jjr512.com">Webmaster</a>. <a href="member.php?s=$session[sessionhash]&action=lostpw">Forgotten your password?</a>
Does anyone know the variable to use for the webmaster email, rather than hard-coding it as I have done?