Firstname and Lastname with ucfirst()

I had a user sign up with lowercase first and last name.

It would be nice if the core files for first and last name were changed to include a ucfirst().

Could this be done in the join processor? Function registerMember() calls the profile information for a username check...After the line:

$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]);

Can I insert something like:

$aProfile1['FirstName'] = ucfirst($aProfile1['FirstName'])

$aProfile1['LastName'] = ucfirst($aProfile1['LastName'])

Thanks in advance,

Ace

Quote · 21 Jun 2013

bump.

No one knows how/where to do this?

Quote · 24 Jun 2013

Looks to me like that would work just fine.

Unless someone has actually done it before, then you may not get a answer.

So. If you think you have a solution, then make a backup, and just try it.

You may want to consider setting up a second site. A test site for toying with and testing ideas.

https://www.deanbassett.com
Quote · 24 Jun 2013

I'd be interested to know if this works for you as I may well want to do the same

Quote · 24 Jun 2013

This fix worked perfectly the first try...

 

Find:

$aProfile1 = $this->oPF->getProfileFromValues($this->aValues[0]);

 

After it, Add the lines:

        //--- aceiscracked edits - force cap if users didn't
        $aProfile1['FirstName'] = ucfirst($aProfile1['FirstName']);
        $aProfile1['LastName'] = ucfirst($aProfile1['LastName']);
        //--- end aces edit

 

This Free Core Edit brought to you by Aceiscracked. You are welcome. lol

Maybe it should be included in the Dolphin Base Code?

Quote · 30 Jun 2013

 

This fix worked perfectly the first try...

 Thanks.

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 30 Jun 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.