Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Use E-mail address instead of username 3.5.x & 4.0

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #71  
Old 03-02-2007, 09:57 AM
 
Lyndon Smith Lyndon Smith is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 42
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

Great! Will these mods work on 4.1.3?
__________________
Lyndon Smith - X-Cart Version 4.1.3 [Linux]

http://www.adultebookshop.com
Reply With Quote
  #72  
Old 03-03-2007, 08:05 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

I found the Code on Post #64 worked fine on my 4.1.x Install (I can't remember exactly what Version I was using at the time) but it should work fine on 4.1.3.
Reply With Quote
  #73  
Old 03-05-2007, 02:37 PM
 
sparker2 sparker2 is offline
 

eXpert
  
Join Date: Feb 2007
Posts: 290
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

Will this work with version 4.1.6
__________________
Shareen
sparker2@cox.net
http://www.stitches4u.com
X-Cart Version 4.5.0 with Smart Template vs 4.4.x
Reply With Quote
  #74  
Old 03-07-2007, 06:38 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

It works on my Version 4.1.6.
Reply With Quote
  #75  
Old 03-12-2007, 01:01 PM
  2019's Avatar 
2019 2019 is offline
 

Advanced Member
  
Join Date: Dec 2004
Posts: 76
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

can someone please , post the modded full working version for 4.1.6

thnx
__________________
// x-cart 4.1.9

X-CART CSS SKIN
XC SEO
IP Addresses in Users Online for all users
Color coded order status
Reply With Quote
  #76  
Old 03-14-2007, 03:05 AM
 
just wondering just wondering is offline
 

X-Adept
  
Join Date: Oct 2006
Location: UK
Posts: 471
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

2019: Click here.
Reply With Quote
  #77  
Old 04-03-2007, 05:39 PM
 
dsoong dsoong is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 94
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

Quote:
<!--uname = mail fix-->
{literal}
<SCRIPT type="text/javascript">
<!--
function my_onchange() {
copyemail(document.registerform);
}
if (document.registerform && document.registerform.email)
document.registerform.email.onchange = my_onchange;
-->
</script>
{/literal}


This is my change inspired by #64. Basically the same but I like to keep all changes in one block.

They are inserted after if you are using 4.1.6

Quote:
<tr>
<td align="right">{$lng.lbl_password}</td>
<td><font class="Star">*</font></td>
<td nowrap="nowrap"><input type="password" id="passwd1" name="passwd1" size="32" maxlength="64" value="{$userinfo.passwd1}" />
{if $reg_error ne "" and $userinfo.passwd1 eq ""}<font class="Star">&lt;&lt;</font>{/if}

Next, how do we change the user name in DB?
Reply With Quote
  #78  
Old 04-03-2007, 08:01 PM
 
dsoong dsoong is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 94
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

Quote:
Originally Posted by tpaul
the script will change the hidden "uname" variable to equal the new email address and will cause an access denied error upon submit


This is quick work around I have

Quote:
$email = strtolower($email);
if (!isset($uname)) $uname = strtolower($email);

I don't know if your code will work the same. I am trying to fix a utf-8 user name problem I having so my code has change quite a bit.
Reply With Quote
  #79  
Old 04-10-2007, 04:30 AM
 
mvolpes mvolpes is offline
 

Member
  
Join Date: Dec 2006
Posts: 16
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

Hi guys

I implemented the very first mod ..and works a treat ...I am after some nice error handling for the sql insert/update for the register.php....any help??

I like a user to have a user name just a simple option to log in with the email address as was the original post's intention...

Any help would be greatly appreciated
__________________
www.bluemaya.com.au
x-cart version 4.0.19
Reply With Quote
  #80  
Old 04-10-2007, 04:33 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Use E-mail address instead of username 3.5.x & 4.0

Hi mvolpes, can you please update your signature with your X-Cart version? Really tough to answer posts when we don't know exactly what version you are using. Thanks
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:51 AM.

   

 
X-Cart forums © 2001-2020