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.

Group Blog Support Needed: Deleting Group Blogs with Deletion of Groups

Tagged: buddypress, delete, group-blog

  • This topic has 2 replies, 2 voices, and was last updated 11 years, 9 months ago by Mike Stumpf.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 16, 2013 at 12:24 pm #3177
    Mike Stumpf
    Participant

    Hello,

    I am working with the latest installation of CBOX and I have come across a problem with groups and group blogs, mainly that when a group admin deletes a group, the group blog remains active.  The network administrator is able to delete these group blogs but I would obviously like to have it done together by the user.

    I do not really even know where to start to begin working on this one.  I think I will have to call wpmu_delete_blog but I am not sure if there is something already to that effect available.

    Any help would be appreciated, thanks.

    July 16, 2013 at 1:07 pm #3181
    Matthew K Gold
    Moderator

    Hi Mike,

    That’s expected behavior, I’m afraid — blogs and groups can be synced
    together in terms of members and activity updates, but they each have their
    own administrative interfaces and must be deleted separately.

    On Tuesday, July 16, 2013, Commons In A Box wrote:

    July 24, 2013 at 8:11 am #3210
    Mike Stumpf
    Participant

    In case anyone is interested, and I know it is not the best workaround, but what I did was to edit

    …/wp-content/plugins/buddypress/bp-groups/bp-groups-functions.php

    and add the following code after retrieving the group object in the groups_delete_group( $group_id ) function.


    //remove associated group blog

    $groupblog_blog_id = get_groupblog_blog_id($bp->groups->current_group->id);;

    if ($groupblog_blog_id){

    require (ABSPATH. 'wp-admin/includes/ms.php');

    wpmu_delete_blog( $groupblog_blog_id, $drop = true);

    }

  • 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 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