0
Welcome Guest! Login
0 items Join Now

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

SOLVED: Updating Joomla User Information

  • SOLVED: Updating Joomla User Information

    Posted 15 years 6 months ago
    • Hi. I'm trying to create a form that among other things updates the Joomla user information. It seems to work just fine when updating the username, password, and email. However, I can't seem to get it to update the name field.

      I've tried:
       
      $user =& JUser::getInstance((int)$id);
      $user->set('name', 'newname');
      if ( !$user->save() )    return false;
       

      and also:
       
      $user =& JUser::getInstance((int)$id);
      $post['name']   = 'newname';
      if (!$user->bind($post)) return false;
      if ( !$user->save() )    return false;
       

      Neither seems to work. As I said, both ways work when updating username, password, or email but not for name. Also, I am using the user bind way when I initially create the user and that does populate the name field correctly. So, I'm not sure what I am doing wrong.

      Any suggestions? Is there something I am missing or doing wrong?

      Thanks,
      greg
    • Last Edit: 15 years 6 months ago by Greg Wright.
  • Re: SOLVED: Updating Joomla User Information

    Posted 15 years 6 months ago
    • SOLVED!!!

      Joomfish was intercepting that field. Once I deleted that field definition from Joomfish the problem went away.
    • JEM's Avatar
    • JEM
    • Preeminent Rocketeer
    • Posts: 17917
    • Thanks: 4

    Re: SOLVED: Updating Joomla User Information

    Posted 15 years 6 months ago
    • Thanks for the feedback! :D
    • Thanks,
      jim

Time to create page: 0.083 seconds