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

1 Answer 1

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

Your Answer

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

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