Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Hide login and register menu link when user is logged in

  • testeuse
  • testeuse
  • OFFLINE
  • Posts: 93
  • Thanks: 2
  • Karma: 0
8 years 3 months ago - 8 years 2 months ago #283956 by testeuse
Hi,

I would like to hide my menu links "login" and "register" when the user is registered or logged in.
SO i can have a user menu to show after that instead.

Please how can i do this ? thank you for your help.
Last edit: 8 years 2 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 3 months ago #283968 by krileon
Use Joomlas built in Guest functionality then set the access to those menu items to guest.

docs.joomla.org/J3.x:Access_Control_List_Tutorial#Allowing_Guest-Only_Access_to_Menu_Items_and_Modules


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • testeuse
  • testeuse
  • OFFLINE
  • Posts: 93
  • Thanks: 2
  • Karma: 0
8 years 2 months ago #284712 by testeuse
Thank you for your answer but when i do this, set to guest the menu links, it works because the links disapeared when i logged in
BUT they keep being disapeared when i leave the site and come back.

Then i am disconected but still can't see those links...

Please i really don't know what to do. Why are they still not appearing even after i logged out?

Thank you for your help.

Please Log in or Create an account to join the conversation.

  • testeuse
  • testeuse
  • OFFLINE
  • Posts: 93
  • Thanks: 2
  • Karma: 0
8 years 2 months ago - 8 years 2 months ago #284713 by testeuse
Oh, i am really sorry i did not read the documentation you gave me. it seems to work fine, thank you and sorry again.:silly:

It was because i did not set the "guest user group" to "guest" instead of "public...
Last edit: 8 years 2 months ago by testeuse.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum