Skip to:
Content
Pages
Categories
Search
Top
Bottom

Better way to add users to groups


  • markbildner
    Participant

    @markbildner

    Is there a way to add users in bulk to Buddypress Groups the same way you can send invites?

    The invite page provides a list of users with checkboxes. This is very efficient. However, you have to wait for everyone to accept invitations, which is troublesome if your groups are classrooms and you want everyone to be up and running at the start of the school year.

    The back-end Groups Edit page allows you to directly add usernames to groups. But the way you do it is with a search box, and it is really slow!! If you have to assign hundreds of students to their classrooms, it takes forever!

    I would love to have the group edit page to provide the same list of checkboxes. Or maybe have the invite page provide the option of directly adding usernames to a group. Surely this is a snippet of code in one place or the other. Ideas?

    For reference I am on wp 5.2.2 and buddypress 4.4.0 and due to the restrictions of my theme I am currently on Legacy.

    Thanks in advance!

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

  • raviousprime
    Participant

    @raviousprime

    Hello,

    It can be done will a few lines of code. Please refer the following URL:
    https://gist.github.com/raviousprime/ea52f4b1ebb531731387a70eb95e91c8

    It adds users with subscriber role to the group when created.

    Regards
    Ravi


    markbildner
    Participant

    @markbildner

    Thank you for taking the time to respond. Unfortunately I cannot assign everyone of a certain role to the same class. They are all students and therefore Subscribers. And I cannot just do it for new groups when they are created.

    I have an easy way to delete members in bulk, via the Bulk Actions on the Groups->Edit page.
    I have an easy way to invite members, via the front end Invite page.
    But I do not have an easy way to directly add members, without going through the very slow search dialog box for each name on the Groups->Edit page. Why can’t that be a set of checkboxes?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar