Skip to:
Content
Pages
Categories
Search
Top
Bottom

Automatic Add to Groups – Including Private Ones

  • Avatar of techguy
    techguy
    Participant

    @crashutah

    Rather than just sending a request to have the person join the group that they’ve been invited to join, it would be better if they were just automatically a member of that group if they were invited to join by email.

    Also, it seems like the group invite only works if the group is a public group. If they are either of the other 2 options, then the invite email doesn’t get sent (let alone joined).

    P.S. I figured one feature per forum topic was better since then you could close topics and keep the discussion focused. Thus all the new topics.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Thanks for the info about private groups. I’ll do some testing and figure out the bug.

    As for automatic joins, I have mixed feelings about it. I will look into how hard it is (it’d probably involve circumventing some core bp functions) and if it’s not too hard I’ll make it a site wide admin option. In my community, at least, I wouldn’t want the joins to be automatic.

    Avatar of techguy
    techguy
    Participant

    @crashutah

    Yes, I think an option in the site wide admin would be best. If I get a chance I’ll see if I can look into it also.

    Avatar of Gert Steenkamp
    Gert Steenkamp
    Participant

    @thatmatters

    I would like this feature as well. Even if it is just the one group like an announcements group that needs to be set sitewide

    Avatar of techguy
    techguy
    Participant

    @crashutah

    Ok Boone, I think I’ve got this figured out.

    Basically you need to replace line 232 and 233 in by-email.php with:
    groups_join_group( $group_id, $user_id );

    Of course, you’re more likely to put an option in the admin screen and then do an If () to see if people prefer to automatically add to the group or just invite them which is perfectly fine. You’re the pro at that part.

    Avatar of techguy
    techguy
    Participant

    @crashutah

    Ok, I just tested the change I listed above and it resolves the issue of private and hidden group invites not working. If you just change it to have them automatically join the group it goes really smooth.

    Now to play with the friend invite. Although, I don’t mind that one sending the email as much. Interesting how we have such different needs based on the site we’re building.

    Avatar of smiranda
    smiranda
    Member

    @smiranda

    So, it techguy’s figuring going to be implemented? Or is this something we should do on our own?

    Avatar of smiranda
    smiranda
    Member

    @smiranda

    I tried your fix, techguy, and the invite does not send an email nor does it add the member to a hidden group.

    Avatar of techguy
    techguy
    Participant

    @crashutah

    I’ve implemented this on a bunch of different sites and registered hundreds of users with no problems. You’re right that it doesn’t send a notification about them joining a group, but it definitely will add them to the group regardless of the status of the group.

    I am looking for a way to allow Group admins to skip the invitation and automatically add members to groups. @techguy, it sounds like this is exactly what your change does, which is so great. Can you tell me how to implement in the most recent version of InviteAnyone (1.0.15)? (What is written on the lines that I’m replacing?) Thank you so much!

    Right now non of the ways to add a user to a private or hidden group is working for me.

    Invites dont work, and if a user requests to be added, the accept button is not accepting the request.

    Version of buddypress 1.6.1, wordpress: 3.4.2; Buddypress theme: default.

    Any help on this would be greatly appreciated.

    Thank you,
    Raul

    Avatar of marbler
    marbler
    Participant

    @marbler

    I’ve had lots of problems with this – some people are find others never get the invite.

    To put this into perspective, the hidden group is for updates of a loved one who has cancer. People want to join the group to get news, but are massively frustrated that they can’t gain access.

    I’d like to ideally:

    1) Send an email asking the them to register. Explain to them that by registering they are also accepting the invite to the group.

    2) On registering they are automatically added to the group and are taken to the home page of that group when logging in.

    Has anyone managed to do this?

    Also…

    3) Has anyone worked out a way to deal with adding people to groups (or accepting an invite) if they register with a different email than they got invite with?

    Thanks!

    Avatar of Jason Verdelli
    Jason Verdelli
    Participant

    @jasonverdelli

    @crashutah I tested what you said here:

    Basically you need to replace line 232 and 233 in by-email.php with:

    groups_join_group( $group_id, $user_id );

    I am using the latest version of the Invite Anyone plugin. I believe at this point you might have been referring to line 262 and 263 in by-email.php. I tried commenting out those lines and adding the code above, but it didn’t seem to work. Just so you know I tested it by selecting a user from the list of users and clicking “Send Invites”. I didn’t see that they were automatically added to the group.

    Any advise or direction would be greatly appreciated. Thanks.

    Avatar of claenjoy
    claenjoy
    Participant

    @claenjoy

    @jasonverdelli

    line 260 in by-email.php replaced
    groups_send_invites( $inviter_id, $group_id );
    with
    groups_join_group( $group_id, $user_id );

    it works !

    invite anyone Version 1.1.0
    wordpress 3.8.
    bdpress Version 1.9.1 |

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

You must be logged in to reply to this topic.