1. 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 ?

Discussion in 'XenForo Questions and Support' started by erich37, Aug 7, 2014.

  1. erich37

    erich37 Well-Known Member

    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!
     
  2. erich37

    erich37 Well-Known Member

    does anyone have an idea of how to do this ?

    :)
     
  3. Mike

    Mike XenForo Developer Staff Member

    See the "value display HTML" option. You can use that to adjust the output appearance.
     
  4. erich37

    erich37 Well-Known Member

  5. Mike

    Mike XenForo Developer Staff Member

    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 likes this.
  6. erich37

    erich37 Well-Known Member

    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>
     
  7. Mike

    Mike XenForo Developer Staff Member

    Nofollow doesn't make sense on a mailto link - the email address itself would still be "indexed" regardless.
     
    erich37 likes this.

Share This Page