Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Stream: Blog posts only

  • I may be blind as a bat, but is there any way to set the site wide activity stream to only show new blog posts by default when using it as front page?

    I’m really not that keen on having it filled with “Became friends with….” etc

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

  • PJ
    Participant

    @pjnu

    Good question. If there’s a way to omit that from feeds, I’d try it out too.


    nickrita
    Participant

    @nickrita

    To not show the friendships I deleted in index.php of activity-folder in the theme:

    <?php if ( bp_is_active( ‘friends’ ) ) : ?> <option value=”friendship_accepted,friendship_created”><?php _e( ‘Show Friendship Connections’, ‘buddypress’ ) ?></option> <?php endif; ?>

    BUT:

    I don’t know how to only show blog posts. I think it will not work to delete all Options but NewBlogPosts, because this only gives the links and not what is shown as default option.


    finni3
    Participant

    @finni3

    thanks nickrita!

    Would it be possible to do this with a child theme?


    nickrita
    Participant

    @nickrita

    Yes, ONLY do it in a child theme, NEVER change the orginal bp-theme.

    You can make a folder “activity” in your child theme, copy the original index.php from original-bp-theme/activity/ in the child-theme-folder and then edit the index.php.


    finni3
    Participant

    @finni3

    Cool, Thanks


    nickrita
    Participant

    @nickrita

    Here’s the solution to only show the blog posts:

    https://buddypress.org/forums/topic/how-can-i-set-show-newblogposts-as-default-on-acitivity-stream

    But then only blog posts are shown and nothing else.

    I have no solution to the problem, how to show the blogposts as default and the rest by filter.


    liveview
    Member

    @liveview

    Yea, I also tried <?php if ( bp_has_activities('object=blog') ) : ?>

    This does exactly what I want… if the user is logged out.

    As, while I have removed the filter dropdown anyways, that is no issue, but it also makes a mess of the other filters for logged in users.. (My Friends, My Groups etc etc)

    They all just give the same result (all blog posts)

    Honestly I find it a little puzzling that this is not implemented in the backend.


    nickrita
    Participant

    @nickrita

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Activity Stream: Blog posts only’ is closed to new replies.
Skip to toolbar