BuddyDev

Search

[Resolved] BuddyPress Multi Network issue BuddyBoss Profile Fields Updation

  • Participant
    Level: Initiated
    Posts: 5
    Bratwales on #33065

    Hi Rami & Brajesh,

    I’m following here. I’ve got exactly the same challenge:

    – members don’t show up in subsites on member page. (they do show up in main site)
    – Changing profile fields on frontend doesn’t work. Changing in admin works.

    I noticed the support of buddyboss isn’t really great, it’s kind of high over support IMO. Not easy to work with them on a specific topic as they indeed work on new features and not so much on customisation i guess.

    @Brajesh hope you could have a look at Rami and my scenario and assist us moving forward? I’m stucked at this moment and not able to launch 🙁

  • Keymaster
    (BuddyDev Team)
    Posts: 24344
    Brajesh Singh on #33073

    Hi Everyone,
    I am sorry to disappoint on this but we do not have anything to do with the profile fields issue.

    If it is not working, the parent plugin is doing something strange. If you take a look at the Multi Network plugin, It is very basic.

    All it does is changes the prefix of various BuddyPress tables to make them site specific instead of global. That’s all.

    In other words, none of the actions by the parent plugin will have any side affect by using Multi Network plugin other than they will store/retrieve from current site . All Multi Network does is forces them to use tables from current site(blog). If they are not putting any specific rule to not update on sub site, It will work as normal.

    That’s the reason I have been not able to assist you. How do we fix a problem when we do not even touch anything like that.

    Thank you for the understanding.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24344
    Brajesh Singh on #33074

    Also,
    If BuddyBoss support is asking for a Fix in multinetwork, Please do ask them to tell me where is the problem in the multi network plugin.

    Here is the link to code.

    https://github.com/sbrajesh/buddypress-multi-network

    and here are the filters we apply on the core to map to local table.
    https://github.com/sbrajesh/buddypress-multi-network/blob/master/core/class-bp-multi-network-filters.php

    Regards
    Brajesh

    • This reply was modified 3 years, 10 months ago by Brajesh Singh. Reason: updated to include the filters
  • Participant
    Level: Initiated
    Posts: 5
    Bratwales on #33076

    Thanks Brajesh, makes totally sense! Does your answer includes the missing listing of members on sub-sites? In that case I’ll reach out to buddyboss again. If this is custom work, I’m happy to delegate that part to someone 😉

  • Keymaster
    (BuddyDev Team)
    Posts: 24344
    Brajesh Singh on #33077

    Hi Bratwales,
    Thank you.

    The members are listed on a site if their last activity is recorded on that sub site. Please try logging as the user and visiting that specific sub site. Once they login, It will show them in the directory. This is how BuddyPress/BuddyBoss lists users(based on last active time is set or not).

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Bratwales on #33079

    Yes I was looking into “last activity” and tried several snippets via buddypress forum to force this. Didn’t work for me. Login with the user credentials also didn’t show the member on subsite. Strange thing is that the members are listed on main site and there individual activity is recorded correctly on subsite only. So the multi network does work, only thing is missing member overview on the subs. Cant figure out what is causing this.

  • Keymaster
    (BuddyDev Team)
    Posts: 24344
    Brajesh Singh on #33103

    Hi,
    Is there any chance you did not add the users to the sub site after multi network was activated? Can you please try removing and adding them in the sub site’s user panel and see if they are listed?

    Thank you
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Bratwales on #33105

    Dis some back and forth without luck. In general the multi network seems okay because:

    – I’ve got isolated sub sites in terms of own activities, groups etc. (also own members visible in admin)
    – Members added via admin are listed correctly on sub-site member list

    But members from subsite 1 can’t “join” subsite 2 ( they are however able to create groups and post in activity feeds of subsite 2) They just can’t join blog. (Since buddyboss makes use of bbpress I already disabled the participant role coming automatically from BBpress. So on subsite 2 they don’t possess any user role.

    Secondly I use a woocommerce registration on all subsites. Whenever user registers on a subsite directly they get customer role, don’t show up in member list. (I connected buddypress with Woo fields)

    Reason for this “workaround” is that I use WP Ultimo on main site where users are able to setup a subsite themselves. Sign up on main site points to onboarding process, creating a subsite.

    I’m stucked and maybe it’s to much complexity and the plugins just don’t work well all together.

  • Keymaster
    (BuddyDev Team)
    Posts: 24344
    Brajesh Singh on #33116

    Hi,
    It seems your problem is user is not marked as part of the sub site.

    In our case, we add a record(create a log that user belongs to this sub site) when a user is added to the sub site.

    Here is the list of actions when we record the user as part of current site’s member directory.
    https://github.com/sbrajesh/buddypress-multi-network/blob/master/core/class-bp-multi-network-actions.php#L30

    Here is it in plain English(if the above code does not make sense):-
    1. When a user activates their account on a sub site, we add them to the sub site.
    2. When a user is added to the sub site

    Since you are using WooCommerce, these actions may not be firing.

    Adding this code to your bp-custom.php

    
    add_action( 'user_register', function ( $user_id ) {
    	if ( function_exists( 'mnetwork_add_user' ) ) {
    		mnetwork_add_user( $user_id, get_current_blog_id() );
    	}
    } );
    
    

    May do the trick. Try registering a new user after putting it. Do they appear if they register on the sub site and login there.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 5
    Bratwales on #33132

    Awesome Brajesh, that worked! Thank you very much for helping me out.

The topic ‘ [Resolved] BuddyPress Multi Network issue BuddyBoss Profile Fields Updation’ is closed to new replies.

This topic is: resolved