Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress group avatar spillage across networks


  • marvc
    Participant

    @marvc

    I’ve got a new multi-network which includes BP multi-networks and the multi-network plugin.
    Main Site: http://beautyugly.com
    Network: http://modelbu.com
    Network: http://dancingbu.com
    Network: http://cancerbu.org

    When adding avatars to groups on one network, say activebu.com, it changes some of the avatars which are already in place on another network, say beautyugly.com. Is there anything I can do to prevent this and have consistency with avatars on the networks?

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

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

    MS is always a setup that is significantly more complex than a single site BP setup which probably the majority of installs are and with which people here are familiar with, add into the mix the domain mapping and it’s that bit harder to diagnose.

    Given the issue description it’s not going to be easy to suggest what’s wrong and possibly why there hasn’t been a response ( on forums when no response the form is to attempt a re-wording or addition of detail in case those are the reasons for lack of response)

    Detail such as where BP is installed exactly, which plugins are in use doing what exactly are going to help but be aware to some extent trying to replicate this as an issue might require someone having to attempt to setup exactly along the lines your install is to be able to understand the issue and that that may be too much to expect on a volunteer support forum.


    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

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

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘BuddyPress group avatar spillage across networks’ is closed to new replies.
Skip to toolbar