>>
Site Map
>>
Forums
>>
PHP-Nuke Common Problems & Solutions
Forum module - topics in forum:
PHP-Nuke Common Problems & Solutions - <font color=red>Look Here First For Your Problems And Get Their Solutions.</font><br><br>See also <a href="http://phpnuke-uk.net/modules.php?name=PHP-Nuke_HOWTO&page=common-installation-problems.html"><b>this</b></a> section of the phpnuke howto.<br>
Site Wont Send Activation Email / Disable Activation Email
----> The Problem / Error Message
No Activation Email gets sent when new members register or you just want to turn it off and allow members to activate at the end of the registration process.
----> The ReasonThe mail() function is disabled on your hosting server or there is a configuration error.
----> The Solution
Open your modules/Your_Account/index.php and find this within the function finishNewUser()
| Code: : |
$message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($user_email) "._TOREGISTER." $sitename.\n\n "._TOFINISHUSER."\n\n $finishlink\n\n "._FOLLOWINGMEM."\n\n"._UNICKNAME." $username\n"._UPASSWORD." $user_password";
$subject = ""._ACTIVATIONSUB."";
$from = "$adminmail";
mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
title("$sitename: "._USERREGLOGIN."");
OpenTable();
echo "<center><b>"._ACCOUNTCREATED."</b><br><br>";
echo ""._YOUAREREGISTERED.""
."<br><br>"
.""._FINISHUSERCONF."<br><br>"
.""._THANKSUSER." $sitename!</center>";
CloseTable();
} |
Replace with
| Code: : |
$message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($user_email) "._TOREGISTER." $sitename.\n\n "._TOFINISHUSER."\n\n $finishlink\n\n "._FOLLOWINGMEM."\n\n"._UNICKNAME." $username\n"._UPASSWORD." $user_password";
$subject = ""._ACTIVATIONSUB."";
$from = "$adminmail";
mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
title("$sitename: "._USERREGLOGIN."");
OpenTable();
echo "<center><b>"._ACCOUNTCREATED."</b><br><br>";
echo ""._YOUAREREGISTERED.""
."<br><br>Click this link to activate your account<br> <a href=$finishlink>$finishlink</a><br>"
.""._THANKSUSER." $sitename!</center>";
CloseTable();
} |
By doing this, it will display the activation link for your users when they register on the last page of the registration process. All the have to do is click on the link and they are verified and ready to log in.
You might want to change the language file for the Your Account module for this definition to relect the changes you are making:
| Code: : |
| define("_FINISHUSERCONF","Your request for a new account has been processed. You'll receive an email in the next few seconds with a activation link that should be visited in the next 24 hours to be able to activate your account."); |
the other option regarding the finished message would be to remove the following code from the index.php file.
| Code: : |
| <b>"._NOTE."</b> "._YOUWILLRECEIVE." |
The Second option would be to download the New User Auto Activation Hack from Ravens PHP Scripts Site (link below)
http://ravenphpscripts.com/downloads-cat6.html ----> Still Having Problems
If you have tried all of the above solutions and are still having problems please post up your specific problem in the Installation Forum and we will be happy to help.
Please make sure you post as much detail as you can and include your PHP-Nuke Version, A link to the analyze.php file, any error messages and what fixes you tried
Some alternatives.
6.5-6.9
http://www.nukeresources.com/downloadview-details-831-No_Mail_Your_Account_Hack.html
http://www.nukeresources.com/downloadview-details-832-No_Mail_Your_Account_Hack_7.0.html
http://www.nukeresources.com/downloadview-details-896-No_Mail_Your_Account_Hack_7.3.html
http://www.nukeresources.com/downloadview-details-908-No_Mail_Your_Account_Hack_7.4.html
http://www.nukeresources.com/downloadview-details-932-No_Mail_Your_Account_Hack_7.5.html
http://www.nukeresources.com/downloadview-details-947-No_Mail_Your_Account_Hack_7.6.html
http://www.nukeresources.com/downloadview-details-1034-No_Mail_Your_Account_Hack_7.7.html
http://www.nukeresources.com/downloadview-details-1050-No_Mail_Your_Account_Hack_7.8.html
Added Poll