+ Reply to Thread
Results 1 to 9 of 9

Thread: Oppercase or lowercase names

  1. #1
    Senior Member
    Join Date
    Jan 2021
    Location
    Everywhere on world
    Posts
    111

    Question Oppercase or lowercase names

    Hello,

    I have the same problems like this tread
    https://forum.flynax.com/showthread....=username+caps

    with caps and all lowercase names in full_name,
    but I didn't find in "my template / css / style.css" this variable div.username.

    Maybe ucwords can help? Can anybody help me?

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    I need a screenshot to see what text you need to capitalize

  3. #3
    Senior Member
    Join Date
    Jan 2021
    Location
    Everywhere on world
    Posts
    111
    Hello Rudi,

    here are the pics for my problem.

    The users open an account with one or two words (see pic 1) but the entered name "FiRsT SeCoNd" should automatically become "First Name".

    2) The same in pic3. The entered Title "BIGzAc" should automatically become "Bigzac". That in pic4 stands "Bigzac" or when he used two names then "Big Zak".

    I think ucwords can realize it, but I don't know what I have to change.1.png3.png4.png

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    You can apply it to the code in includes > controllers > registration.inc.php > $username

  5. #5
    Senior Member
    Join Date
    Jan 2021
    Location
    Everywhere on world
    Posts
    111
    Too bad it doesn't work. It just brings Internal Server Error 500

  6. #6
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Did you make it like this?

    $username = ucfirst($username);

    or create a ticket and we'll help you

  7. #7
    Senior Member
    Join Date
    Jan 2021
    Location
    Everywhere on world
    Posts
    111
    Hello Rudi, I found this possibilities to change:


    PHP Code:
    Only registered members can view the code

    but always I get problems. Maybe I have to change one string only? But which one?

    Guenter

  8. #8
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    You can put my code after this line: $profile_data['location'] = $username;

  9. #9
    Senior Member
    Join Date
    Jan 2021
    Location
    Everywhere on world
    Posts
    111
    Hello Rudi,

    I pasted your code after the line but without success

+ Reply to Thread