Show Sidebar Log in
Commons In A Box Logo
  • Home
  • About
    • Project Team
    • Logos and Graphics
  • Showcase
    • CBOX Classic Showcase
    • CBOX OpenLab Showcase
  • Demo
  • Get Started
  • Documentation
    • Technical Guide
    • CBOX Classic Guide
    • CBOX OpenLab Guide
  • Support Forums
    • CBOX Classic
    • CBOX OpenLab
    • Developers Forum
  • News

Group Admins

  • Profile picture of Scott Voth

CBOX Classic Support

Public Group active 4 months ago

This group provides support for Commons In A Box Classic, our original software for community-building. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

How to add the root group's blog posts to the subgroups activity streams?

Tagged: subgroup blog

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 11 months ago by Christian Wach.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 9, 2014 at 4:51 am #4796
    Iurie Malai
    Participant

    I have a public root group with three private subgroups. The main group is coupled with a blog. What I want is to show the new published posts titles of this blog in the subgroups activity streams. How to do this?

    It was imposible to enable the group blog for these three subgroups by selecting the existing blog coupled with the main group, because in the drop-down menu it was not displayed, so I enabled it through the phpMyAdmin. In this way, now I can see that the subgroups are coupled with the root group’s blog, but the new posts of this blog are not included in the activity stream of them.

    June 9, 2014 at 5:02 am #4797
    Christian Wach
    Participant

    You can use my BP Group Hierarchy Propagate plugin for this. Set the propagation direction to downwards on the BP Group Hierarchy settings page. The only caveat is that this will propagate all top-level group activity down to the subgroups.

    June 11, 2014 at 1:28 am #4798
    Iurie Malai
    Participant

    @haystack, I have tested your plugin and I love it. But, it seems that it needs two additional options (sure, from my point of view): a possibility to restrict its action to one /or several/ group of groups and the possibility to choose what kind of activities to be propagated /eg. new blog posts/ (maybe with the optional parameters of the bp_has_activities() function?).

    • This reply was modified 10 years, 11 months ago by Iurie Malai.
    • This reply was modified 10 years, 11 months ago by Iurie Malai.
    • This reply was modified 10 years, 11 months ago by Iurie Malai.
    • This reply was modified 10 years, 11 months ago by Iurie Malai.
    June 11, 2014 at 2:15 am #4803
    Iurie Malai
    Participant

    @haystack, I am tempted to modify a little your plugin, but I am not sure how to do that. I need to propagate down ONLY the new blog posts activities from a particular root group with id 2. I think that in the propagate_content_down() function of your plugin I must add somehow these parameters: ‘action’ => ‘new_blog_post’, ‘primary_id’ => 2. Can you sugest how to do this?

    June 11, 2014 at 5:52 am #4806
    Christian Wach
    Participant

    @iurie I have added filters that will allow you to modify the template arguments and intercept the results on the Github version, but there is a fundamental problem with this approach. The way the plugin works is that it replaces the entire activity stream of a viewed group with the propagated activity stream. This means that filtering the stream to include only items of type ‘new_blog_post’ and ‘new_groupblog_post’ would result in nothing but new blog post activity items in each viewed group’s stream.

    What I think you’re after is a “cherry-picked” approach, such that you have the full activity stream for the viewed group with the addition of items of types ‘new_blog_post’ and ‘new_groupblog_post’ from the parent group (or group that you specify). This is a whole heap more complex and not something the ‘bp_has_activities()’ function offers by default. I’m not sure quite how you’d go about doing that except by diving into the SQL modification filters such as ‘bp_activity_get_where_conditions’ or building some sort of meta query.

    Ultimately, all of this may be overkill for your needs. Perhaps you need to rethink your UI instead – you could have a widget on each subgroup’s activity stream page that shows nothing but the blog posts from the specified group. It wouldn’t be exactly what you’re after, but it would at least show the posts to members of the sub-groups.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Classic Support
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 287
  • Send Invites

Groups

Newest | Active | Popular | Alphabetical
  • Group logo of CBOX Classic Support
    CBOX Classic Support
    287 members
  • Group logo of CBOX Pioneers
    CBOX Pioneers
    71 members
  • Group logo of CBOX Developers
    CBOX Developers
    40 members
  • Group logo of CBOX OpenLab Support
    CBOX OpenLab Support
    22 members
  • Group logo of CBOX-OL Testing Partners
    CBOX-OL Testing Partners
    12 members

CBOX has its roots in the CUNY Academic Commons, which in turn was made possible through funding from The City University of New York itself.

CUNY Logo

CUNY Academic Commons Logo

City Tech logo

The Commons In A Box was made possible through the generous support of the Alfred P. Sloan Foundation.

Alfred P. Sloan Foundation Logo

NEH Logo

The CUNY Graduate Center has directly contributed to the CUNY Academic Commons, housing the project since its inception, and has contributed to CBOX through its GC Digital Initiatives.

CUNY Graduate Center Logo

CUNY Graduate Center Digital Initiatives Logo

Powered by Commons In A Box
css.php
Skip to toolbar
  • About WordPress
    • WordPress.org
    • Documentation
    • Learn WordPress
    • Support
    • Feedback
  • Log In
  • Register