Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB Menu menubar

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 month 1 week ago #339586 by krileon
Replied by krileon on topic CB Menu menubar
Ok, the above is now implemented in latest build release. So you'll have 2 different ways you can now render the PMS icon outside of profile with the popover behavior.


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.

  • uwe2023
  • uwe2023
  • OFFLINE
  • Posts: 111
  • Thanks: 20
  • Karma: 2
1 month 1 week ago #339587 by uwe2023
Replied by uwe2023 on topic CB Menu menubar
Hi Kyle, great, thank you! I tested it, works great. Just a silly question: is it possible to change the icon from world to envelope? I think users are more used to see an envelope in relation to a message..... If I can do it by myself, just let me know how.

Best regards Uwe

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 month 1 week ago #339589 by krileon
Replied by krileon on topic CB Menu menubar
The icon for PMS should be an envelope, but for CB Activity it's a globe and the only way to change it is either a layout override or using CSS to change it to a different fontawesome icon. You should be able to have both icons anywhere you like on your site now though so you don't have to use CB Activity PMS notifications now if you don't want to.


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.

  • uwe2023
  • uwe2023
  • OFFLINE
  • Posts: 111
  • Thanks: 20
  • Karma: 2
1 month 1 week ago #339591 by uwe2023
Replied by uwe2023 on topic CB Menu menubar
OK, I added [cbactivity:notifications /] to a CB Content module then only the globe a smaller bubble will be visible. On mouseover the bubble a popup becomes visible "Create new message", and if I receive a new message a badge with the numbers og new messages is visible. That´s ok for the first step.
I tried your php code snippet and created a code field. I inserted your code snippet

global $_CB_PMS;
return ( $_CB_PMS->getPMSicon( USER_ID_HERE )[0] ?? null );

I added the field the via [cb:userfield field="cb_pmsglobalcode" /] to the CB Content module.

If I change USER_ID_HERE with the id of an existing user I will see both, the envelope and the globe, but not the bubble (bubble doesn´t matter). What is the global code instead of USER_ID_HERE, so that always the logged in user will see his envelope and his globe?
Best regards Uwe

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 month 1 week ago #339592 by krileon
Replied by krileon on topic CB Menu menubar
You need to be sure your CB Content Module has content plugins enabled otherwise it won't process Joomla content plugins, which is necessary for the following.

[cbactivity:notifications /]

Your CB Condition Module should then just be the following.

Content
Code:
[cbactivity:notifications /] [cb:userfield field="cb_pmsglobalcode" /]
Prepare using Content Plugins: Yes

That should then output both fine.


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.

  • uwe2023
  • uwe2023
  • OFFLINE
  • Posts: 111
  • Thanks: 20
  • Karma: 2
1 month 1 week ago #339593 by uwe2023
Replied by uwe2023 on topic CB Menu menubar
Hi Kyle,
yes, it works fine, but just for user 665, because there is the placeholder in your code snippet "( USER_ID_HERE )". Just to test it I replaced "( USER_ID_HERE )" with the id of the user 665, then it works super. But it must work for every logged in user :-)..

How do I have to replace "( USER_ID_HERE )"? So that automatically the logged in user will see his notifications and messages? Because "USER_ID_HERE" is an undefined constant...

Best regards Uwe

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

Moderators: beatnantkrileon
Powered by Kunena Forum