I was wondering if there is an option to enable ajax-refresh with this plugin: https://buddydev.com/plugins/bp-activity-shortcode/
For now, every time I post I need to refresh in order to see the post.
This feature is supported with the native Buddypress activity stream.
Do you mean the “refresh” that allows showing new activities happening on the site? If yes, I am sorry but it is not coming to this plugin.
The default activity stream has fixed context/filters(sitewide,user or group) and can do it predictably.
This plugin allows you to use any kind of filter to apply to the stream and hence the searching for new activity that fall into those filtration will be some additional task.
I don’t see much scope for working on this feature in near future.
Do you mean the “refresh” that allows showing new activities happening on the site?
No. I’m not talking about other activity from the site, I’m talking just about my current post.
When I make a post, I never see it in the feed. I need to refresh the whole page in order to see it. No filters would be needed. When I make a post, the plugin already knows, and we would just need to refresh the feed.
So after you said it was incorrect behavior, I did a little bit of testing. I found out that it is because the group is set to hidden. When I changed it to public it works correctly.
I added code to support the ‘show_hidden’ filter for the activity stream.
On Line:78 of class-bpas-shortcode-helper.php I added a value for ‘show_hidden’ to the array to support a value from the shortcode.
It works, but I guess only when initially loaded.
1. Maybe we can add official support for the ‘show_hidden’ filter.
2. Maybe you can direct me where else I need to add this value to support it.
The show_hidden filter has an unintended effect. If not used carefully, It can show the private activities in private/hidden groups public as BuddyPress won’t test for visibility.
I will add it as a non documented parameter in our upcoming release.
Great, anytime frame on that?
As long as people know its intended use, I don’t think there will be any issues.
At the very least, its a feature that is supported natively by the activity stream, and I think supporting it in the plugin (can be off by default), would be highly beneficial.
You must be logged in to reply to this topic.