Sorry, I tried it again and it worked perfectly. I must have not posted something right. I got the error because I left out the:
if ($post['fieldx'])
{
I thought I added it when I tried a second time, but I didn't get an error message nor did anything show up. But here's the completed code for Method 2 that works perfectly:
Code:
if ($post['fieldx'])
{
$template_hook['postbit_userinfo_right_after_posts'] .= '<dt>My fieldX</dt> <dd><a href="' .$post[fieldx]. '">My Link</a></dd>';
}
The My Link can be anything anyone what's it to be.
I also adjusted the code so that it fits Method 1 and I tested it and it works great to. It still goes in the same place you said.
Code:
<vb:if condition="$post['fieldx']"><dt>My fieldX</dt> <dd><a href="{vb:raw post.fieldx}">My Link</a></dd></vb:if>
I included an attachment to show the end result.