Posted by caponey on October 17, 2009 at 7:09am
I just installed and set up the LoginToboggan module, and is there an easy way to make the user name be a link to their profile page? Just to be clear, I am talking about the username that appears next to the Logout link once a user logs in.
thanks!
c
Comments
Do you already have a
Do you already have a solution?
Kind regards,
Veerle
I don't know where I found
I don't know where I found it, but I've been using this in my template.php:
function THEME_NAME_lt_loggedinblock(){global $user;
return l(check_plain($user->name), 'user/' . $user->uid) .' | ' . l(t('Log out'), 'logout');
fantastic
perfect, that is just what i was looking for - thanks!
1 + 1 = 3
fantastic
perfect, that is just what i was looking for - thanks!
1 + 1 = 3
Thanks!
This solution works for me too!
Hi Guys - I'm a total newbie
Hi Guys - I'm a total newbie and trying to do this. Where is Template.php located and how do we go about doing this. Is it as simple as copy/paste the code specified into that file once found??? Any help is appreciated.
The template.php file is in
The template.php file is in your theme folder (../themes/yourtheme/template.php). And yes - it's as simple as pasting the code into the file. You'll notice how things are setup once you open in the file.
Thanks
Thanks mgladding for the guidance.
I have also referenced this discussion thread back to the module maintainer in a hope that future releases already have this basic element integrated into the module.
http://drupal.org/node/1160118
You can get a patch from the above link - as a work-around. I will be trying this out.
Regards,
Raj