Patch (to be ported)
Project:
Danland
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2012 at 02:20 UTC
Updated:
26 Sep 2012 at 19:02 UTC
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 commentedHi fundawang,
Thank you!
Dan
Comment #2
dunx commentedSame for 6.x-2.1
Comment #3
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>'; } }