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

Custom user field: Value Match Requirements: URL

Discussion in 'Troubleshooting and Problems' started by HenrikHansen, Jul 21, 2012.

  1. HenrikHansen

    HenrikHansen Well-Known Member

    When I make a custom user field and set Value Match Requirements: URL, the URL
    is not clickable on the use profile.

    I do not understand why? There should no reason to make a URL requirement option if the
    visitors cannot click on the URL anyway. Perhaps there is a solution for this? Thanks in advance.
  2. ragtek

    ragtek Guest

    the value match requirement is only for the validation of the field.

    you'll need to set the "display html" option
    something like
    <a href="{$value}">{$value}</a>
    Jake Bunce, HenrikHansen and Chris D like this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    {$valueUrl} is sometimes more appropriate.

    <a href="{$valueUrl}">{$value}</a>

    Same content, but it encodes the value specifically for use in a URL.
    Jake Bunce likes this.
  4. HenrikHansen

    HenrikHansen Well-Known Member

    Thanks to both of you. Chris, unfortunately it did not work the valueURL, but it worked with ragteks code.

Share This Page