BuddyDev

Search

Facebook Like User Activity Stream for BuddyPress: sort showing recent replies

Tagged: 

  • Participant
    Level: Master
    Posts: 152
    Hugo Callens on #23033

    It looks like the stream displays recent messages on top. Is it also possible to take into account not only recent messages, but also recent replies?

    So if a member replies on an older message this message (with replies) moves to the top of the stream, like (I think) Facebook does?

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #23040

    Hi Hugo,
    Thank you for noticing.

    In case of BuddyPress, It is not doable unless we touch the timestamp of parent activity every time a comment is made.

    BuddyPress does allows listing of comments as normal activity on top when we set display_comments=stream

    That view presents flat list of comments and activity (not threaded inside the parent).

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 152
    Hugo Callens on #23044

    OK, thanks. Where and how can I set this display_comments=stream ?

  • Keymaster
    (BuddyDev Team)
    Posts: 24211
    Brajesh Singh on #23045

    Please look for activity-loop.php in your theme(should be in buddyress/activity directory).

    You will find a line bp_has_activity() there. You will need to set it like

    
    bp_has_activity('display_comments'=> 'stream')
    

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved