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

8 years 9 months ago - 8 years 9 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

Please Log in to join the conversation.

8 years 9 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:
[cb:config param="live_site" /]/index.php?option=com_comprofiler&view=pluginclass&plugin=cbgallery&action=items&func=show&type=photos&id=[var1_id]
TO:
[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 to join the conversation.

8 years 9 months ago #267771 by inelia
That did it!

Thank you for the quick help.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.238 seconds

Facebook Twitter LinkedIn