Skip to Content Skip to Menu

Problem with Gallery in Activity AND mobile phones

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
6 years 11 months ago #298716 by timstohr
Hi Kyle, how can I identify a post that has a photo attached that was uploaded on CB gallery? Here is the reasoning: We have built an auto-action that sends a push notification each time someone comments on a post. We can already identify who is doing the comments etc... but we would need to also be able to identify if someone has uploaded photos to CB activity (so that we can send a message with "XYZ has just uploaded photos on your event/wall/stream"
How can we do that? Been searching in db but havent found anything...

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 11 months ago #298759 by krileon
If it's from CB Gallery the asset will be "gallery.TYPE.ID" and you can identify it that way. If you mean photos directly uploaded with a post then best you can do is probably to check if [VAR_params_gallery] is empty or not. If it's not empty then some sort of media was uploaded with the post. As for what var to use it depends on what trigger you're using, but you'll need access to the activity object.


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