Skip to Content Skip to Menu

[SOLVED] Incorrect link for groupjive event notification

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 191
  • Thanks: 24
  • Karma: 1
2 years 3 months ago - 2 years 3 months ago #330370 by kdave321
The notification of a new event contains a link to the group and the event like this:
[base]/index.php/forum/groupjive/6-community/7-mt-olympus?tab=grouptabevents
when the link should be
[base]/index.php/groups/6-community/7-mt-olympus?tab=grouptabevents

I traced it to line 453 in components/com_comprofiler/plugin/user/plug_cbgroupjive/plugins/cbgroupjiveevents/component.cbgroupjiveevents.php
Code:
'event' => '[url=' . $_CB_fra mework->pluginClassUrl( 'cbgroupjive', false, array( 'action' => 'groups', 'func' => 'show', 'id' => $row->getInt( 'group', 0 ), 'tab' => 'grouptabeve nts' ) ) . ']' . htmlspecialchars( $row->getString( 'title' ) ) . '[/url]' );

I suppose it is making assumptions about my menus? I dare not change pluginClassUrl because it's probably used everywhere.
 
Last edit: 2 years 3 months ago by krileon. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
2 years 3 months ago #330376 by krileon
It tries to find a menu item linking to whatever plugin is trying to be reached. In this case it's cbgroupjive. If it finds nothing it will fallback to CBs profile menu item for a menu id. If that fails it's up to Joomla. Easiest way to check what menu item it's using is to turn off SEO URLs then check what the Itemid is in the URL then match that to your menu.


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.

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 191
  • Thanks: 24
  • Karma: 1
2 years 3 months ago #330380 by kdave321
I turned off SEO links and can't even create a new event. I get 404 on this URL which worked before:
[base]/index.php/personal/pluginclass/cbgroupjiveevents/7-mt-olympus/new
or this URL if I change while creating a new event:
[base]/index.php/personal/pluginclass/cbgroupjiveevents/7-mt-olympus/save?id=0

I'm not sure how I would "check what the Itemid is in the URL then match that to your menu."  What would I change?

I do have many menus and menu items that only I as admin use - like "Groupjive".  The first one I see in the #__menu table is "CB Groupjive" in menu "Kunena Forum".   Is that where "/forum/cbgroupjive/" is coming from? I think that came with Kunena...

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

  • kdave321
  • kdave321
  • ONLINE
  • Posts: 191
  • Thanks: 24
  • Karma: 1
2 years 3 months ago #330381 by kdave321
Confirmed! I unpublished that menu item (in Kunena Forum menu) and now I get the correct link in the notifications.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum