In our Joomla 3.0 testing site, we have the following custom HTML module showing in our right sidebar:

Become a Registered User
Register for an account on this website to gain access to all features that we offer

We don't want our registered and logged in users to see this message, as they're already registered. How do we hide this module after login? Keep reading to find out.

How to hide a module when a user is logged in

  1. Log into your Joomla 3.0 dashboard
  2. In the top menu, click Extensions and then click Module Manager
  3. In the list of modules on the page, click the module that you don't want to show for logged in users
  4. In the list of settings on the page, find the Access setting:

    Access
    The access level group that is allowed to view this item.

    The default setting is Public, which is everyone that visits your site. This includes both guests and logged in users. To hide this module for users logged in, change the setting value to Guest, which means only guests will have permission to view it. Click Save in the top left of the page to save your settings.

    In the screenshots below, both are taken as a logged in user. One screenshot represents when the Public Access is set, and the other shows the Guest Access set.
    Access: PublicAccess: Guest
    module-showing-for-logged-in-users joomla-hide-module-when-logged-in


Continued Education in Course 104: Using Extensions in Joomla 3
You are viewing Section 5: How to hide a module after login in Joomla 3.1
Section 4: How to hide a module title in Joomla 3.1
Section 6: New in Joomla 3.2 - Access Control and Easy Editing for Modules
Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

n/a Points
2014-07-10 6:40 am
You are saying to choose 'guest' but I don't have such option. Do I need to create this?

Thanks
Staff
9,968 Points
2014-07-10 10:37 am
Hello Navdav,

The Guest group should be a default unless you've removed it. You should be able to navigate to Users > User Manager in the Joomla admin, and then click on User Groups on the right hand side too see all the available ones.

I'm seeing this in a default Joomla 3 installm:

Joomla user groups guest group is default

If you don't see this, you should be able to click on + New still in the User Manager > User Groups section. Select Public as the parent of this group and name it something like Guest.

Then click on Viewing Access Levels from the left-hand side. Click on the Guest level, and then under the User Groups Having Viewing Access place a check-mark beside the Guest user group you created.

Please let us know if that helps!

- Jacob
n/a Points
2014-08-22 5:00 pm

Hi, i choose Guest from the acces level in the menu, but when a refresh the page, the menu dessapear even if i'm not loggued in :S

why could this happen?

Staff
16,575 Points
2014-08-22 5:48 pm
Hello Juanita,

Thanks for the question. Without knowing how your Joomla is setup, the cause to your module showing not appearing after you have assigned it to a specific group could be few different possibilities. I would double-check to make sure that you are not logged in through a cached page (clear the browser cache. Also, double-check your "guest" user and make sure it is assigned properly in the Users Module. Lastly, look at the module you where you modified the access - make sure it is set correctly, saved and published. If it continues to be a problem, we would need further information about your site. A URL would help, as well as the exact steps you're taking when assigning the user values to the module.

Regards,
Arnel C.
n/a Points
2014-09-04 5:28 pm
Go to UserManager?Options?Component and set "GuestUserGroup" to Guest
Staff
16,575 Points
2014-09-04 6:19 pm
Hello Saman,

If you have a specific question, could please state it again? We are not sure if you are asking a question.

Kindest regards,
Arnel C.
n/a Points
2014-09-10 10:06 am

Hello Arn,

I am having a strange problem.

My guest user access was working correctly. however suddenly all the menus that are set to guest are no longer dissappearing when I login. this is causing a lot of problems I wonder if you could help urgently. my site is uk.africansbay.com. The menus that are set to guest are login and advertise. The menus set to registered all work correctly just the guest user menus. let me know if you can help and I will send you some login details. thanks.

 

Arnie

Staff
8,706 Points
2014-09-10 12:48 pm
Hello Arnie,

Thank you for your question. We are happy to help, but when I navigate to your site to test it, I get the message "This site is down for maintenance. Please check back again soon."

Also if you made changes recently, you may need to clear your browser cache before testing.

Thank you,
John-Paul
n/a Points
2014-09-10 1:02 pm

hi John-paul

I have now enabled the site. I have also cleared both joomla and browser caches since the problem began. Thank you for your quick response. Can you tell me how I can send you login details privately so you can test what I am talking about?

 

Best regards,

 

Arnie

Staff
16,575 Points
2014-09-10 1:45 pm
Hello Arnie,

Sorry to hear that you're still having the problem with Joomla. You can always send us a new question with private information and we can remove it before the question is published.

In terms of this problem, I looked up the forums to see if the issue was common. Check out these posts as it seems that they're discussing the same problem: Joomla Fourm.

I hope that helps to clarify the issue and provide you answer. Please provide us more information if required.

Regards,
Arnel C.
n/a Points
2014-09-10 3:18 pm

Hi Arn/john-paul

can you use the following to login to the front end of the site. As you suggested please delete these details before making the post live. I would like the Advertise menu and Login menu to disappear as soon as someone logs in. I have been able to implement this for several other sites but I cannot see what is stopping this working correctly on this site. (login info has been removed).

 

The logins will only be active this evening, so your prompt help will be much appreciated. Please remember to remove them from the post before making it live.  

 

Best regards,

 

Arnie

Staff
16,575 Points
2014-09-10 4:51 pm
Hello Arnie,

Okay, so I sat down and looked at this for a little bit. You mention earlier that you're trying to remove the MENUS for guest versus the registered user. The article above gives instructions on changing permissions for the Modules on the page. If you're trying to change permissions for the menus, you need to change the permission in the menu manager section of Joomla. When you save the changes, make sure to clear the Joomla cache as well as your browser cache when you go back to view it. If the problem continues, you might be best served posting in the Joomla forum for further assistance. We don't have the same problem when checking it our test sites here. It might be plugin related. In any case, please let us know if the problem persists.

Kindest regards,
Arnel C.

n/a Points
2014-09-11 4:01 pm

The problem I am trying to solve is exactly related. I have set all the permissions correctly but they are not working as expected.

Thank you for trying to help anyway. I had chosen to enquire on this forum because your help is usually useful and quick.

 

 

best regards,

 

arnie  

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

13 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!