Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity issue with old blog posts


  • paulgriffiths
    Participant

    @paulgriffiths

    Hi, love the way the activity stream is working for new blog posts and comments on new blog posts but I don’t seem to get an activity update for either:

    1. comments on old blog posts (i.e. blog posts created prior to activating the buddypress activity tracker

    2. likes

    is this as designed?

Viewing 6 replies - 1 through 6 (of 6 total)

  • danbp
    Participant

    @danbp

    1) yes
    2) yes


    paulgriffiths
    Participant

    @paulgriffiths

    Thanks for the clear response! Is there any plan to include either of these in the Activity stream?


    danbp
    Participant

    @danbp

    Activity feed is not retroactiv, and will never be i guess ! It’s a feed, not an archive with updates. 😉

    If interrested by future of BP development, see here


    paulgriffiths
    Participant

    @paulgriffiths

    But a new comment is new activity, regardless of what the comment is on. I have an extensive archive of posts with a random post of the day, if a user wants to comment on this then I want other users to see that new activity.


    danbp
    Participant

    @danbp

    Oh i see. I focused on love the way the activity stream is working for new blog posts and comments

    If you comment today an old post, this comment i now (what you say you love…) attached to that post, wich is already in the feed.

    To be clear, a Post published in january and commented today will appear together in the activity stream.

    But if you want to see the today’s comment, you have to scroll to the january activities ! Depending your audience this can take a while.

    If this is not what you want your SWA, you can revert back to the old schoolish chrnologic activity method for post and comment. Add this to bp-custom.php

    function bpfr_stream( $qs, $object ) {
    	if ( 'activity' != $object ) {
    		return $qs;
    	}
    	
    	$qs = wp_parse_args( $qs, array() );
    	
    	$qs['display_comments'] = 'stream';
    	
    	return $qs;
    }
    add_filter( 'bp_ajax_querystring', 'bpfr_stream', 20, 2 );

    Give feedback! 😉


    paulgriffiths
    Participant

    @paulgriffiths

    Thanks so much for all the very prompt help!
    I have however already found this code when I searched for the problem in the forum and have already added it to mt functions.php file so (to be clear, not trying to be rude) I am seeing the behaviour you describe with comments on blog posts created AFTER the “site tracking” function was turned on in Buddypress settings. Comments on blog posts created before this was turned on are ignored.

    If I go to the dashboard I can see I can see the last comments on the system – see the user admin has replied to an old blog post and the user griff (me) has replied to a new blog post:
    comments

    However under the Buddypress Activity feed only the comment by me is showing:
    activity

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Activity issue with old blog posts’ is closed to new replies.
Skip to toolbar