Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 56
1 members and 55 guests
int5nwernetmarx
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Error confirming email in Registration Hack
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 40
Join Date: Jan 2003
Location: New Jersey
Error confirming email in Registration Hack - 01-24-2003, 08:40 AM

Your account is currently inactive. You cannot use it until you visit the
following link: link to activate member

But when u click the link you get a page saying:
Sorry, such file doesn't exist...

The member is then able to login to nuke but not the forum.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Senior Member
 
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
01-24-2003, 08:52 AM

Hello JerseyNB, can you please explain your problem a little more? I'm not sure where you're at there.
You don't have to reply to that, I understand it. Still havn't figured it out though.

Did you do a good search through all the files in the instructions, the ones you need to change the links in?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#3 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-24-2003, 09:12 AM

Jersey. That is because you have User Activate enabled in the Forum Admin cofiguration. You can't use the Activate account function in the Forum with our reg hack.

I have fixed this problem though with the check in the user_active field and hopefully I will release the fix we can apply in order to use the User accoutn Activation feature.

gimme a little while. I also want to get the smartDark theme released.

OH...for now, to fix that link, which will need to be fixed when I release this Activation fix later is here

look in modules/Forums/includes/usercp_register.php
Code:
					'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' .
change it to
Code:
					'U_ACTIVATE' => $server_url . '&mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' .
and find

Code:
					'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' .
It's just the ? in front of mode needs to be & for the link to be right.
change it to
Code:
					'U_ACTIVATE' => $server_url . '&mode=activate&' . POST_USERS_URL . '=' . $user_id . '&act_key=' .
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-24-2003, 09:42 AM

Oh heck..here it is...I'll try to get this setup as a download for others.

In modules/Your_Account/index.php

find
Code:
function login($uname, $pass) {
    global $setinfo, $user_prefix, $dbi, $module_name;
    $result = sql_query("select pass, uid, storynum, umode, uorder, thold, noscore, ublockon, theme, commentmax from ".$user_prefix."_users where uname='$uname'", $dbi);
    $setinfo = sql_fetch_array($result, $dbi);
    if ((sql_num_rows($result, $dbi)==1) AND ($setinfo[uid] != 1) AND ($setinfo[pass] != "")) {
	$dbpass=$setinfo[pass];
	$non_crypt_pass = $pass;
  	$old_crypt_pass = crypt($pass,substr($dbpass,0,2));
	$new_pass = md5($pass);
	if (($dbpass == $non_crypt_pass) OR ($dbpass == $old_crypt_pass)) {
	    sql_query("update ".$user_prefix."_users set pass='$new_pass' WHERE uname='$uname'", $dbi);
	    $result = sql_query("select pass from ".$user_prefix."_users where uname='$uname'", $dbi);
	    list($dbpass) = sql_fetch_row($result, $dbi);
	}
	if ($dbpass != $new_pass) {
            Header("Location: modules.php?name=$module_name&stop=1");
    	    return;
	}
	docookie($setinfo[uid], $uname, $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
	Header("Location: modules.php?name=$module_name&op=userinfo&bypass=1&uname=$uname");
    } else {
	Header("Location: modules.php?name=$module_name&stop=1");
    }
}
replace ALL with
Code:
function login($uname, $pass, $redirect, $mode, $f, $t) {
    global $setinfo, $user_prefix, $dbi, $module_name, $pm_login;
    $result = sql_query("select pass, uid, storynum, umode, uorder, thold, noscore, ublockon, theme, commentmax, user_active from ".$user_prefix."_users where uname='$uname'", $dbi);
    $setinfo = sql_fetch_array($result, $dbi);
    $forward = ereg_replace("redirect=", "", "$redirect");
    if (ereg("privmsg", $forward)) {
        $pm_login = "active";
    }
    if ((sql_num_rows($result, $dbi)==1) AND ($setinfo[uid] != 1) AND ($setinfo[pass] != "") AND ($setinfo[user_active] == 1 )) {
	$dbpass=$setinfo[pass];
	$non_crypt_pass = $pass;
  	$old_crypt_pass = crypt($pass,substr($dbpass,0,2));
	$new_pass = md5($pass);
	if (($dbpass == $non_crypt_pass) OR ($dbpass == $old_crypt_pass)) {
	    sql_query("update ".$user_prefix."_users set pass='$new_pass' WHERE uname='$uname'", $dbi);
	    $result = sql_query("select pass from ".$user_prefix."_users where uname='$uname'", $dbi);
	    list($dbpass) = sql_fetch_row($result, $dbi);
	}
	if ($dbpass != $new_pass) {
            Header("Location: modules.php?name=$module_name&stop=1");
    	    return;
	}
	docookie($setinfo[uid], $uname, $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
	if ($pm_login != "") {
            Header("Location: modules.php?name=Private_Messages&file=index&folder=inbox");
	    exit;
	}
        if ($redirect == "" ) {
            Header("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&uname=$uname");
        } else if ($mode == "") {
            Header("Location: modules.php?name=Forums&file=$forward");
        } else if ($t !="")  {
            Header("Location: modules.php?name=Forums&file=$forward&mode=$mode&t=$t");
        } else {
            Header("Location: modules.php?name=Forums&file=$forward&mode=$mode&f=$f");
	}
    } else {
	Header("Location: modules.php?name=$module_name&stop=1");
    }
}
Also..apply the above fixxes in my previous post to fix the User Activation links it sends in the emails.

Now once that is done. You can TURN on User Activation in the Forum Admin configuration.

Your users will sign up and receive an onscreen message that either they will receive an Email with an activation link that they must clikc to activate their account or they will receive a confirmation email that their account has been activated by the Admin.(depends on the type of activation you choose, user or admin)

Now, if a user DOES not get Activate his/her account by following the link in the email or the Admin does not activate him/her, when they try to loggin to the site, it will reject them back to the loggin screen with "Loggin Incorrect"
You can change that text at the top of the Loggin Incorrect screen in your language file to read something like:
"Loggin Incorrect or your account is not yet activated, check your email"
Thats' what we did here at nukemods.

I hope this helps, cause now I have a hand cramp :?

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 94
Join Date: Jan 2003
Location: Brooklyn
01-24-2003, 12:08 PM

Kick ass Mikem !
  Send a message via AIM to Br00klynzzfinest  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Junior Member
 
Status: Offline
Posts: 94
Join Date: Jan 2003
Location: Brooklyn
01-24-2003, 02:21 PM

Parse error: parse error in /home/bayridge/public_html/community/modules/Your_Account/index.php on line 655

Code:
654:	    }
655:    	   } else {
656:    	Header("Location: modules.php?name=$module_name&stop=1");
658:	  }
659: }
  Send a message via AIM to Br00klynzzfinest  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#7 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-24-2003, 02:26 PM

Be careful when you paste CODE. It can lose it's format if done incorrectly.
Here's the code again to replace all the function loggin in Your Account module index.php


Code:
function login($uname, $pass, $redirect, $mode, $f, $t) {
    global $setinfo, $user_prefix, $dbi, $module_name, $pm_login;
    $result = sql_query("select pass, uid, storynum, umode, uorder, thold, noscore, ublockon, theme, commentmax, user_active from ".$user_prefix."_users where uname='$uname'", $dbi);
    $setinfo = sql_fetch_array($result, $dbi);
    $forward = ereg_replace("redirect=", "", "$redirect");
    if (ereg("privmsg", $forward)) {
        $pm_login = "active";
    }
    if ((sql_num_rows($result, $dbi)==1) AND ($setinfo[uid] != 1) AND ($setinfo[pass] != "") AND ($setinfo[user_active] == 1 )) {
	$dbpass=$setinfo[pass];
	$non_crypt_pass = $pass;
  	$old_crypt_pass = crypt($pass,substr($dbpass,0,2));
	$new_pass = md5($pass);
	if (($dbpass == $non_crypt_pass) OR ($dbpass == $old_crypt_pass)) {
	    sql_query("update ".$user_prefix."_users set pass='$new_pass' WHERE uname='$uname'", $dbi);
	    $result = sql_query("select pass from ".$user_prefix."_users where uname='$uname'", $dbi);
	    list($dbpass) = sql_fetch_row($result, $dbi);
	}
	if ($dbpass != $new_pass) {
            Header("Location: modules.php?name=$module_name&stop=1");
    	    return;
	}
	docookie($setinfo[uid], $uname, $new_pass, $setinfo[storynum], $setinfo[umode], $setinfo[uorder], $setinfo[thold], $setinfo[noscore], $setinfo[ublockon], $setinfo[theme], $setinfo[commentmax]);
	if ($pm_login != "") {
            Header("Location: modules.php?name=Private_Messages&file=index&folder=inbox");
	    exit;
	}
        if ($redirect == "" ) {
            Header("Location: modules.php?name=Your_Account&op=userinfo&bypass=1&uname=$uname");
        } else if ($mode == "") {
            Header("Location: modules.php?name=Forums&file=$forward");
        } else if ($t !="")  {
            Header("Location: modules.php?name=Forums&file=$forward&mode=$mode&t=$t");
        } else {
            Header("Location: modules.php?name=Forums&file=$forward&mode=$mode&f=$f");
	}
    } else {
	Header("Location: modules.php?name=$module_name&stop=1");
    }
}
IF you still get the Parse error, let me know and I'll send you OUR index.php file

OR
try changing your code there from this
Code:
654:       } 
655:          } else { 
656:       Header("Location: modules.php?name=$module_name&stop=1"); 
658:     } 
659: }
to this
Code:
654:       } 
655:           else { 
656:       Header("Location: modules.php?name=$module_name&stop=1"); 
658:     } 
659: }
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Junior Member
 
Status: Offline
Posts: 94
Join Date: Jan 2003
Location: Brooklyn
01-24-2003, 09:04 PM

heh... dude.. Sorry for being a pain in the butt... I got that part fixed... but the emails being sent still have an incorrect addy in the link.

The activation link being sent is:

http://bayridgenights.com/modules.php?...........

It should be:

http://bayridgenights.com/community/modules.php?..........

Again sorry for being a pain, and thanks ever so much for the help.
  Send a message via AIM to Br00klynzzfinest  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#9 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
01-25-2003, 10:10 AM

Check and make sure you have the Correct path set in Forum Admin configuration under Domain name.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#10 (permalink))
Junior Member
 
Status: Offline
Posts: 94
Join Date: Jan 2003
Location: Brooklyn
01-25-2003, 01:46 PM

Mikem.. If i wasnt a guy... i could kiss you. lol Thanks for all your help.
  Send a message via AIM to Br00klynzzfinest  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
registration email varialskate Nuke 6.5 to 6.9 - General 1 08-15-2004 05:52 AM
Registration hack Problem!!!!! G2F Purged Topics 2 03-24-2003 08:23 PM
Registration Hack Kelu Purged Topics 1 01-21-2003 06:17 PM
Forum Registration Hack IACOJ Purged Topics 10 01-11-2003 06:28 PM
Forum Registration Hack Konan Purged Topics 3 12-30-2002 10:58 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31