Skip to:
Content
Pages
Categories
Search
Top
Bottom

When creating a new group I want to co-create three user fields.

  • Avatar of natetheaverage
    natetheaverage
    Member

    @natetheaverage

    So on my site every time a user joins a group they have the option of listing some details about their personal connection to it. Right now I am having to manually create each of the three user fields so they will show up on profile->edit. I am using either mySQL or admin page to do this.

    I can not for the life of me figure out where or how to use existing functions to automate the process.

    any suggestions? ideas? or am I doomed to try and write something that will be mediocre at best.

    ps this is my first attempt at development with buddypress.
    If it helps this is the site http://www.chameleonalchemy.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of Roger Coathup
    Roger Coathup
    Participant

    @rogercoathup

    @natetheaverage -

    an outline solution (there are lots of areas where you’d have to work to implement it):

    When a group is created, you could write a hook that creates a corresponding xprofile field group (remember to hook on delete group as well to remove the profile field group)
    In the member’s profile screens, you would hide that xprofile field group if the member is not a member of the group
    In a hook on Join Group, you’d want to display an additional screen that prompts for the user fields, and when that is submitted use the xprofile API to write the data to the user’s profile
    I guess finally, you’d also want to modify the members loop inside the group to show that information

    There’s a lot of code for you to trawl through

    Avatar of natetheaverage
    natetheaverage
    Member

    @natetheaverage

    yea that’s what I was afraid of. already have the hiding field groups done. thank you @RogerCoathup, wish me luck everybody.

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

You must be logged in to reply to this topic.