1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom field show another member

Discussion in 'Styling and Customization Questions' started by Morgain, Oct 29, 2012.

  1. Morgain

    Morgain Well-Known Member

    I want to add a custom field to a member's account so that I can add the name of another connected member.
    But I would like the name of this second linked member to display as clickable to open the second linked member's Membercard.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    To generate a hyperlink you need the user_id which is a second value in addition to the username. A custom field will only allow for one value. You could enter both the username and user_id as they appear in the URL:


    That will allow you to build a link, but then you don't have the username as a separate value for the visible text. You could create a listener for a template hook to parse the value and separate the name and user_id, but that requires programming.
    Morgain likes this.

Share This Page