Author |
Message |
crypto
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/591b6d4a4ed0f54d57219.png)
Joined: Aug 02, 2004
Posts: 165
|
Posted:
Tue Dec 07, 2010 12:51 pm |
|
Hi!
Do you know what could be wrong when user(s) cannot change their email address? Everything 'seems to be ok' (no errors), but address wont be changed.
/modules.php?name=Forums&file=profile&mode=editprofile
// Typo corrected |
Last edited by crypto on Sun Dec 04, 2011 8:13 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/3234de284ee21bd39eecd.jpg)
Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina
|
Posted:
Tue Dec 07, 2010 1:38 pm |
|
For your head js, try this file:
http://trickedoutnews.com/nuken/includes.zip
The directory structure should be correct.
For the email changing issue, make sure in Admin Edit Users Configuration Permissions make sure the Allow User Email Change is set to yes.
If it is, the user will have to click the new activation link that is sent to the new email address to make the change happen. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
crypto
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Dec 07, 2010 2:22 pm |
|
Thanks! |
Last edited by crypto on Sun Dec 04, 2011 8:14 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
nuken
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Dec 07, 2010 2:27 pm |
|
If all you needed was the code you posted above, than no you do not need to do anything else. That file will load the js for you. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
crypto
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Dec 07, 2010 2:38 pm |
|
nuken wrote: | For the email changing issue, make sure in Admin Edit Users Configuration Permissions make sure the Allow User Email Change is set to yes.
If it is, the user will have to click the new activation link that is sent to the new email address to make the change happen. |
"Allow User Email Change" setting was OFF. I changed it ON but it didn't help. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
NeapolitanWorld
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/629afee64adaa50fd6d95.jpg)
Joined: Nov 06, 2005
Posts: 339
Location: Los Angeles, USA
|
Posted:
Tue Dec 07, 2010 2:43 pm |
|
crypto, yes i have this problem as well and had no solution so just disabled it. any time users need a change of e-mail i actually have to do it on the DB
jc |
_________________ My Raven Site Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
PHrEEkie
Subject Matter Expert
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 23, 2004
Posts: 358
|
Posted:
Tue Dec 07, 2010 3:14 pm |
|
As suggested, the email address WON'T be changed until an email validation is clicked through (I'm just repeating that, I'm not actually sure).
My question would be... is the email being sent and received? At which point "doesn't it work"? The email is sent, the validation link clicked, and THEN the email hasn't been changed?
I can fix this easily if you let me know where it's failing. I do recall briefly running across another thread here about this issue. hmm...
- Keith |
_________________ PHP - Breaking your legacy scripts one build at a time. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
crypto
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Dec 07, 2010 3:37 pm |
|
nuken wrote: | If all you needed was the code you posted above, than no you do not need to do anything else. That file will load the js for you. |
Thanks, it's working fine . |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
crypto
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 19, 2010 2:07 am |
|
PHrEEkie wrote: | As suggested, the email address WON'T be changed until an email validation is clicked through (I'm just repeating that, I'm not actually sure).
My question would be... is the email being sent and received? At which point "doesn't it work"? The email is sent, the validation link clicked, and THEN the email hasn't been changed?
I can fix this easily if you let me know where it's failing. I do recall briefly running across another thread here about this issue. hmm...
- Keith |
Email is sent and received but it always says that email is taken and cannot be changed. I have checked that the email address is not in use. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
Site Admin
![](modules/Forums/images/avatars/Dilbert/Dilbert_-_Dogbert_King.gif)
Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania
|
Posted:
Sun Dec 19, 2010 2:59 am |
|
Your_Account/public/changemail,php
Code:
/**************************************************************************/
/* RN Your Account: Advanced User Management for RavenNuke
/* =======================================================================*/
/*
/* Copyright (c) 2008-2009, RavenPHPScripts.com http://www.ravenphpscripts.com
/*
/* This program is free software. You can redistribute it and/or modify it
/* under the terms of the GNU General Public License as published by the
/* Free Software Foundation, version 2 of the license.
/*
/**************************************************************************/
/* RN Your Account is the based on:
/* CNB Your Account http://www.phpnuke.org.br
/* NSN Your Account by Bob Marion, http://www.nukescripts.net
/**************************************************************************/
if (!defined('RNYA')) {
header('Location: ../../../index.php');
die();
}
$get_id = isset($_GET['id']) ? intval($_GET['id']) : '';
$check_num = isset($_GET['check_num']) ? check_html($_GET['check_num'], 'nohtml') : '';
$newmail = isset($_GET['mail']) ? check_html($_GET['mail'], 'nohtml') : '';
getusrinfo($user);
include_once 'header.php';
title(_CHANGEMAILTITLE);
opentable();
if ((is_user($user)) AND (strtolower($userinfo['username']) == strtolower($cookie[1])) AND ($userinfo['user_password'] == $cookie[2])) {
// montego - moved the following block of code here from above as need to make sure is a user first before anything else!
ya_mailCheck($newmail);
list($get_username, $tuemail) = $db->sql_fetchrow($db->sql_query('SELECT username, user_email FROM ' . $user_prefix . '_users WHERE user_id = \'' . $get_id . '\''));
$datekey = date('F Y');
$check_num2 = substr(md5(hexdec($datekey) * hexdec($userinfo['user_password']) * hexdec($sitekey) * hexdec($newmail) * hexdec($tuemail)) , 2, 10);
// montego - end of move.
if ($stop == '') {
if ((strtolower($userinfo['username']) == strtolower($get_username)) AND ($check_num2 == $check_num)) {
$result = $db->sql_query('UPDATE ' . $user_prefix . '_users SET user_email=\'' . addslashes($newmail) . '\' WHERE user_id=\'' . $get_id . '\'');
if ($result) echo _CHANGEMAILOK;
else echo _CHANGEMAILNOT;
} else {
echo _CHANGEMAILNOT;
}
} else {
echo $stop;
}
} else echo _CHANGEMAILNOTUSER;
closetable();
include_once 'footer.php';
|
|
_________________ "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
crypto
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 19, 2010 4:20 am |
|
Thanks, now it works. Is this a new fix or have I missed this one? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
NeapolitanWorld
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Dec 19, 2010 10:48 am |
|
Palbin, thank you. This worked for me as well!
jc |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Mon Dec 20, 2010 8:50 am |
|
Looks to be new to me. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Palbin
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Dec 20, 2010 9:42 am |
|
This issue was already an issue in our bug tracking system and I had already corrected it for the next release. I have made this a sticky. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|