GetSimple Support Forum

Full Version: How to get UPPERCASE usernames in GS and Multi User module?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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
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
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.