Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I really enjoy the functionality that logintoboggan provides. One request I do have would be to change the username that is displayed in the "LoginToboggan logged in block" from static text to a link to the user's my account page.
Comments
Comment #1
EvanDonovan CreditAttribution: EvanDonovan commentedYou can easily do this using a theming function such as
Note that the code given above is untested. It should work, though, after you add it to your theme's template.php file & rebuild the theme registry (which you can do by visiting admin/build/themes).
However, I would suggest you consider that this change might make it more difficult for people to click logout, since they might click their username by mistake.
(Unrelated: was my reply the first 4th of July post in Drupal's timezone? I'll have to check...)
Comment #2
pipicom CreditAttribution: pipicom commentedThanks EvanDonovan..
Comment #3
kbell CreditAttribution: kbell commentedI agree, however, that this is one of the several mods I have to use every time I use logintoboggan - from a usability standpoint, it's what users expect, and I would love to not have to add this custom to every site I do :-)
Thank you for a wonderful module.
Comment #4
hunmonk CreditAttribution: hunmonk commentedi've decided to implement this in 7.x. for 6.x and below, please use the approach outlined in #1.
Comment #5
hunmonk CreditAttribution: hunmonk commentedhttp://drupal.org/node/610936
Comment #7
abaddon CreditAttribution: abaddon commentedno need for check_plain, its already done by default in l(), http://drupal.org/node/28984
however, it should be more like this
same result..
Comment #8
Tino CreditAttribution: Tino commentedJust what I was looking for. Thanks!
Comment #9
tallsimon CreditAttribution: tallsimon commentedwhat a shame you don't want to implement this for drupal v6. I use a subtheme which cannot be subthemed (an acquia fusion subtheme) so adding code to the template is not so straightforward, have to remove parent template and write one for subtheme or modify parent theme template.
but glad it will be in v 7, good work.
simon
Comment #10
abaddon CreditAttribution: abaddon commented@tallsimon, im in the same situation now, i dont want to hack the theme, so..