BuddyDev

Search

Help with syncing groups and roles

  • Participant
    Level: Initiated
    Posts: 20
    constantinos amiridis on #47142

    Hello!

    No prob man, big thanks for the help! Some last questions

    Ok, i have done that both in the groups setting page but even verified it in the admin panel in the group, nothing happens 🙁

    https://imgur.com/a/vvsG9uk

    Does the roles need to have some sort of rights?

    Some last questions so I understand

    1 If a user is member gets member in group X that is connected to role X, and then join group Y that is connected to role Y. Does he get kicked from group X and gets the role Y removed?

    2 what do you mean it removes old role? can the user only b in one role? even for roles given outside buddy press?

    3 does it assign the role to existing members or only new ones?

    thanks again a lot

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2502
    Ravi on #47143

    Hello,

    Please check the following video:

    https://www.awesomescreenshot.com/video/12085232?key=01a7aeb117a059dcc6f0e18c0eb80f1a

    1. If a user joins a group x with Role X then the user will be assigned role X and further, If he/she joins another group y with Role Y then the previous role X will be removed and the new role Y will be assigned to the user.
    3. No this plugin does not assign associated group role to existing members, it will assign role only on group join.

    Please check.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 20
    constantinos amiridis on #47144

    ok thank you Ravi.

    Is it possible to keep the role for the other group memberships? the users is going to be in multiple

  • Participant
    Level: Initiated
    Posts: 20
    constantinos amiridis on #47145

    just got some users to

    join a group, log out from site, log back in and the results is still that they dont get added to a custom group 🙁

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2502
    Ravi on #47146

    Hello,

    Is it possible to keep the role for the other group memberships?
    Yes, It can be achieved by calling the ‘add_role’ method instead of ‘set_role’. You can modify it here:

    https://github.com/buddydev/bp-group-role/blob/master/class-bp-group-role-handler.php#L167

    join a group, log out from site, log back in and the results is still that they dont get added to a custom group

    I am unable to get your point here. Can you provide me with a short video or screenshots of the issue so that I can help you with this issue?

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 20
    constantinos amiridis on #47246
    This reply has been marked as private.
  • Keymaster
    (BuddyDev Team)
    Posts: 22213
    Brajesh Singh on #47252

    Hi,
    Thank you for the reply and the videos.
    Ravi is on leave for a few days and I will be assisting you here.

    Can you please tell me the following:-

    1. Have you modified the plugin as suggested by Ravi?
    2. Was the plugin working for single role but stopped for multi role?
    3. Anything else about how is it working and what is the expectation.

    Please share and I will assist you quickly.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 20
    constantinos amiridis on #47254

    1. Yes, but cant verify it works because users never got their role
    2. no
    3. nothing more

  • Participant
    Level: Initiated
    Posts: 20
    constantinos amiridis on #47391

    any ideas gentlemen? dont really know what more to do 🙁

  • Keymaster
    (BuddyDev Team)
    Posts: 22213
    Brajesh Singh on #47403

    Hi,
    I am sorry, we are unable to understand your requirement.

    can you please explain how it should work(user joins group 1 then happens x, user joins group 2, then happens Y, then user leaves group 1 and so on.). I mean with a detailed example. That will help us assist you better.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved