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

XF 1.3 custom profile fields / how to make it into a Link ?

erich37

Well-known member
#1
Hello,

I have created a "User Profile / Custom Field" named "Website" and another field named "E-mail".
These fields are not "linked", but normal text.

How can I make these fields, so that they will appear as click-able Links ?



Many thanks!
 

Mike

XenForo developer
Staff member
#5
For an email, the href value should be "mailto:{$value}".

Note that it's important that you use the email/URL value match requirement for these fields.
 

erich37

Well-known member
#6
can I keep the "nofollow" for the E-mail-address, so that search-engines will not index the "E-mail-address" ?

Code:
<a href="mailto:{$value}" rel="nofollow" target="_blank">{$value}</a>



I guess I will have to skip the "target="_blank" when using it for an "E-mail address" ?

Code:
<a href="mailto:{$value}" rel="nofollow">{$value}</a>