• Resolved valuser

    (@valuser)


    WP 3.6.1, BP 1.8.1, BP Multi Network 0.1.1, Networks+ for WordPress 0.2.3.1 (premium).

    At the moment I can’t get the stickiness to work on the front-end of a multi-network install.

    It DOES work in the back-end – i.e. the plugin moves to the top but actually is not highlighted as it is in a single network buddypress installation.

    I have other buddypress plugins active and will have to go through them (on/off) to see any conflicts

    https://www.ads-software.com/plugins/bp-sticky-groups/

Viewing 10 replies - 1 through 10 (of 10 total)
  • I see it’s a specific config… i doubt there’s a conflict. It’s just not ready for this kind of config.

    Thread Starter valuser

    (@valuser)

    it is now – Many, many thanks

    Thread Starter valuser

    (@valuser)

    though without the lovely css !!

    span.sticky group
    or
    <span class = "sticky group">Sticky Group Name</span>

    is absent in multi – network.

    Thread Starter valuser

    (@valuser)

    no false optimism – last active was the filter – no change i’m afraid

    Thread Starter valuser

    (@valuser)

    Think I got it done, perhaps not elegantly but seems ok

    for multi-network —-> replace line 293 of bp-sticky-groups.php
    with

    $current_site = get_current_site();
    $xid = $current_site->id;
     $sticky_sql['from']       = $sql_args['from'] . ' wp_'.$xid.'_bp_groups_groupmeta gms,';

    Thread Starter valuser

    (@valuser)

    or more correctly replace line 293 of bp-sticky-groups.php ?
    with

    `$current_site = get_current_site();
    $xid = $current_site->id;
    if ($xid != “1”) {
    $sticky_sql[‘from’] = $sql_args[‘from’] . ‘ wp_’.$xid.’_bp_groups_groupmeta gms,’;
    } else if ($xid == “1”) {
    $sticky_sql[‘from’] = $sql_args[‘from’] . ‘ wp_bp_groups_groupmeta gms,’;
    }

    assuming bp root on main blog is site id =1; if not substitute the correct site id.

    most probably could be cleaned up.

    Thread Starter valuser

    (@valuser)

    resolved

    Hi @valuser,

    Thanks a lot for insisting on this one, as you made me found a silly mistake i’ve made !! I’m really ashamed of it.. wow !! I can’t believe i’ve made it.

    Anyway, i’ve published 1.0.2 to correct this. To get a WordPress table name, hardcoding ‘wp_’.. is the very wrong way of doing it. We need to use $wpdb->prefix. In the particular case of BuddyPress group meta table, we need to use $bp->groups->table_name_groupmeta.

    Thread Starter valuser

    (@valuser)

    confirmed 1.02 imends this.

    Many many thanks

    the other issue is that it must be network activated.
    it would be nice to only activate it on individual sites

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Works with bp-multi-network ??’ is closed to new replies.