How Do I Hide Menu Item After Logging In?

Moderators: mandville, 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
Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

How Do I Hide Menu Item After Logging In?

Post by Jay313 » Fri Feb 19, 2016 10:22 pm

Greetings,

I've been studying this since yesterday evening and I'm still at a lost.

Simply, I have the Login Module as a menu item. After the user logs in, I want the menu item called MEMBERS ONLY, that has the login module as a menu item listed, to disappear.

I read two tutorials that instructed me to use the Guest User Group to accomplish this.

I set the menu item to Guest, I set the default user group, under User Group--> Options to Guest and the actual User's are assigned to Guest and Registered.

When I log in under those settings, the menu item is still there.

What am I doing wrong?

I'm using Joomla 3.4

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

Re: How Do I Hide Menu Item After Logging In?

Post by Webdongle » Fri Feb 19, 2016 10:53 pm

Registered Users should not be selected in the Guest 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".

Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

Re: How Do I Hide Menu Item After Logging In?

Post by Jay313 » Sat Feb 20, 2016 1:03 am

Ok, so I removed Registered from User Assigned Groups set to only Guest - and now when I attempt to log in, I get the following message:

"Warning

You can't access the private section of this site."

I have everything set to Guest:

Menu Item is set to Guest
Under Guest User Group --> Options I have set to Guest
The actual User I created has only access to Guest
Viewer Access Level for Guest is set to Guest.

James

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

Re: How Do I Hide Menu Item After Logging In?

Post by Webdongle » Sat Feb 20, 2016 1:46 am

Jay313 wrote:Ok, so I removed Registered from User Assigned Groups set to only Guest -...
You got it backwards. Registered users should NOT be in Guest user/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".

Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

Re: How Do I Hide Menu Item After Logging In?

Post by Jay313 » Sat Feb 20, 2016 2:11 am

Ok, so I added Registered back to the users Assigned Groups, if I'm following you correctly. I went under View Access Level , under Guest, and Registered is not checked.


I went to the front end and can now login however that menu item is still present in the main menu - its not hidden.

Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

Re: How Do I Hide Menu Item After Logging In?

Post by Jay313 » Sat Feb 20, 2016 2:44 am

What will help me is for someone to tell me how the access levels should be set for the following -for a menu item to become hidden after a User logs in:

User
UserGroup
Access Control Level
Default User Group
Menu Item Access Level


So that when a user logs in, I want that particular menu item MEMBERS ONLY to become hidden.

Thanks

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

Re: How Do I Hide Menu Item After Logging In?

Post by Webdongle » Sat Feb 20, 2016 7:32 am

For a menu item to become hidden after login then set its view/access level to 'Guest'
In the 'Guest' leave it default ie. only Guest and Super User selected.

My guess is you have been testing by logging in as Super User instead of using a test account set at Registered.
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".

Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

Re: How Do I Hide Menu Item After Logging In?

Post by Jay313 » Sat Feb 20, 2016 2:49 pm

Actually, the User is assigned to Registered only. The menu item is set to Access Level Guest. Under User-->Access Level Control - under Guest - Guest and Super User are selected and under User Groups - Guest has Public as its Parent.

And with those settings, after logging in, the menu doesn't go away.

it seems straight forward, its just not working for me...its very frustrating....


Thanks,
James

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

Re: How Do I Hide Menu Item After Logging In?

Post by Webdongle » Sat Feb 20, 2016 4:36 pm

Jay313 wrote:Actually, the User is assigned to Registered only. The menu item is set to Access Level Guest. Under User-->Access Level Control - under Guest - Guest and Super User are selected and under User Groups - Guest has Public as its Parent.

And with those settings, after logging in, the menu doesn't go away.
...
What user group are you loggin in on the front end ? What user group ?

Also please http://forum.joomla.org/viewtopic.php?f=621&t=582860
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".

Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

Re: How Do I Hide Menu Item After Logging In?

Post by Jay313 » Sat Feb 20, 2016 4:49 pm

If you're asking what group is the user assigned to, that would be Registered.

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

Re: How Do I Hide Menu Item After Logging In?

Post by Webdongle » Sat Feb 20, 2016 5:27 pm

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".

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

Re: How Do I Hide Menu Item After Logging In?

Post by Webdongle » Sat Feb 20, 2016 10:18 pm

OK ... had quick look and you have K2. methinks you need to configure that
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".

Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

Re: How Do I Hide Menu Item After Logging In?

Post by Jay313 » Sat Feb 20, 2016 10:27 pm

I don't get it....why would I need to configure K2? The menu item has nothing to do with K2. Please advise.

Thanks!

Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

Re: How Do I Hide Menu Item After Logging In?

Post by Jay313 » Sat Feb 20, 2016 10:32 pm

I did notice that my test user DetroitJay is not listed under K2 Users.

Jay313
Joomla! Apprentice
Joomla! Apprentice
Posts: 47
Joined: Wed May 26, 2010 6:47 pm

Re: How Do I Hide Menu Item After Logging In?

Post by Jay313 » Sat Feb 20, 2016 11:32 pm

I found the issue. Under User Group - Registered had Guest as its Parent - I changed it to Public and VOILA...the menu is hidden after a user logs in. I knew it was something simple.

Thanks for your help!

sovainfo
Joomla! Exemplar
Joomla! Exemplar
Posts: 8808
Joined: Sat Oct 01, 2011 7:06 pm

Re: How Do I Hide Menu Item After Logging In?

Post by sovainfo » Fri Apr 29, 2016 5:38 pm

So you made the following mistakes:
- Move the group Registered below Guest.
- Fail to mention that in the list of things you did
- Place users in group Guest.
Issue with migrating? Include logs/joomla_update.php in your report!
Blank screen? Verify pagesource for HTML code (javascript error)
Installation failing on populating database? Install with set_time_limit(0)
Document your customizations!


Locked

Return to “Access Control List (ACL) in Joomla! 3.x”