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.
Great theme! One suggestion - the "Logged in as " text in the upper right of the screen was coded as the username ($user->name), but would be better if it were theme('username', $user). Making this change in the page template allowed the RealNames module to replace the username using the "realname" that I set. I would suggest adding this change to your next release.
Comments
Comment #1
danpros CreditAttribution: danpros commentedThank you!
Okay I'll considering to add that in my next release :)
Comment #2
verta CreditAttribution: verta commentedI added some code to page-front.php.tpl to put the RealName in the "logged in as" area.
From research on other modules adding RealName support, I needed to add a call to theme(), and I also wrapped that in a call to striptags() as I don't want the real name or the login name hyperlinked to the profile, since we don't want that as part of this site.
(Disclaimer, I am not a PHP coder.)
Original
Replaced with:
(It's a private site, so I have the registration links commented out.)
Comment #3
Skidz CreditAttribution: Skidz commentedJust in case anyone would like to implement this with a hyperlink to the user profile, change:
{ print '<li class="first">' .t('Logged in as '). strip_tags(theme('username', $user)). '</li>';
To:
{ print '<li class="first">' .t('Logged in as '). '<a href="' .url('user/'.$user->uid). '">' .theme('username', $user). '</a></li>';
Thank you Verta!