Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Sometimes, administrators will set the site as not available for public registration, so registration link on top head should be hidden in such cases.
Patch follows.
Comment | File | Size | Author |
---|---|---|---|
page.tpl_.php_.patch | 570 bytes | fundawang | |
Comments
Comment #1
danpros CreditAttribution: danpros commentedHi fundawang,
Thank you!
Dan
Comment #2
dunx CreditAttribution: dunx commentedSame for 6.x-2.1
Comment #3
dunx CreditAttribution: dunx commentedD6 change to page-front.tpl.php and page.tpl.php is the following in the obvious place.
global $user; if ($user->uid != 0) { print '<li class="first">' .t('Logged in as '). '<a href="' .url('user/'.$user->uid). '">' .$user->name. '</a></li>'; print '<li><a href="' .url('logout'). '">' .t('Logout'). '</a></li>'; } else { print '<li class="first"><a href="' .url('user'). '">' .t('Login'). '</a></li>'; if ( variable_get('user_register',0) ) {print '<li><a href="' .url('user/register'). '">' .t('Register'). '</a></li>'; } }