Skip to:
Content
Pages
Categories
Search
Top
Bottom

Segregated xProfile Fields for Multisite


  • Kekeli
    Participant

    @ka2id

    Hi There,

    I have a (potentially) large multisite installation that calls on xprofile fields for each user on a particular site in order to return users for a specific item. Due to all the sites having this info, but only needing to pull from users from each specific site, I used the code in the link below to make sure that the profiles aren’t syncing xprofile info between all the sites, problem is, the code supplied doesn’t work, here it is… https://codex.buddypress.org/themes/guides/segregated-x-profile-fields-for-multisite/

    I am getting a ton of error messages on the site and it has to do with these 4 lines, looks like this code hasn’t been updated in a while, is there any way we can get an updated version that will work?

    $bp->profile->table_name_data = $wpdb->prefix . ‘bp_xprofile_data’;
    $bp->profile->table_name_groups = $wpdb->prefix . ‘bp_xprofile_groups’;
    $bp->profile->table_name_fields = $wpdb->prefix . ‘bp_xprofile_fields’;
    $bp->profile->table_name_meta = $wpdb->prefix . ‘bp_xprofile_meta’;

    Thanks,
    K

Viewing 1 replies (of 1 total)

  • Kekeli
    Participant

    @ka2id

    Quick update,

    Just realised this code was updated yesterday but still getting error, just tried again and am getting this error:

    Warning: Creating default object from empty value in /*********/themes/Builder-Everett/functions-child.php on line 187

    Warning: Creating default object from empty value in /*********/themes/Builder-Everett/functions-child.php on line 188

    Warning: Creating default object from empty value in /*********/themes/Builder-Everett/functions-child.php on line 189

    Warning: Creating default object from empty value in /*********/themes/Builder-Everett/functions-child.php on line 190

    (each corresponds to the line in the code I have above)

Viewing 1 replies (of 1 total)
  • The topic ‘Segregated xProfile Fields for Multisite’ is closed to new replies.
Skip to toolbar