Skip to Content Skip to Menu

[#5401] CB Activily - incorrect link to Files or Music

  • inelia
  • inelia
  • OFFLINE
  • Posts: 20
  • Thanks: 3
  • Karma: 2
9 years 4 months ago - 9 years 4 months ago #267760 by inelia
Hello,

I have installed CB Activity and CB Gallery. I posted a photo and that works very well.

But then I published an MP3 file and a TEXT file.

In the activity stream screen links show up for the new files.

EXPECTED RESULT: Clicking on those links should open the MP3 and the TXT files respectively.

RESULT: Clicking those links opens an EMPTY page.

Looking in the database in the table #_comprofiler_plugin_activity the subtypes are correctly inserted as music and files. However, in the PARAMS column, the links to those resources are NOT correct. The type parameter (in the URL) is always set to photos. If I manually set it correctly then it works fine.

Example for the text file:

Expected link:
index.php?option=com_comprofiler&view=pluginclass&plugin=cbgallery&action=items&func=show&type=files&id=3

Actual link
index.php?option=com_comprofiler&view=pluginclass&plugin=cbgallery&action=items&func=show&type=photos&id=3


Can you please tell me where I need to fix this in the code?

Website Setup:
=================
Joomla version. 3.4.3
CB: 2.0.10
CB Activity: 3.0.0
CB Gallery: 1.0.5
CB AutoActions: 6.3.1
CB Subs: 4.0.1
Last edit: 9 years 4 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
9 years 4 months ago #267769 by krileon
Looks like the type switch condition isn't working in the URL. Edit "CB Gallery - Upload" within CB Auto Actions > System Actions and adjust it as follows.

Links > URL
FROM:
Code:
[cb:config param="live_site" /]/index.php?option=com_comprofiler&view=pluginclass&plugin=cbgallery&action=items&func=show&type=photos&id=[var1_id]
TO:
Code:
[cb:config param="live_site" /]/index.php?option=com_comprofiler&view=pluginclass&plugin=cbgallery&action=items&func=show&type=[var1_type]&id=[var1_id]

Now click "Save as Copy" and unpublish the system action. You'll now have a fixed action in Auto Actions. Re-saving the gallery entry will fix its activity.

forge.joomlapolis.com/issues/5401


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: inelia

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

  • inelia
  • inelia
  • OFFLINE
  • Posts: 20
  • Thanks: 3
  • Karma: 2
9 years 4 months ago #267771 by inelia
That did it!

Thank you for the quick help.

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

Moderators: beatnantkrileon
Powered by Kunena Forum