X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Use E-mail address instead of username 3.5.x & 4.0 (https://forum.x-cart.com/showthread.php?t=8809)

Lyndon Smith 03-02-2007 09:57 AM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
Great! Will these mods work on 4.1.3?

just wondering 03-03-2007 08:05 AM

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.

sparker2 03-05-2007 02:37 PM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
Will this work with version 4.1.6

just wondering 03-07-2007 06:38 AM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
It works on my Version 4.1.6. :)

2019 03-12-2007 01:01 PM

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

just wondering 03-14-2007 03:05 AM

Re: Use E-mail address instead of username 3.5.x & 4.0
 
2019: Click here.

dsoong 04-03-2007 05:39 PM

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?

dsoong 04-03-2007 08:01 PM

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.

mvolpes 04-10-2007 04:30 AM

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

balinor 04-10-2007 04:33 AM

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 :)


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

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.