Skip to Content Skip to Menu

[#5222] CB Menu items appear in wrong context

9 years 7 months ago #262113 by erichburkhard
Replied by erichburkhard on topic CB Menu items appear in wrong context
so I....:
- switched of Caching whereever possible (changed from 'useGlobal' to 'no caching'
- I installed the newest nightly rel of cb

result: everything has no Impact...same Problem as before :blush: ....what I do not understand:...I started on a baseline useing CB 1.9.1 and there I didn't have this issue at all...an then I just made this update to CB 2.0.7 ...and also updated all the other not comppatible plugins / modules / components ?!?! ...so what is next we try ?

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

9 years 7 months ago - 9 years 7 months ago #262138 by erichburkhard
Replied by erichburkhard on topic CB Menu items appear in wrong context
HI Kyle - I think I could fix the language toggling problem ...How ? I just startet from my 'clean' CB 1.9.1 Installation - and upgraded the necessary components (CB 2.0.7) without changing anyting ?!? ....really strange.......but now 2 remaining things are left:

1. If you have a look at the screenshot below...in the CB menu the menu item entries have ALL 2 Icons ...the 'old' and the 'new' one ....how can I delete the 'old' ones?

2. I have still some menu-items that do not make sense in certain context e.g. to 'Report a user' does not make sense if you first generate a user list?!? (PS: the string: '
[cb:usertab tab="17" user="#displayedOrMe" /]' is already at the correct place in the CB Content module


Attachments:
Last edit: 9 years 7 months ago by erichburkhard.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
9 years 7 months ago - 9 years 7 months ago #262154 by krileon
Replied by krileon on topic CB Menu items appear in wrong context

1. If you have a look at the screenshot below...in the CB menu the menu item entries have ALL 2 Icons ...the 'old' and the 'new' one ....how can I delete the 'old' ones?

You need to update your template.

2. I have still some menu-items that do not make sense in certain context e.g. to 'Report a user' does not make sense if you first generate a user list?!? (PS: the string: '
[cb:usertab tab="17" user="#displayedOrMe" /]' is already at the correct place in the CB Content module

It should only display your CB Menu items and not those targeting a user other than your self.

Please PM backend super administrator login credentials and will take a look. I am unable to confirm your menu issue here so I've no idea what's going that.


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.
Last edit: 9 years 7 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
9 years 7 months ago - 9 years 7 months ago #262174 by krileon
Replied by krileon on topic CB Menu items appear in wrong context
Ok, was able to duplicate your menu item issue. Have created a bug ticket for further investigation. This is due to the user object evaluation from substitutions not properly falling through to #me when #displayed gives no result. The below should quickfix this.

IN: libraries/CBLib/CB/Legacy/CBuser.php
ON: Lines 805 - 811
FROM:
Code:
if ( ( $uid === null ) && ( ( $userAttrVal == '#displayedOrMe' ) || ( $userAttrVal == '#me' ) ) ) { $uid = (int) Application::MyUser()->getUserId(); } if ( ( $uid === null ) && preg_match( '/^[1-9][0-9]*$/', $userAttrVal ) ) { $uid = (int) $userAttrVal; }
TO:
Code:
if ( ( ! $uid ) && ( ( $userAttrVal == '#displayedOrMe' ) || ( $userAttrVal == '#me' ) ) ) { $uid = (int) Application::MyUser()->getUserId(); } if ( ( ! $uid ) && preg_match( '/^[1-9][0-9]*$/', $userAttrVal ) ) { $uid = (int) $userAttrVal; }

forge.joomlapolis.com/issues/5222


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.
Last edit: 9 years 7 months ago by krileon.

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

9 years 7 months ago #262265 by erichburkhard
Replied by erichburkhard on topic CB Menu items appear in wrong context
Thanks a lot Kyle ...this fix works PERFECT :-)

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

Moderators: beatnantkrileon
Powered by Kunena Forum