Login/Logout Menu

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
djslue
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 168
Joined: Thu Oct 22, 2009 4:42 am

Login/Logout Menu

Post by djslue » Tue Jul 26, 2016 6:15 pm

I made a menu item called logout. I want that to show only when a user is logged in.
have the login only show for public people and hide when people are logged in

and hide Signup when people are logged in
Last edited by imanickam on Wed Aug 07, 2019 2:58 am, edited 1 time in total.
Reason: Per the Forum Rules, changed the case of the Subject from ALL UPPERCASE to Mixed Case. Please do not repeat this in the future.

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: LOGIN/LOGOUT MENU

Post by sozzled » Tue Jul 26, 2016 7:20 pm

For the logout menu item: set the access level = Registered

For the login form: set the access level = Guest
Last edited by sozzled on Tue Jul 26, 2016 8:47 pm, edited 1 time in total.

djslue
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 168
Joined: Thu Oct 22, 2009 4:42 am

Re: LOGIN/LOGOUT MENU

Post by djslue » Tue Jul 26, 2016 7:29 pm

Wouldn't The Registered user still see the login menu as they inherit the rights of the user hi-archery

NickC4555
Joomla! Explorer
Joomla! Explorer
Posts: 457
Joined: Sun Jan 30, 2011 10:09 am
Location: Leicester, UK

Re: LOGIN/LOGOUT MENU

Post by NickC4555 » Tue Jul 26, 2016 7:32 pm

djslue wrote:Wouldn't The Registered user still see the login menu as they inherit the rights of the user hi-archery
No. Guest items are only visible to non-logged in users.

djslue
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 168
Joined: Thu Oct 22, 2009 4:42 am

Re: LOGIN/LOGOUT MENU

Post by djslue » Tue Jul 26, 2016 7:47 pm

Should Signup also be set to "guest" is there a difference between guest and public ?

NickC4555
Joomla! Explorer
Joomla! Explorer
Posts: 457
Joined: Sun Jan 30, 2011 10:09 am
Location: Leicester, UK

Re: LOGIN/LOGOUT MENU

Post by NickC4555 » Tue Jul 26, 2016 7:56 pm

There is a difference. Guest is only visible to users who are not logged in, public is visible whether they are or not.

djslue
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 168
Joined: Thu Oct 22, 2009 4:42 am

Re: LOGIN/LOGOUT MENU

Post by djslue » Tue Jul 26, 2016 8:10 pm

I changed login menu item to guest and it still shows up when I'm logged in as "Super User"

Would being Super User matter?

djslue
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 168
Joined: Thu Oct 22, 2009 4:42 am

Re: LOGIN/LOGOUT MENU

Post by djslue » Thu Jul 28, 2016 5:15 pm

Anyone know how to do this ?

User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3507
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: LOGIN/LOGOUT MENU

Post by ribo » Thu Jul 28, 2016 7:00 pm

Clear your cache. When you have something as guest neither super user is see it when he/she login
chat room spontes : http://www.spontes.com

djslue
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 168
Joined: Thu Oct 22, 2009 4:42 am

Re: LOGIN/LOGOUT MENU

Post by djslue » Thu Jul 28, 2016 7:11 pm

My browser cache ? I did that and its still there.

User avatar
ribo
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3507
Joined: Sun Jan 03, 2010 8:47 pm
Contact:

Re: LOGIN/LOGOUT MENU

Post by ribo » Thu Jul 28, 2016 7:42 pm

Did you test it with protostar template?
chat room spontes : http://www.spontes.com

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44096
Joined: Sat Apr 05, 2008 9:58 pm

Re: LOGIN/LOGOUT MENU

Post by Webdongle » Thu Jul 28, 2016 7:50 pm

djslue wrote:Wouldn't The Registered user still see the login menu as they inherit the rights of the user hi-archery
No because the user hierarchy has nothing to do with the view/access levels. The User Groups only have view/access to menus (and modules) set at the view/access level the User Group has been selected in. i.e. 'Registered' is not selected in the 'Guest' view/access level therefore a logged in Registered user will not see a menu item (or module) that is set to view/access level.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

malito
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Jul 24, 2016 11:39 am

Re: LOGIN/LOGOUT MENU

Post by malito » Thu Jul 28, 2016 8:47 pm

Try to clean cache rly it's the best way.

djslue
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 168
Joined: Thu Oct 22, 2009 4:42 am

Re: LOGIN/LOGOUT MENU

Post by djslue » Thu Jul 28, 2016 9:22 pm

malito wrote:Try to clean cache rly it's the best way.
I cleaned it in chrome and used a different browser that I never use and its still there

djslue
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 168
Joined: Thu Oct 22, 2009 4:42 am

Re: LOGIN/LOGOUT MENU

Post by djslue » Thu Jul 28, 2016 9:34 pm

I went into the menu settings and have this. Is this correct ? or am I missing somthing. Thanks for the help

Here is a screenshot

http://i65.[removed].com/28jbiu1.png

NickC4555
Joomla! Explorer
Joomla! Explorer
Posts: 457
Joined: Sun Jan 30, 2011 10:09 am
Location: Leicester, UK

Re: LOGIN/LOGOUT MENU

Post by NickC4555 » Fri Jul 29, 2016 6:27 am

Have you cleared Joomla's cache? System -> Clear Cache, select all items, click delete. Do you have any third party caching components installed. have you rechecked the permissions of your menu item? Have you, as has already been suggested, tested this with the Protostar template?

malito
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Jul 24, 2016 11:39 am

Re: LOGIN/LOGOUT MENU

Post by malito » Fri Sep 16, 2016 8:22 pm

so maybe you have any cahced plugin?


Locked

Return to “Templates for Joomla! 3.x”