Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes
Author Message
Fphilip84
Regular
Regular



Joined: Oct 27, 2003
Posts: 73

PostPosted: Sat Nov 22, 2003 4:24 pm Reply with quote

Hi,

For some reason, this hack does not work for me ever since I switched servers. It works fine until:

Quote:
New User Registration: Final Step

Test, please check the following information. If all is correct you can proceed with the registration by clicking on "Finish" button, otherwise "Go Back" and change whatever information is needed.


User Name: test

Email: test@aol.com



Note: You will receive a confirmation email with a link to a page you should visit to activate your account in the next 24 hours.


BUt then after I click FINISH, it just takes me to the user login screen...after I type my name and pword, it just says "incorrect login" ...Does anyone know what this could be?....I tried overwriting the Your Account folder with a fresh nuke folder, and then I tried changing the index.php to include the FinishNewUser function...but i still get the problem..
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Nov 22, 2003 10:26 pm Reply with quote

My guess is that you may have a mod that modified the user table and may be conflicting with the finishNewuser mod. Check your error log for a message. Also, try setting $sql_debug = 0; to $sql_debug = 1; in includes/sql_layer.php to temporarily show errors. Sometimes that will reveal the error.
 
View user's profile Send private message
Fphilip84







PostPosted: Sat Nov 22, 2003 11:39 pm Reply with quote

Raven,

I did what you said and made the sql thingy to 1, and i see all this coding but I cant understand anything! I am such a newbie!! I will post the stuff that I see....ok on the left hand side I see

[Raven edited for content as there were no errors.]

I dont know if this has helped at all Crying or Very sad
 
Raven







PostPosted: Sat Nov 22, 2003 11:50 pm Reply with quote

Is this what you see AFTER you try to add and click finish? I also edited your post for content Smile
 
Fphilip84







PostPosted: Sun Nov 23, 2003 12:46 am Reply with quote

no this is after you told me to edit the sql_layer file....once I set it to "1" like you said, then when I go to my site, I get all this code.
 
Raven







PostPosted: Sun Nov 23, 2003 3:23 am Reply with quote

I understand that. That's what is supposed to happen. Now, go through the add new user steps. After each screen, look for an error message.
 
Fphilip84







PostPosted: Sun Nov 23, 2003 8:38 am Reply with quote

Nope, it doesnt say anything? Can you check it out for me? I'd greatly appreciate it. My email is fphilip78@hotmail.com. Contact me and I'll give you all the info for the website..
 
Fphilip84







PostPosted: Mon Nov 24, 2003 12:08 am Reply with quote

Hey,

I fixed the error!

Open your modules/Your_Account/index.php and find the following code:

Quote:
$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();
}


Then replace it with:

Quote:
$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();
}


that will display the Activation link for your users when they register on the last page of the Registration process..
You might want to change the Language file for Your Account module for this definition.

Quote:
Note: You will receive a confirmation email with a link to a page you should visit to activate your account in the next 24 hours.


or you can remove JUST THIS part from the index.php file

Quote:
<b>"._NOTE."</b> "._YOUWILLRECEIVE."
 
Raven







PostPosted: Mon Nov 24, 2003 12:14 am Reply with quote

The purpose of the hack is to NOT have to click anything to activate and the hack does work as published as hundreds can attest to. By adding that line into yours it is no longer an auto activation hack.
 
Fphilip84







PostPosted: Mon Nov 24, 2003 12:44 am Reply with quote

AHhhh Yeahhh I know that, but I needed somethin.....for the time being at least....until I find out what is up with the hack on my site...
 
donjski
Regular
Regular



Joined: Jan 14, 2004
Posts: 53

PostPosted: Wed Jan 14, 2004 4:05 pm Reply with quote

I'm having the exact same problem on my end.

I see that when I registered here that the email thing worked. Howd you get it to work Raven?

THis is the weird thing. The PM for my forum send out an email to the users when a PM is sent. But it seems as though that a reply to post's is not working either.

NUKE 6.9 and 7.0
 
View user's profile Send private message
Raven







PostPosted: Wed Jan 14, 2004 4:10 pm Reply with quote

See this post and in it is a mailtest script that runs independently of Nuke. That way we can determine where to start looking.

http://www.ravenphpscripts.com/postt825.html#4800
 
donjski







PostPosted: Wed Jan 14, 2004 4:17 pm Reply with quote

It worked, I got the email

Mailed - This just means that the PHP mail() function is working.
If you do not receive the email, then there is probably something wrong with your SMTP setup.
 
Raven







PostPosted: Wed Jan 14, 2004 4:27 pm Reply with quote

Please post a link to your site.
 
donjski







PostPosted: Wed Jan 14, 2004 4:30 pm Reply with quote

Only registered users can see links on this board! Get registered or login!

this is just a test site for now, till I get it working right.

this is the 6.9 version


Last edited by donjski on Wed Jan 14, 2004 4:53 pm; edited 1 time in total 
Raven







PostPosted: Wed Jan 14, 2004 4:38 pm Reply with quote

Make sure that in your nuke Preferences that the Site URL is
Code:
http://www.donjski.com/nuke6.9
and that in Forum Configuration the Domain Name is
Code:
www.donjski.com/nuke6.9
Also, I'm not too sure about that folder name nuke6.9 . You might try renaming it to nuke69 if it still doesn't work after the two settings above are verified.
 
donjski







PostPosted: Wed Jan 14, 2004 4:42 pm Reply with quote

That is how they are set. In my other curent forum Only registered users can see links on this board! Get registered or login!

It is set the same way:

"nuke" http://www.donjski.com/forum/

"forum" www.donjski.com/forum/


Could the trailing forward slash "/" be the problem?
 
donjski







PostPosted: Wed Jan 14, 2004 5:21 pm Reply with quote

I took the trailing slash out and still no go. But I did just get a reply mail for a post I had made on the above forum.
 
Raven







PostPosted: Wed Jan 14, 2004 8:20 pm Reply with quote

You absolutely cannot have a trailing slash. It will interfere with other code for sure.
 
n0rth
New Member
New Member



Joined: Mar 10, 2004
Posts: 6

PostPosted: Wed Mar 10, 2004 7:30 pm Reply with quote

i've also had a problem with this..

the site i have installed nuke 6.8 on is http://cs.n0rth.com

i followed the intstructions, replaced the right things... i even tried deleting the slashes (wasn't sure about that)

each time i got the error
Parse error: parse error in /home/n0rth/public_html/cs/modules/Your_Account/index.php on line 1129

doesn't sound good

thanks, n0rth
 
View user's profile Send private message
Raven







PostPosted: Wed Mar 10, 2004 8:54 pm Reply with quote

Not slashes; only the trailing slash. There are 2 versions. Make sure you got the right one.
 
n0rth







PostPosted: Mon Mar 15, 2004 5:56 pm Reply with quote

i use nuke 6.8, which is the correct version? i tried both... and what do you mean by trailing slash? in which field should we not have a trailing slash?

thanks
 
Raven







PostPosted: Mon Mar 15, 2004 6:45 pm Reply with quote

The trailing slash after the Site Url and Domain Name
 
n0rth







PostPosted: Mon Mar 15, 2004 6:55 pm Reply with quote

no slashes there
 
Raven







PostPosted: Mon Mar 15, 2004 6:57 pm Reply with quote

Plese post line 1129
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Bug Fixes

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 ©