Author |
Message |
kmarion
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/18a1f743432bb95684c7f.gif)
Joined: Nov 23, 2003
Posts: 64
|
Posted:
Tue Nov 25, 2003 9:37 pm |
|
I am having trouble trying to decifer where to paste the text from the file finishnewuser.php. I have grabbed the file from modules/Your_Account/index.php.. however i am having a hard time finding exaclty where I need to make the changes. I see the text finishNewUser but I am not exactly sure where I need to paste..Sorry if the wasn't very descriptive...looking at code all day makes a man loopy. Thanks for your help |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Nov 25, 2003 9:58 pm |
|
It's a 1 for 1 swap. You replace the finishNewUer() function in the index.php with the one from my mod. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kmarion
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 25, 2003 10:40 pm |
|
I have replaced the functions saved the index.php file and uploaded it back into the modules>your account folder via ftp.. created a test account..and for some reason it still wants a confirmation in the email provided when registering.. as if nothing has changed.. seemend simple enough..sheesh. I have seen this in action at another site so I must be cursed ![Twisted Evil](modules/Forums/images/smiles/icon_twisted.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 25, 2003 10:51 pm |
|
When you say it wants a confirmation email, how do you know this? If you are going by the message on the screen, that is just a message and as I state in the installation notes, you will need to change the language file for the message. If you have replaced the function, there is no way that a confirmation email is required. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kmarion
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 25, 2003 11:26 pm |
|
Absolutely nothing is changing.. I am copying the function all the way and pasting it all the way in the original finishnewuser area of the original. I have tried this on 2 seperate domians I have " www.tfssquad.org" www.Kerrysweb.com". with same results.. I even re-downloaded the mod from your site to ensure I had a good copy of it... I am totaly blown away by this simple mod.. uugg ..I am recieving no error messages as well. Just when I go to try user name and pass its says incorrect login"as if I did not confirm email |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 25, 2003 11:30 pm |
|
I just tested it and you have something wrong in your index.php file or you have installed some other mod that has altered the user table. Check your error log to see if there are any errors being written. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kmarion
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 25, 2003 11:39 pm |
|
What am I mising here?
Should this not be the alteration ?
function finishNewUser($username, $user_email, $user_password, $random_num, $gfx_check) {
global $stop, $EditedMessage, $adminmail, $sitename, $Default_Theme, $user_prefix, $db, $storyhome, $module_name, $nukeurl;
include_once("header.php");
include("config.php");
userCheck($username, $user_email);
$user_regdate = date("M d, Y");
if (!isset($stop)) {
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
if (extension_loaded("gd") AND $code != $gfx_check) {
Header("Location: modules.php?name=$module_name");
die();
}
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$check_num = mt_rand(0, $maxran);
$check_num = md5($check_num);
$time = time();
$finishlink = "$nukeurl/modules.php?name=$module_name&op=activate&username=$username&check_num=$check_num";
$new_password = md5($user_password);
$db->sql_query("INSERT INTO ".$user_prefix."_users_temp (user_id, username, user_email, user_password, user_regdate, check_num, time) VALUES (NULL, '$username', '$user_email', '$new_password', '$user_regdate', '$check_num', '$time')");
if(!$result) {
echo ""._ERROR."<br>";
} else {
////
global $db, $user_prefix, $module_name, $language;
$past = time()-86400;
$db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE time < $past");
$sql = "SELECT * FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'";
$result = $db->sql_query($sql);
if ($db->sql_numrows($result) == 1) {
$row = $db->sql_fetchrow($result);
if ($check_num == $row[check_num]) {
$db->sql_query("INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_password, user_avatar, user_regdate, user_lang) VALUES (NULL, '$row[username]', '$row[user_email]', '$row[user_password]', 'gallery/blank.gif', '$row[user_regdate]', '$language')");
$db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'");
// include_once("header.php");
title(""._ACTIVATIONYES."");
// OpenTable();
echo "<center><b>$row[username]:</b> "._ACTMSG."</center>";
// CloseTable();
// include("footer.php");
// die();
} else {
// include("header.php");
title(""._ACTIVATIONERROR."");
// OpenTable();
echo "<center>"._ACTERROR1."</center>";
// CloseTable();
// include("footer.php");
// die();
}
} else {
// include("header.php");
title(""._ACTIVATIONERROR."");
// OpenTable();
echo "<center>"._ACTERROR2."</center>";
// CloseTable();
// include("footer.php");
die();
}
////
}
} else {
echo "$stop";
}
include("footer.php");
} |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Nov 25, 2003 11:40 pm |
|
Please check you server and/or php error logs. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kmarion
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 26, 2003 12:44 am |
|
On 2 different servers?
I will check logs and I will stop spamming ur site now..lol.
I appreciate your time and have a good holiday Gaylen
- Kerry |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Wed Nov 26, 2003 12:46 am |
|
Kerry,
Try disabling the default login block. I don't think the 2 can coexist. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xantique
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/blank.gif)
Joined: Aug 30, 2003
Posts: 22
Location: Istanbul
|
Posted:
Sun Dec 21, 2003 7:33 am |
|
Raven wrote: | .. you will need to change the language file for the message. If you have replaced the function, there is no way that a confirmation email is required. |
Hi Raven ,
I resolved or bypassed my new-user-mail-link-activation-error* problem with your AutoActivate Mod for Nuke v7.0..
But on the page opened during the 1st stage of registration, is still marked that a confirmation mail will be sended to their adress....
Where to change this paradoxal language file for the message...
Thanks in advence and have a good holiday .
Nejat
*After upgrading from nuke 6.0 to 7.0 ,news users mail activation link were dead/hanged just after beeng reached back the site without any error code..
So new users were unable to reach their accounts via activation link sended to their adress...
Since two weeks I am digging MySql tables and applying all kind of solution proposals in nukecops forums but it dosn't worked . |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 21, 2003 7:37 am |
|
Then you haven't set it up correctly . Did you remember to change the setting
$autoActivate = FALSE;
to
$autoActivate = TRUE? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
xantique
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 21, 2003 7:38 am |
|
Ok. I found it ..I t was just above..!!
Have a good holiday again..
Nejat |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|