Skip to Content Skip to Menu

Disable Mailto link in CB Menu

  • sirweb
  • sirweb
  • OFFLINE
  • Posts: 226
  • Thanks: 25
  • Karma: 2
10 years 5 months ago - 10 years 5 months ago #245364 by sirweb
Disable Mailto link in CB Menu was created by sirweb
I am trying to disable the email link in the CB Menu as described here:

www.joomlapolis.com/support/faqs/11723

But disabling this in CB Config also disables the email link in the profile data, I only want to disable it in CB Meu. Also, it leaces the icon in CB menu when disabling.
I use CB 1.9 and the Bootstrap template.

Do I need to make a hack to disable the email link in the CB Menu? If so, should I make the hack in CB core code or in the Template?

Extra info: Reason for asking is I´m using CB Conditionals to hide the email address if the user´s email addres is a specific domain, used when user has no email.
Works fine in the profile, but CB Conditionals does obviously not work on the CB Menu.
Hiding all email addresses in CB Menu will do as a workaround.

Thanks,
Sune
Last edit: 10 years 5 months ago by sirweb. Reason: typo

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245379 by krileon
Replied by krileon on topic Disable Mailto link in CB Menu
Only way to do that is to disable email linking entirely, which will also affect the field it self. The alternative is to use CSS to hide the menu item or edit the getMenuAndStatus function in components/com_comprofiler/plugin/user/plug_cbmenu/cb.menu.php to remove its output of that menu item. We've plans to upgrade CB Menu with a backend to manage, edit, add, and remove menu items, but I doubt that'll be in CB 2.0 (likely 2.1).


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.
The following user(s) said Thank You: sirweb

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

Moderators: beatnantkrileon
Powered by Kunena Forum