Jump to content

ucfirst help


RolloDJ

Recommended Posts

Hey there, im trying to ucfirst the text that is displayed on my website cms, the users that sign up register there username in lowercase, i need help with making the first letter be uppercase for example from rollo to Rollo, when displayed on the cms not in the database

 

the line of code that is used to showed on the cms template is

 

$this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));

 

but the problem is i have tried using ucfirst but I cannot succeed, any help please?

Link to comment
Share on other sites

Just a guess because we really have no idea how your code works:

 

$this->setParams('username', ucfirst($users->getInfo($_SESSION['user']['id'], 'username')));

 

ps: The idea of changing the format of a users name is not something I would recommend doing.

Link to comment
Share on other sites

Just a guess because we really have no idea how your code works:

 

$this->setParams('username', ucfirst($users->getInfo($_SESSION['user']['id'], 'username')));

 

ps: The idea of changing the format of a users name is not something I would recommend doing.

 

Doesn't work, i'm guessing I cannot change it there, is there a reason why it isn't recommended?

 

think I will have to change it so when registered it has a display username as well as a log in?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.