We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17717
    • 433 Posts
    Hi all,

    Just wondering how I would go about adding a custom field called web address and then having this automatically set a hyperlink to the users name? I know how to create and display a custom field, just can’t get it to create a hyperlink on the name.

    Thanks
    Lee
      http://www.blend.uk.com | Web Design by Blend
      • 7923
      • 4,213 Posts
      Just simply wrap the username part in the comment template with a link tag that points to your custom field content.. no? like so:

      <div class="jot-user">
      <a href="[+comment.custom.webaddress+]">
      [+comment.createdby:isnt=`0`:then=`<b>`+][+comment.cre...........
      </a>
      .....


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 17717
        • 433 Posts
        I can’t seem to get this to work, it just seems to output a blank url.

        Thanks
        Lee
          http://www.blend.uk.com | Web Design by Blend
          • 17717
          • 433 Posts
          Got it working now, had different field name to the custom name... happy days.

          Lee
            http://www.blend.uk.com | Web Design by Blend
            • 17717
            • 433 Posts
            Spoke to soon...

            for some reason, when the site owner posts a comment, it doesn’t seem to add their address.

            Lee
              http://www.blend.uk.com | Web Design by Blend