By phil88 on
I'm trying to create a list of blog links to people's blogs. However, I cannot seem to find the path that includes the username. This is similar to the path to the user's home page.
I understand that this link works:
http://somewhere.com/blog/[userid]/
However, i'm looking for:
http://somewhere.com/blog/[username]/
Thanks!
Comments
Install pathauto.
Install pathauto.
Solved
Actually, I was looking for this function:
drupal_get_path_alias("user/$author->uid");
This will get the URL Alias for the users account page by passing the user->UID