In the node.tpl, how do i just get the $author profile page url?

with the $submitted, it prints out other things, all i need is just something like this:

<a href="$url">$author</a>

I've also used $name, but this only gives the name without a link.

I would also like to get the link to the current user's profile. Again, just need the username with their profile url only.

  • 1
    i just found out, the $name does out put the link, but it needs to active profile view for public/authentic users in the permissions first – devric Mar 7 '12 at 7:27
$url = l("user/" . $node->uid);
  • this is a good one too! – devric Mar 9 '12 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.