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 Bowe Frankema
  • Profile picture of Matthew K Gold

CBOX Developers

Public Group active 3 years, 7 months ago

This group provides technical support for developers working with Commons In A Box installations. Are you a developer specializing in CBOX sites? List your contact info here so that others can find you. Register for an account or log in to commonsinabox.org, then join the group and post your question here.

Accessing peer site blogrolls

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 7 months ago by Ray.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 3, 2014 at 10:45 am #5143
    Dale MacDonald
    Participant

    We are in the process of building a “magazine” to live in our commons.  We have a notion of having widgets on the magazine’s front page that would show recent posts in various other sites’ blogs.  Seems like the BP infrastructure ought to make this simple but so far no simple joy so now we’re going to dig deeper. Anyone have thoughts on design patterns for peer site blogroll access? Are there BP methods I’ve missed? Or are we relegated to RSS?  In fact it’s not totally obvious to me how this would be done in parent-child sites.

    Would others be interested in such a widget? It seems like it could be a nice addition to a cbox front page to be able to show the roll of some featured sub-blog.

    Dale.

    October 3, 2014 at 10:53 am #5144
    Bowe Frankema
    Member

    Interesting question, and something I have to do for a project in the near future as well. So far I only aware of the “Recent Networkwide Posts” widget that shows recent blogs from across the network.

    If you want to have something more robust or flexible I don’t have a clear answer yet. I’ve done a little bit of research but have not found the perfect solution yet.

    That being said this plugin seems very interesting: https://premium.wpmudev.org/project/post-indexer/.

    I think that would allow you to build a custom template showing recent/featured posts from across your network.

    Good luck Dale 🙂

    October 5, 2014 at 2:27 pm #5149
    Ray
    Keymaster

    Hi Dale,

    There is no such widget, but BP does have the activity stream, which you could use to query other blogs.

    Check out the bp_has_activities() loop and then you should be able to filter items by the “blogs” component and by blog id by using the “primary_id”.

    Something like this:

    if ( bp_has_activities( array( 'object' => 'blogs', 'primary_id' => '1,2,3' ) ) ) {
    // your code here
    }

    In the example above, 1,2,3 are the blog IDs I want to filter by.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In
Group logo of CBOX Developers
  • Home
  • Forum
  • Announcements
  • Docs
  • Members 40
  • 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