Skip to Content Skip to Menu

[SOLVED] How to hide a tab/menu?

  • gsabrd
  • gsabrd
  • OFFLINE
  • Posts: 15
  • Thanks: 2
  • Karma: 0
9 years 7 months ago - 9 years 7 months ago #261200 by gsabrd
[SOLVED] How to hide a tab/menu? was created by gsabrd
Hi. My question is about a tab, which looks like a menu in users profile. For more details, the picture is attached to this post. In one of my topics I asked about how to hide fields from other people. CB Privacy system was the answer. Now, using that system, I made Private messaging and emailing visible to connected people only, but when I clicked that menu on the top, even though I made invisible all the messaging fields for not connected people, they are visible from that drop down menu for them. So my goal is to make visible private messaging and emailing fields or menus for connected people, and that menu or tab destroys all my plans. Thanks for the answer.
Attachments:
Last edit: 9 years 7 months ago by nant.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261245 by krileon
Replied by krileon on topic How to hide a tab/menu?
There's currently no interface to manage CB Menu entries (planned). So the only way to remove a menu item is using CSS or using a plugin to alter the menu global. You'll need to right click and inspect the menu item in Chrome or Firefox for its CSS class then use CSS to hide it. Example as follows.

Code:
.cbMenu_UE_MENU_MESSAGES { display: none !important; }


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.

  • gsabrd
  • gsabrd
  • OFFLINE
  • Posts: 15
  • Thanks: 2
  • Karma: 0
9 years 7 months ago - 9 years 7 months ago #261330 by gsabrd
Replied by gsabrd on topic How to hide a tab/menu?
In other words, Privacy plugin is useless in this case, right? You mentioned about a plugin to alter the menu global. What plugin can I use to do this operation? I was trying to experiment with CSS (on my cloned site), and I found more than 250 CSS files in "component" folder. Is it possible to specify the name of the file (or folder name), or I need to look through all of them manually? Thanks.
Last edit: 9 years 7 months ago by gsabrd.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
9 years 7 months ago #261412 by krileon
Replied by krileon on topic How to hide a tab/menu?

Privacy plugin is useless in this case, right?

Correct, it can not control privacy of individual CB Menu items.

You mentioned about a plugin to alter the menu global. What plugin can I use to do this operation?

CB Auto Actions and its Code action maybe able to do this as the menu items are attached to the $_PLUGINS global. You'll need to write custom code to handle all of this.

I was trying to experiment with CSS (on my cloned site), and I found more than 250 CSS files in "component" folder. Is it possible to specify the name of the file (or folder name), or I need to look through all of them manually?

Typically you'd just add it to the main template.css file for your Joomla template.


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.

  • gsabrd
  • gsabrd
  • OFFLINE
  • Posts: 15
  • Thanks: 2
  • Karma: 0
9 years 7 months ago #261563 by gsabrd
Replied by gsabrd on topic How to hide a tab/menu?
Thank you very much. Find main template.css file and just add
.cbMenu_UE_MENU_MESSAGES {
display: none !important;
}
It works perfectly now.
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum