![]() |
4.2 User Name Question
Please move this message if I posted to wrong forum.
I am trying to change the registration form to allow capital letters. I changed the following line in include/register.php but it does not work. From: if ((strcmp($uname_tmp, $uname) != 0) || (!preg_match("/^[a-z0-9_-]+$/s", $uname) && $uname != "")) To: if ((strcmp($uname_tmp, $uname) != 0) || (!preg_match("/^[a-zA-Z0-9_-]+$/s", $uname) && $uname != "")) when registering an admin or customer, it still displays the error message that only lower case letters and numbers may be used. |
Re: 4.2 User Name Question
Did you clear the cache?
Strange how in prior versions x-cart used "!preg_match", but in 4.1.11 they used "eregi", and now with 4.2 it looks like they are going back to "!preg_match". Why would they do that? |
Re: 4.2 User Name Question
Yes I cleared the the templates_c folder and I cleared my browser cache. I even tried a different browser.
|
Re: 4.2 User Name Question
I got it to save the profile, but when it saves it to the database even though there are capital letters, it saves it in the database as lower case letters.
There is something over riding the settings on the register.php file. |
Re: 4.2 User Name Question
Strange...
In 4.1.8 (note: no "!preg_match" or "eregi") Code:
# Code:
# Code:
# Code:
# Code:
# This brings some questions... 1. Why the switch from "eregi" to "!preg_match"? 2 Why were the "newbie" and "anonymous" checks added, then removed? 3. Why was "if ($mode != "update")" added if, as you say, "There is something over riding the settings" when it is updated? |
Re: 4.2 User Name Question
I have been looking for this for days,
The user name will save as capital letters, but when it shows who is logged in it shows all lower case letters. I have searched through the mysql data base and have not found any other places where the customer user name is saved. So it must be some code somewhere that is causing the names to display in lower case only. |
Re: 4.2 User Name Question
Have you checked the templates to see if it's using something like {$username|lower} ?
|
All times are GMT -8. The time now is 04:52 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.