• 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

Karelke

Active member
#1
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
 

Chris D

XenForo developer
Staff member
#2
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:

HTML:
<a href="{$value}">{$value}</a>