Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • marvc
    Participant

    @marvc

    Not the response I was hoping for as all I’m trying to do is restore buddypress info from one site to another. These are WP/BP solutions so I don’t see how no one in either of these communities have proven and documented which by now should be a basic restore process.


    marvc
    Participant

    @marvc

    I tried and decided to go in another direction. Thanks for the reply.


    marvc
    Participant

    @marvc

    All sit on a GoDaddy VDS server running the latest versions of BP & WP. Understanding that this falls outside the normal scope of how BP is used and supported I’m willing to draft a budget in exchange for DEV assistance resolving this issue.


    marvc
    Participant

    @marvc

    I have the following on another network:

    <?php
    /*
    Plugin Name: BP Multi Network
    Plugin URI: http://wpmututorials.com/news/new-features/multiple-buddypress-social-networks/
    Description: Segregate your BP networks in a multi-network WP install (must be installed in the mu-plugins folder)
    Version: 0.1.1
    Author: Ron Rennick
    Author URI: http://ronandandrea.com/
    */
    /* Copyright: (C) 2011 Ron Rennick, All rights reserved.
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    */
    
    function ra_bp_multinetwork_filter( $prefix ) {
    global $wpdb;
    
    if( $wpdb->siteid > 1 && $prefix == $wpdb->base_prefix ) {
    $current_site = get_current_site();
    return $wpdb->get_blog_prefix( $current_site->blog_id );
    }
    
    return $prefix;
    }
    add_filter( ‘bp_core_get_table_prefix’, ‘ra_bp_multinetwork_filter’ );
    
    function ra_bp_multinetwork_meta_key_filter( $key ) {
    global $wpdb;
    static $user_meta_keys = array(
    ‘last_activity’ => false,
    ‘bp_new_mention_count’ => false,
    ‘bp_favorite_activities’ => false,
    ‘bp_latest_update’ => false,
    ‘total_friend_count’ => false,
    ‘total_group_count’ => false,
    ‘notification_groups_group_updated’ => false,
    ‘notification_groups_membership_request’ => false,
    ‘notification_membership_request_completed’ => false,
    ‘notification_groups_admin_promotion’ => false,
    ‘notification_groups_invite’ => false,
    ‘notification_messages_new_message’ => false,
    ‘notification_messages_new_notice’ => false,
    ‘closed_notices’ => false,
    ‘profile_last_updated’ => false,
    ‘notification_activity_new_mention’ => false,
    ‘notification_activity_new_reply’ => false
    );
    
    if( $wpdb->siteid < 2 || !isset( $user_meta_keys[$key] ) )
    return $key;
    
    if( !$user_meta_keys[$key] ) {
    $current_site = get_current_site();
    $user_meta_keys[$key] = $wpdb->get_blog_prefix( $current_site->blog_id ) . $key;
    }
    
    return $user_meta_keys[$key];
    }
    add_filter( ‘bp_get_user_meta_key’, ‘ra_bp_multinetwork_meta_key_filter’ );

    marvc
    Participant

    @marvc

    In terms of the BP Multi-Network plugin I have the following on one network:

    <?php
    /*
    Plugin Name: BP Multi Network
    Plugin URI: http://wpmututorials.com/news/new-features/multiple-buddypress-social-networks/
    Description: Segregate your BP networks in a multi-network WP install (must be installed in the mu-plugins folder)
    Version: 0.1
    Author: Ron Rennick
    Author URI: http://ronandandrea.com/
    */
    /* Copyright: (C) 2011 Ron Rennick, All rights reserved.
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    */
    
    function ra_bp_multinetwork_filter( $prefix ) {
    global $wpdb;
    
    if( $wpdb->siteid > 1 && $prefix == $wpdb->base_prefix ) {
    $current_site = get_current_site();
    return $wpdb->get_blog_prefix( $current_site->blog_id );
    }
    
    return $prefix;
    }
    add_filter( ‘bp_core_get_table_prefix’, ‘ra_bp_multinetwork_filter’ );
    
    function ra_bp_multinetwork_meta_key_filter( $key ) {
    global $wpdb;
    static $user_meta_keys = array(
    ‘bp_new_mention_count’ => false,
    ‘bp_favorite_activities’ => false,
    ‘bp_latest_update’ => false,
    ‘total_friend_count’ => false,
    ‘total_group_count’ => false,
    ‘notification_groups_group_updated’ => false,
    ‘notification_groups_membership_request’ => false,
    ‘notification_membership_request_completed’ => false,
    ‘notification_groups_admin_promotion’ => false,
    ‘notification_groups_invite’ => false,
    ‘notification_messages_new_message’ => false,
    ‘notification_messages_new_notice’ => false,
    ‘closed_notices’ => false,
    ‘profile_last_updated’ => false,
    ‘notification_activity_new_mention’ => false,
    ‘notification_activity_new_reply’ => false
    );
    
    if( $wpdb->siteid < 2 || !isset( $user_meta_keys[$key] ) )
    return $key;
    
    if( !$user_meta_keys[$key] ) {
    $current_site = get_current_site();
    $user_meta_keys[$key] = $wpdb->get_blog_prefix( $current_site->blog_id ) . $key;
    }
    
    return $user_meta_keys[$key];
    }
    add_filter( ‘bp_get_user_meta_key’, ‘ra_bp_multinetwork_meta_key_filter’ );

    marvc
    Participant

    @marvc

    I have another network here: nusolutions-demos.com. I built this way before the major releases to WP & BP. On this I now have a few BP networked sites:
    nusolutions-demos.com
    dkleo.nusolutions-demos.com/groups/
    pm.nusolutions-demos.com/
    demo.nusolutions-demos.com/

    I don’t have the same plugins installed and the only consistent plugin across the networks is BP.


    marvc
    Participant

    @marvc

    Two weeks and not even a response? So no one in this ENTIRE buddypress community sees this as something worth responding to? How can you not get support, or even a response, from developers of their own product?
    Gonna re-post as it doesn’t appear as though this forum is being monitored.


    marvc
    Participant

    @marvc

    Being that I’m not a developer am I to assume this isn’t something that can be done? I’d be willing to scrounge up some pennies if the price is right.

    Gonna try over @ WPMU Prem.


    marvc
    Participant

    @marvc

    Speaking from experience I suggest WPMU, Networks+ ($$), and BP Multi Network. (You may wanna include the Domain Mapping plugin to map sites to domains.)
    Install WordPress and configure networking, WPMU as a subdirectory installation. (Default)
    Create your mu-plugins folder and upload Networks+. From here you’ll be able to create your different org networks. Each org network can offer blogs which can be created using the BP-Groupblog plugin. This way the group, whether public, private, or hidden, can be associated with the blog.
    Create each of your org networks.
    Install and activate BuddyPress on the main site first.
    Upload your bp multi network plugin to your mu-plugins folder.
    Activate BP on one of your org networks. Once activated your users will be shared across the entire network but your groups and blogs are specific to that org network.
    I have it on a site / network I’m working on here:
    http://teamnu.net
    and here: http://alumnicreator.net

    Not to take away from the plugins available here but you’d buy the Networks+ and Domain Mapping plugin from wpEbooks site and the support over there is awesome just as it is here.

    gl


    marvc
    Participant

    @marvc

    I have been using the support over @ WPebooks and it has been excellent! I figure this to be more of a BP issue than a Networks+ issue so that’s why I posted it here.
    I was wondering about this bp-multi-network plugin but wasn’t sure if it applied to this scenario. I’ll download and give it a try.

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
Skip to toolbar