|
» Online Users: 43 |
| 0 members and 43 guests |
| No Members online |
| Most users ever online was 611, 03-21-2008 at 11:10 PM. |
|
» .::. |
Web Hosting - web hosting, dedicated servers and web design services
|
Online Degree - search for 1000+ online degrees, online colleges & online universities.
|
Tattoo - we are a group of tattoo enthusiasts
|
Gexa Energy - your absolute best choice in electric service
|
|
|
|
|
|
|
|
|
|
|
About this Page This is a discussion on Error confirming email in Registration Hack within the Purged Topics forums, part of the NM Staff category; Your account is currently inactive. You cannot use it until you visit the
following link: link to activate member
But ... |
|
 |
|
 |
|
 |

01-24-2003, 09:40 AM
|
|
Junior Member
|
|
Join Date: Jan 2003
Location: New Jersey
Posts: 40
|
|
|
Error confirming email in Registration Hack
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.
|

01-24-2003, 09:52 AM
|
|
Senior Member
|
|
Join Date: Oct 2002
Location: Alabama, USA
Posts: 619
|
|
|
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?
|

01-24-2003, 10:12 AM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
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=' . |
|

01-24-2003, 10:42 AM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
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
|

01-24-2003, 01:08 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Location: Brooklyn
Posts: 94
|
|
Kick ass Mikem ! 
|

01-24-2003, 03:21 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Location: Brooklyn
Posts: 94
|
|
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: } |
|

01-24-2003, 03:26 PM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
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: } |
|

01-24-2003, 10:04 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Location: Brooklyn
Posts: 94
|
|
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.
|

01-25-2003, 11:10 AM
|
|
Senior Member
|
|
Join Date: Sep 2002
Posts: 2,905
|
|
|
Check and make sure you have the Correct path set in Forum Admin configuration under Domain name.
mikem
|

01-25-2003, 02:46 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Location: Brooklyn
Posts: 94
|
|
|
Mikem.. If i wasnt a guy... i could kiss you. lol Thanks for all your help.
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|