Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get UPPERCASE usernames in GS and Multi User module?
#1
Is there a way to make usernames UPPERCASE?

I did achieve this in top right corner with:

Code:
.wrapper #pill li.rightnav b
{
text-transform:uppercase;
}

However, I am not particularly happy with it.
Is there a way to alter this? - Or maybe have "First Last" username?


Thanks!
Reply
#2
The reason the username is lowercase is because it is also the name of the file. PHP requires that you use exact capetilization so we decided to force lowercase usernames when adding users. At the time this was the simplest option.

However I will check but we may be able to change the code a little on the header to fix this.

Sorry for the slow response.
Matthew
JWH Technologies
Have any marketing ideas for Get-Simple? Let me hear them!
Reply
#3
Thanks!



OWS_Matthew Wrote:The reason the username is lowercase is because it is also the name of the file. PHP requires that you use exact capetilization so we decided to force lowercase usernames when adding users. At the time this was the simplest option.

However I will check but we may be able to change the code a little on the header to fix this.

Sorry for the slow response.
Matthew
Reply
#4
9 characters is all it takes to accomplish this:
  • Open admin/template/include-nav.php
  • Around line 13 you should see the below variable:
Code:
$USR
  • Replace ONLY the $USR variable with the below coding
Code:
ucfirst($USR)

The ucfirst($str) function capatilizes the first letter of a string.
Note that 'alphabetic' is determined by the current locale. For instance, in the default "C" locale characters such as umlaut-a (ä) will not be converted.
Reply




Users browsing this thread: 1 Guest(s)