Helping you Build Your Own Social Network!

Faster, better and easier!

Category posts and activity page

(6 posts) (2 voices)
  • Started 1 year ago by koumanouye
  • Latest reply from Brajesh Singh

Tags:

No tags yet.


  1. Hi,

    I use autoblog/autopost to post to my gategories on my wordpress/buddypress site, but the daily posts are clogging my activity stream page.

    Anyone knows a way to restrict certain category posts from displaying in the activity stream.

    Thanks

    Posted 1 year ago #
  2. There can be two ways.
    1. remove the bp_blogs_record_post from save_post filter and write your own record activity which deals in a better matter(like excluding posts from specific categories).
    2. use the filter "bp_blogs_new_blog_post" and delete the activity items for the posts in a specific category. It will happen just after the activity item was created, so no one should be able to see that activity.

    Which route will you prefer ?

    Posted 1 year ago #
  3. Hi Brajesh,

    Thanks for the quick response. I want to display some category post in the activity stream, and exclude some of them.

    An example would be:

    I have a daily game post from a widget on the site that post a game every day on my site in the category "games".

    I have updated news on the site that I get from an rss feed. Those news post go in the category "news"

    I would like to keep displaying the posts from category "games" in my activity stream and NOT display the posts from category "news"

    I'm not sure which way will be better. I trust your judgement.

    Thanks

    Posted 1 year ago #
  4. which ever one is easier

    Posted 1 year ago #
  5. Hi,

    I know you told there are two ways that can be done, but I don't know my way around (which code to add or remove)

    Can you please provide me with more info?

    Thanks

    Posted 1 year ago #
  6. @koumanouye
    Sorry for holding back this topic. I will post the whole code tomorrow.

    Thanks
    Brajesh

    Posted 1 year ago #

Reply

You must log in to post.