Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.4
Author Message
kjcdude
New Member
New Member



Joined: Sep 23, 2003
Posts: 8
Location: Southern California

PostPosted: Sat Aug 28, 2004 12:32 am Reply with quote

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."";

Code:
if(!autoActivate)
should be
Code:
if(!$autoActivate)



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
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Nukeum66
Life Cycles Becoming CPU Cycles



Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Sat Aug 28, 2004 5:35 am Reply with quote

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. Wink

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Aug 28, 2004 9:38 am Reply with quote

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 says
Quote:
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 [ Only registered users can see links on this board! Get registered or login! ]

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 [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
kjcdude







PostPosted: Sat Aug 28, 2004 12:38 pm Reply with quote

Very sorry, maybe when i was scrolling through i deleted that part.

I will try yours Nukeum66 and see if that works.

-Kyle
 
Nukeum66







PostPosted: Sat Aug 28, 2004 5:43 pm Reply with quote

I tested this file , it works fine and I emailed it to you..

It's raven's hack I just applied it to 7.4 YA index.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.4

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©