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

Custom user field "url" does not make a clickable link

Discussion in 'XenForo Questions and Support' started by Karelke, Sep 4, 2014.

  1. Karelke

    Karelke Active Member

    1) Navigate to admin.php?user-fields
    2) Create a new field "Single-line text box" and set "Value Match Requirements" to "URL".
    3) Navigate to index.php?account/personal-details and enter an url in the new user field.
    4) Navigate to your profile page, you'll see the link is not clickable.

    Edit profile page:

    Screenshot from 2014-09-04 15:08:51.png

    View profile page:

    Screenshot from 2014-09-04 15:09:12.png

    The URL should be clickable, just like the homepage url:

    Screenshot from 2014-09-04 15:10:12.png
  2. Chris D

    Chris D XenForo Developer Staff Member

    The value match only controls the type of data that can be input, it doesn't get involved with formatting.

    To format it, under the General Options tab while editing the field, in the "Value Display HTML" field, you can specify the output HTML, e.g:

    <a href="{$value}">{$value}</a>
    Motobaka, adwade and Karelke like this.
  3. Karelke

    Karelke Active Member

    Ha, I overlooked that option. Thanks @Chris D

Share This Page