kjcdude
New Member


Joined: Sep 23, 2003
Posts: 8
Location: Southern California
|
Posted:
Sat Aug 28, 2004 12:32 am |
|
There is a problem install.tct in the autoactivate mod.
It says.
Code: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."";
|
After checking the index.php that came with it, it should be.
Code: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."";
|
should be
But thats not the problem, the problem is that the mod doesnt work even after fixing that.
I installed using the install.txt using 7.4 index.php. I got this error after i enter information for a new user.
Code:Fatal error: Unknown function: opentable() in /home/swezey/kyle/dheat/mainfile.php on line 322
|
The module works if i upload the provided index.php and turn autoactivate on, so im just doing that for now but i would like to use the original 7.4 index because its obvously has something more than the one provided being 79kb vs 68kb.
Thanks,
Kyle |
|
|
Nukeum66
Life Cycles Becoming CPU Cycles

Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA
|
Posted:
Sat Aug 28, 2004 5:35 am |
|
look I'm sending you a copy of your_account/index.php for 7.4. That I applied the auto activation hack to, see if it works.  |
_________________ Scott Johnson MIS Ubuntu/Linux 11.10 |
|
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Aug 28, 2004 9:38 am |
|
First of all, I am looking at the install.txt and you are incorrect as to what it says. Here is what the install.txt for the 7.x d/l saysQuote: | The easiest way to install the Auto Activation mod is to
1 - Rename modules/Your_Account/index.php to modules/Your_Account/index-origv7.php
2 - Replace it with the index.php included in this download file.
3 - Set the setting $autoActivate to TRUE.
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://www.ravenphpscripts.com
As with all modifications, YOU are responsible for backups. There are no warranties given or implied. |
Please show me where it is incorrectly stated? Also, I have NOT released a version for 7.3 and newer. See this post for more information http://www.ravenphpscripts.com/posts2664-highlightautoactivate.html |
|
|