Skip to Content Skip to Menu

How to get link and other variables from groupjive stream

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
3 years 10 months ago #322674 by timstohr
Hi Kyle,
The values I am looking for should then be in var1. The activity which has been created (and thus triggered onAfterCreateStreamActivity) contains the link, the URL, the media etc... I need access to those. What are the names of the values of those?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48547
  • Thanks: 8290
  • Karma: 1445
3 years 10 months ago #322692 by krileon
No, they will not be in var1. var1 as described below is the stream object, which contains the properties of the stream.

www.joomlapolis.com/forum/153-professional-member-support/243463-how-to-get-link-and-other-variables-from-groupjive-stream?start=0#322642

The activity entry for activity_onAfterCreateStreamActivity is $row so var3 is how you'd access that information. Links and such are complicated. They're stored in the params and they're nested in multiple arrays so you may not even be able to access them since CB Auto Actions only parses a few times recursively. You can try with the below though.

[var3_params_gallery]

If there's uploaded content it's attached via the gallery param as just an array of ids. The above should give the JSON string array. If it recursively parses deep enough you might be able to access the first entry with the below.

[var3_params_gallery_0]

Review the params column in _comprofiler_plugin_activity for the JSON structure. Substitutions for JSON strings are entirely based off the keys.


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