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.1
Author Message
nuk3r
New Member
New Member



Joined: Dec 19, 2003
Posts: 18

PostPosted: Sat Feb 21, 2004 2:21 am Reply with quote

hello
I seem to be getting an invalid link being sent by the activation email.

its sending out

Code:
/modules.php?name=Your_Account


there is no http://domainname.com or anyother info after the Your_Account part?

Ive tried a number of fixes to get rid of this but none of them seem to change it?

Ive changed servers so the only thing i can think of is maybe a different dir structure?

my root dir is "mainwebsite_html" but this is just a virtual link on the server to /var/www/html/

so all my files are loacated inside /var/www/html/

ive tried every dir i can think of
http://mydomain.com/var/www/html
http://mydomain.com/mainwebsite_html
http://mydomain.com

and the email still comes thru as /modules.....

Id simply use the no email hack and be done but my your_account index.php is already changed alot,so i cant just overwrite it.

Can anyone suggest a fix for this? ITS DRIVING ME MAAAAD Crying or Very sad
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Feb 21, 2004 8:51 am Reply with quote

First off I would restore the defauly index.php just to verify that it works correctly. If it does, then you know, for sure, that it is in your modifications.
 
View user's profile Send private message
chatserv
Member Emeritus



Joined: May 02, 2003
Posts: 1389
Location: Puerto Rico

PostPosted: Sat Feb 21, 2004 11:29 am Reply with quote

In modules/Your_Account/index.php under function finishNewUser you should have a line similar to:
Code:
$finishlink = "$nukeurl/modules.php?name=$module_name&op=activate&username=$username&check_num=$check_num";

and $nukeurl should be in the function's global line, if that checks ok then your site url in admin preferences might be empty.
 
View user's profile Send private message Visit poster's website
nuk3r







PostPosted: Sat Feb 21, 2004 3:29 pm Reply with quote

Thanks for the help Wink

I checked my index.php file in your_account and it was wrong

you said it should be this

$finishlink = "$nukeurl/modules.php?name=$module_name&op=activate&username=$username&check_num=$check_num";

mine was only this portion
/modules.php?name=$module_name

ive added in the correct line from a fresh index file but now when a user registers it send the correct link but it doesnt add my http://domain.com to the front?

Confused
 
chatserv







PostPosted: Sat Feb 21, 2004 3:39 pm Reply with quote

If the finishlink line was incorrect as i mentioned it is very likely that $nukeurl is missing from the function's global line:
global $stop, $EditedMessage, $adminmail, $sitename, $Default_Theme, $user_prefix, $dbi, $storyhome, $module_name, $nukeurl;
 
nuk3r







PostPosted: Sat Feb 21, 2004 3:45 pm Reply with quote

Embarassed OK now im just choked! its always the simplest things Sad
seems there was an extra character in $nukeurl variable
so it was searching for $nukeurlm instead of $nukeurl

Rolling Eyes

THANKS FOR THE help chatserv made my day now Wink
 
chatserv







PostPosted: Sat Feb 21, 2004 3:52 pm Reply with quote

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

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 ©