Skip to:
Content
Pages
Categories
Search
Top
Bottom

Default Groups on signup

  • Avatar of Michael Berra
    Michael Berra
    Participant

    @miguael

    I didn’t find this question in the forums yet – otherwise, sorry!

    I would need to create profile fields (or similar) that do add new members to certain groups (they choose maybe withour knowing, depending on their pick in profile fields). Is that possible? Does anyone know a solution/hack/whatever?

    THANX!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Avatar of Michael Berra
    Michael Berra
    Participant

    @miguael

    Any Idea about that? WOuld be very useful…

    Avatar of Jvinch
    jvinch
    Participant

    @jvinch

    I think this is a good enhancement – a default group and a default friend. At the end of the day, you want new users to get engaged – this can help with that. Maybe you can open a ticket in trac and request the feature/enhancement?

    Avatar of Slava UA
    Slava UA
    Participant

    @slaffik

    default friend is already exist somewhere on this forum (but i’m afraid it’s not working )

    default group… well, it’s not so difficult to modify, that plugin, i think.

    do you want to create members and add the to specific groups while creating them?

    this piece of code may help you in adding the user to group.

    //this will give the groups for the logged in user.

    $groupIDs = get_userGroups($bp);

    //from the groupIDs you can create the group object

    $group = new BP_Groups_Group( $group_id )

    //make the user assigned to the specific group. pass the user id of the new member

    groups_join_group($groupID,$user_id);

    Avatar of Michael Berra
    Michael Berra
    Participant

    @miguael

    Thanks ageeshkg, sounds good. Now I’m not a coder (more of a copy-paster :-)). Does your suggestion work on signup (because there is no logged-in-user yet, isn’t it?). I would like to create a pulldown or something on the wp-signup-page, where the becoming user chooses their groups.

    You piece of code – where should I put it?

    Thanks and sorry – I am a greenhorn… :-)

    Avatar of Enlightenmental1
    enlightenmental1
    Participant

    @enlightenmental1

    I would also be interested in Default Groups and Default Friends

    +1

    (not super-high on my “to do” list, or I’d offer payment to create this…soon though)

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Was waiting until I could get this on to the official WordPress plugin directory, but:

    svn co http://svn.dangerous-minds.com/djpaul/welcome-pack/trunk/

    That does Default Friend and Default Group. A later version will have Default Welcome Message (guess what that does..).

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Ah, okay – now it’s on http://buddypress.org/extend/plugins/ as “Welcome Pack” (or you can go to http://wordpress.org/extend/plugins/welcome-pack/).

    Avatar of Michael Berra
    Michael Berra
    Participant

    @miguael

    Cool thing – thanks DJPaul!

    Question: Is it possible to add a new User to specific groups based on a profile-field they choose (say a dropdown)?

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    @Michael

    Not with my plugin. But is it possible if you write such a thing? Yes.

    Avatar of Michael Berra
    Michael Berra
    Participant

    @miguael

    Thanks – if yould I would ;)

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

You must be logged in to reply to this topic.