The easiest way to install the Auto Activation mod is to
1 - Rename modules/Your_Account/index.php to modules/Your_Account/index-origv73.php
2 - Replace it with the index.php included in this download file.
That's it! To deactivate the mod you simply have to change the setting $autoActivate = TRUE; to $autoActivate = FALSE;
If you need to manually apply the changes due to other modifications, here are the instructions for manually applying the mod:
===========================================================================================================================
1 - On or about line 22 Find
$userpage = 1;
Add this line After
$autoActivate = TRUE;
===========================================================================================================================
2 - In function confirmNewUser Find
global $stop, $EditedMessage, $sitename, $module_name, $minpass;
Change To
global $stop, $EditedMessage, $sitename, $module_name, $minpass, $autoActivate;
===========================================================================================================================
3 - In function confirmNewUser Find
."<tr><td><b>"._EMAIL.":</b> $user_email</td></tr></table><br><br>"
."<center><b>"._NOTE."</b> "._YOUWILLRECEIVE."";
Change to
."<tr><td><b>"._EMAIL.":</b> $user_email</td></tr></table><br><br>";
if (!$autoActivate) echo "<center><b>"._NOTE."</b> "._YOUWILLRECEIVE."";
===========================================================================================================================
4 - In function finishNewUser Find
global $stop, $EditedMessage, $adminmail, $sitename, $Default_Theme, $user_prefix, $db, $storyhome, $module_name, $nukeurl;
Change to
global $stop, $EditedMessage, $adminmail, $sitename, $Default_Theme, $user_prefix, $db, $storyhome, $module_name, $nukeurl, $autoActivate;
===========================================================================================================================
5 - In function finishNewUser Find
if(!$result) {
echo ""._ERROR."<br>";
} else {
Change to
if(!$result) {
echo ""._ERROR."<br>";
} elseif ($autoActivate) { activate($username, $check_num, $autoActivate);
} else {
===========================================================================================================================
6 - In function activate Find
function activate($username, $check_num) {
Change to
function activate($username, $check_num, $autoActivate=FALSE) {
===========================================================================================================================
7 - In function activate Find the 3 instances of
include("header.php");
Change all instances to
if (!$autoActivate) include("header.php");
For all support issues with this mod and nuke and/or php visit
http://irancivileng.com
ali.motallebi