Mediapress integration
-
hi Ali,
I’m trying to get a like system for mediapress, etc. here on my buddypress installation. This is a real problem for users using buddypress and mediapress and any like system. Because the different elements don’t work with one another well. I’m not sure what the best solution is, but I’m braindumping here, maybe you’ll have an idea.
When wp_ulike likes an activity feed for a photo post, the photo post has no associated like button/feedback. On the photo this can be fixed by echoing a ‘[wp_ulike] shortcode. However the 2 likes are unrelated, as the activity doesn’t know about the photo, and the photo doesn’t know about the activity.
1. One approach might be an action which picked up the like request for (say) a photo, and found the related activity entry. However this seems as though, at first sight, the queries would very quickly spiral out of control with more activity entries over time.
2. Another approach would be to intercept the activity-like call and add the appropriate object-like at the same time. This would involve a far smaller query set.
3. Alternatively a background process could be running which would periodically “meld” the various likes between activities and various objects. I realise this would be less mediapress specific, but this might have the advantage of being able to handle various other objects such as blogs and events etc. as well as media.
It may well be that I’ve missed the really obvious way to solve this issue, and I’d be interested in your thoughts on the topic.
Original post: https://buddydev.com/mediapress-like-unlike-button-for-photos-videos-etc-with-wp-ulike-plugin/
The topic ‘Mediapress integration’ is closed to new replies.