[SOLVED] Â Username field in uppercase |
2/17/2007 6:29:05 AM |
PHPRunner General questions | |
G
gdude66 author
All of my users have their usernames in uppercase but they are used to entering them in lowercase (because they are lazy). |
|
D
|
Dale 2/17/2007 |
Graeme, |
G
|
gdude66 author 2/17/2007 |
Graeme, Using ver 3.0. I uppercase a little deeper into the app, then on just the registration page. I use is for my Canadian Postal Codes formating eg. V1W 1X1 With the two modifications I save and display the data in uppercase, and when the user types uppercase is displayed in the form. You may simply want to add the style example on the registration page template. I added the styles below into my style.css, then when the user types it in the Uppercase happens right on the form also. then I just edit the registration template to add the class=upper on the username input. .upper { font-size: 10pt; text-transform: uppercase;} postal { font-size: 10pt; text-transform: uppercase;} In the Before Add and the Before Save events use the example below. //** Custom code **** // put your custom code here $values["postal_zip_code"]=strtoupper($values["postal_zip_code"]); return true; That's how I acomplished the task. Ver 3.1 is a bit different, the folks may have an easier answer for you.
|
D
|
Dale 2/17/2007 |
Sorry Graeme, |
T
|
thesofa 2/18/2007 |
Hi |
G
|
gdude66 author 2/18/2007 |
Hi you could run an update query on your users tabe and change all the usernames to lowercase, then tell your lazy teachers (you have them too?) to use lower case only. It's an old trick, but it might just work There is also this article about making text into uppercase only from the articles section, as well as this one about writing table data in uppercase only , in addition there is this article about entering names in propercase which might help. HTH G
|
J
|
Jane 2/19/2007 |
Graeme, function BeforeLogin($username, $password) { $username = strtoupper($username); $password = strtoupper($password); } |
G
|
gdude66 author 2/19/2007 |
Graeme, you can do it using BeforeLogin event on the Events tab. Here is a sample:
|