BuddyDev

Search

Activity Shortcode Plugin – Ajax Posts

  • Participant
    Level: Enlightened
    Posts: 53
    David Levi on #17834

    Hey,

    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.

    Thank you,

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17852

    Hi David,
    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.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 53
    David Levi on #17874

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17890

    Hi David,
    Which theme and template pack are you using? This is incorrect behaviour. Most probably a conflict. Please let me know the theme and the template pack and I will assist.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 53
    David Levi on #17898

    Hey,

    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.
    Source: https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/

    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.
    OR
    2. Maybe you can direct me where else I need to add this value to support it.

    Thank you,

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17913

    Hi David,
    Thank you.

    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.

    Thank you
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 53
    David Levi on #17920

    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.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17930

    Sure, I will be adding it in next update.

    Expect it on Monday/Tuesday.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 53
    David Levi on #17942

    Awesome, Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #17945

    Thank you. Will post back after update.

You must be logged in to reply to this topic.

This topic is: not resolved