Skip to:
Content
Pages
Categories
Search
Top
Bottom

Extending Group Creation

  • @jayalter

    Participant

    I have the need to add additional fields to the BP creation process. Items such as phone #, address, etc. I have searched through the BP group code and can’t seem to find anything in there to modify to add fields to the creation form. I’ve read some very vague details on the BP Group API but it seems the documentation on the Group API is sorely lacking.

    I was wondering if anyone could point me to some details on how to modify the BP Group creation process or how to extend it??? I thank you in advance for any assistance.

    Jay Alter

Viewing 6 replies - 1 through 6 (of 6 total)
  • @apeatling

    Keymaster

    @jayalter

    Participant

    Actually I had Andy. Thanks for replying to me here. However, while I did read it, it didn’t give me much to go on as to the various function calls / syntax etc. Nor did I see any relevant information on as to if I need to add fields to the BP groups table in the DB. This is helpful for a skeletal BP Groups extention but it is still to vague for me to truly understand the ins and outs of how to use the API or know the details of the API functions. (syntax, return values, WHY to use one and not another,etc.) Again, thanks though for getting back to me.

    Jay

    @jayalter

    Participant

    Andy, I’ve used your code example to create a skeletal group extension class, however where exactly does this file go now that it’s created? I placed it the home plugins dir of my WP installation but no new step shows up in my group creation process. Where exactly should I place this new file I’ve created to extend the group creation class?

    @jayalter

    Participant

    Do anyone have any input on my question above? I’m still trying to figure out WHERE the class extension extension file is to be placed within the folder structure of a WP / BP site? Thanks for any input.

    Jay

    @apeatling

    Keymaster

    You should make it a plugin, then add this to the plugin and activate. If you’d like to see a working implementation then check out these plugins:

    https://wordpress.org/extend/plugins/buddypress-group-twitter

    https://wordpress.org/extend/plugins/bp-groupblog

    https://wordpress.org/extend/plugins/external-group-blogs

    You should be saving extra group information as groupmeta:

    bp_groups_update_groupmeta( $group_id, 'name', $value );

    @jayalter

    Participant

    Excellent Andy. Thanks so much for getting back to me. I’ll continue forward. I appreciate you taking the time to get back to me and assisting me with this endeavor. I’ll keep you apprised of how it goes and provide you some feed back on the experience when it’s complete.

    Jay Alter

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Extending Group Creation’ is closed to new replies.
Skip to toolbar