BuddyDev

Search

How can i automatically add users to groups based on their profile field input?

  • Participant
    Level: Initiated
    Posts: 10
    Plutus on #28035

    How can i automatically add users to a group based on their profile field input?

    For example, i am running a social networking website for students and i want to automatically add a user who inputs ‘Mechanical Engineering’ in his course field to a group named ‘Mechanical Engineering’.

    Is this possible? I would be so glad if i could get a solution to this. Thanks in advance.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #28050

    Hi,
    You can most probably do it bu hooking to the activation action ‘bp_core_activated_user’.

    Yes, it is doable but you will need to handle the checks and assisgn user to group using ‘groups_join_group()’ on that action.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Plutus on #28052

    thank you, but a full detailed how to would be appreciated, i am kind of a novice at this things. thanks

  • Participant
    Level: Initiated
    Posts: 10
    Plutus on #28126

    hello

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #28140

    Hi,
    It will need some time. I plan to write a blog post and will share the link here in next couple of days.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 10
    Plutus on #28149

    that would be nice. i love this website! please keep up the good works

  • Participant
    Level: Initiated
    Posts: 10
    Plutus on #28312

    hey there

You must be logged in to reply to this topic.

This topic is: not resolved