GetSimple Support Forum
How to get UPPERCASE usernames in GS and Multi User module? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: How to get UPPERCASE usernames in GS and Multi User module? (/showthread.php?tid=2368)



How to get UPPERCASE usernames in GS and Multi User module? - mrmut - 2011-11-11

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!


How to get UPPERCASE usernames in GS and Multi User module? - JWH_Matthew - 2012-01-31

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


How to get UPPERCASE usernames in GS and Multi User module? - mrmut - 2012-01-31

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



How to get UPPERCASE usernames in GS and Multi User module? - mikeh - 2012-01-31

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.