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

XF 1.4 Reddit username under Additional Contact

Discussion in 'XenForo Questions and Support' started by JackieChun, Jun 27, 2015.

  1. JackieChun

    JackieChun Active Member

    Are there any plans to overhaul Additional Contact fields available to users during registration? AIM, ICQ, and Yahoo Messenger usage is dwindling, Google Talk is no longer a thing, while a bunch of social networks have emerged that people are using now. Much of my membership, for example, comes from reddit, and I would like to have the ID listed in Additional Contact. Is this possible?
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can create a custom user field for it.
  3. JackieChun

    JackieChun Active Member

    Can custom user fields have URLs and regular expressions in them? Because the user ID would need to be turned into a link to be useful. The format should be is http://www.reddit.com/user/username.
  4. eberkund

    eberkund Active Member

  5. JackieChun

    JackieChun Active Member

    Cool, could you help with making it a live link?
  6. eberkund

    eberkund Active Member

    What have you tried?

    When you make the custom field you need a regular expression to get just the user ID and then there is another field for how it is displayed where you can insert HTML
  7. JackieChun

    JackieChun Active Member

    I am at the Custom Field creation screen, not sure what to do next. I've only created static custom fields before.
  8. eberkund

    eberkund Active Member

    Options for text fields:

    Field type: Single line text box
    Value match requirements: A-Z, 0-9, and _ only

    General Options:

    Value Display HTML:
    <a href="http://reddit.com/user/{$value}">Reddit User {$value}</a>
  9. JackieChun

    JackieChun Active Member

    Great, thank you very much.

    Slight correction to the code:

    <a href="http://reddit.com/user/{$value}">{$value}</a>
    The style will display Reddit user: automatically.


Share This Page