| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Allow @ and other characters as username | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Dear Community,
I would like that users can use the "@" and the "." in their username. What should I edit to do this? Kind regards, Bastiaan
__________________
X-cart Version 4.3 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version (as per forum rules) so that we can answer your questions correctly. Thanks!
There are a few threads on this already - I would have pointed you to one, but I don't know what version you need it for! Have a search for email username and you should find what you are looking for.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
![]() Thank for the update. I just did an update on my signature.
The problem is more that when I try to type a "@" in the username field it says its not allowed. Is there a line in the code that I can change so it allows it? Most posts mention the fact that you have to alter 10+ pages, but that's more for store that just want an email address as log in, they don't also use a username. I will solve that problem by renaming "Email address" with "Re-enter email address" So I search the line which prohibits the use of "@" and "." in the username field. Kind regards, Bastiaan
__________________
X-cart Version 4.3 |
|||||||
#4
|
|||||||||
|
|||||||||
![]() Open the include/register.php file and change this:
PHP Code:
to this: PHP Code:
The default X-Cart 4.1 code allows only lowercase a-z, 0-9, -, and _. Oddly this code also has a flag to treat . as a line break, but there isn't a . in the code regex?? The new code will allow lower or uppercase a-z, 0-9, -, @, ., and _. |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Any chance that something like this can be used to correct the & issue in the Company Name field?
|
|||||||||
#6
|
|||||||
|
|||||||
![]() Brewer,
Quote:
This is what I see in my PHP file. Does your solution still works then or do I need some other way? (looks like it refers to another file?) Kind regards, Bastiaan
__________________
X-cart Version 4.3 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|