Skip to Content Skip to Menu

Questions about auto action and gallery

  • krileon
  • krileon
  • ONLINE
  • Posts: 49845
  • Thanks: 8515
  • Karma: 1465
2 hours 29 minutes ago #342629 by krileon
Replied by krileon on topic Questions about auto action and gallery
For gallery_onAfterApproveGalleryItem the variables are as follows.
Code:
$_PLUGINS->trigger( 'gallery_onAfterApproveGalleryItem', [ $gallery, $source, $row ] );

So var1 is incorrect. The media row object is var3. That's why yours is not generating properly. Please keep in mind I've implemented a helper for this. Under the Global tab you should see all the variables for any triggers you add to your auto action. If it's not displaying for you please let me know.

You should be able to fix your issue by simply swapping your var1 to var3 in your substitutions.


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.

  • liaskas
  • liaskas
  • ONLINE
  • Posts: 485
  • Thanks: 41
  • Karma: 3
  • Add-ons
1 hour 38 minutes ago #342631 by liaskas
Replied by liaskas on topic Questions about auto action and gallery
Yes it worked. Changed all the media row object and now the activity is created with the correct asset.

One thing still remains unsolved...

When the media is approved, it remains as unpublished in the activity list (backend). What am i missing? Now i have to go through backend for every new media item to publish it. How can we set the auto action so... that the activity log is published?

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

Moderators: beatnantkrileon
Powered by Kunena Forum