Skip to Content Skip to Menu

Triggered Activity produces Link (as if you used manual link sharing)

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
7 years 11 months ago #289117 by timstohr
Still with problems. We have tried to decode the htmlspecialchars before sending to trigger, we have tried to send it without the decoding but nothing changed.
Here is the code that we use:
Code:
$new_link = DJClassifiedsSEO::getItemRoute($row->id.':'.$row->alias,$row->cat_id.':'.$cat->alias); $new_link2 = 'index.php?option=com_djclassifieds&view=item&cid='.$row->cat_id.'&id='.$row->id.$itemid; $_PLUGINS->trigger( 'onSaveMarketplace', array( $user->id, $row->id, $row->cat_id, $cat->name, $row->intro_desc, $row->name, $new_link));

We really have no clue anymore... :(

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
7 years 11 months ago #289122 by krileon
I've no clue either. The other actions that log URLs are working fine. For example the forum activity system action works fine. Try building the URL in your action from the variables. Example as follows.

index.php?option=com_djclassifieds&view=item&cid=[var3]&=[var2]


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.

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
7 years 11 months ago #289135 by timstohr
OK that worked now (finally). Fair enough, we were thinking a bit too complicated as instead of building the non-SEO link ourselves (which we could have done two weeks ago already) we wanted to send the URL via the trigger.
HOWEVER, it would be really great if you could still get it to work that one can send a fully formatted trigger so that the SEO URL comes out properly. I find non-SEO URLs look a bit unprofessional and, especially, are a security risk.

Looking forward to next CB activity though.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
7 years 11 months ago #289157 by krileon
Have added a bug ticket to fix in the activity action of CB Auto Actions. It's a problem with double escaping as it's doing htmlspecialchars on store then again on display which is what is causing your issue.

forge.joomlapolis.com/issues/6374


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.

Moderators: beatnantkrileon
Powered by Kunena Forum