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
    Commented Mar 7, 2012 at 7:27

1 Answer 1

$url = l("user/" . $node->uid);
  • this is a good one too!
    – devric
    Commented Mar 9, 2012 at 10:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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