PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Force display name setting in user registration add on

  1. First: I really love this add on!

    But...I needed a way to automatically set the registered user's display_name to firstname + lastname and came up with the (not so friendly) solution to edit userregistration.php a little bit.

    The way I did it was by adding
    $config["meta"]["display_name"] = RGForms::post("gf_user_registration_display_name");
    after line 485, and
    { 'name': 'Display name', 'value': 'display_name' }
    after line 696.

    Now, in the User Registration Forms settings, I have the option to set 'Display name' to the 'Name (Full)' field of my registration form.

    I guess the way to do this the right way, is through a custom function, but need some directions on how to. Hope someone can provide an example..

    Thanks in advance!

    Posted 14 years ago on Thursday December 23, 2010 | Permalink
  2. I'm now aware of any custom function to do this right now. But it is something that we can add to the User Registration Add-On as an option to preset the display name. We had left it off originally because users can edit this in their profile, but it does make sense to make it an option so admins can predefine the default.

    We will try and work this into the Beta 3 release.

    Posted 14 years ago on Thursday December 23, 2010 | Permalink
  3. Great! And thanks for the quick reply :-)

    Posted 14 years ago on Thursday December 23, 2010 | Permalink
  4. +1

    Posted 13 years ago on Sunday December 26, 2010 | Permalink
  5. Did it make to beta 3 (or 5)

    I can’t seem to find it.

    Posted 13 years ago on Tuesday March 8, 2011 | Permalink

This topic has been resolved and has been closed to new replies.