I'd like to add the "Contact" menu link into the Login & Logout area.

Not sure where to start?

- Make it a region? So I can move a block into it
- or just slide it in somehow

can anyone help?

Thanks

Comments

danpros’s picture

Hi,

Change the page.tpl.php and page-front.tpl.php to this

<div id="authorize">
<ul>
<?php 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>'; print '<li><a href="' .url('user/register'). '">' .t('Register'). '</a></li>'; } ?>
<li><a href="your-contact-url">Contact</a></li> <!-- Add this -->
</ul>
<?php print $feed_icons; ?>
</div>

Dan

green monkey’s picture

too kewl - thanks Dan ... you be the man :)

danpros’s picture

Status: Active » Closed (fixed)

You can add any links there, just place it before or after the login register :)

Okay, I'll close this.

Thanks,
Dan

grkm2002’s picture

Title: Login & Logout area - adding a menu link » Add the login block to the top right
Version: 6.x-1.9 » 6.x-2.1
Assigned: Unassigned » grkm2002
Status: Closed (fixed) » Active
grkm2002’s picture

Assigned: grkm2002 » Unassigned

Instead of having a login link at the top right I would like to have the username and password fields instead. It would be similar to if you put the search block at the top right.
Any suggestions would be nice. Must say... I love this theme.

danpros’s picture

Hi,

Maybe you can use this docs as a clue.

Dan

danpros’s picture

Status: Active » Closed (fixed)

Hi,

I will close this one.

Dan