Let me keep this simple what i did was i designed my own primary menu under the header of my site which includes home,blog,poll and logout.Now as soon as i click on logout i'm getting logged out but the problem is that once again when i'm clicking this logout it's showing access denied instead what i want is as soon as i click logout the logout link should dissappear and after login it should appear back.Now all this links in my primary menu has been defined in page.tpl.php

Thank you

Comments

verbal@drupal.org’s picture

I'm not quite sure why your getting access denied but I know how to fix the login / logout text:

<?php
global $user;
if( $user->uid )
{
// do something for a currently logged in user
}
else
{
// do something for an anonymous user
}
?>

So basically if the user is logged in then show the text "logout", but if they aren't then show the text "login", lemme know if that fixes the access denied problem too.

markhope’s picture

You've already posted this question and are receiving replies:
http://drupal.org/node/144701

If you repost it would be useful to refer to your original post instead of diluting everybody's efforts to help you.

Mark