Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Support: Creating & Extending

Existing and new plugins/components and themes.

How to use Group Extension API (19 posts)

Started 9 months, 3 weeks ago by: wphacker

  • Profile picture of wphacker wphacker said 9 months, 3 weeks ago:

    I download skeleton component. Next, I added
    require ( dirname( __FILE__ ) . ‘/bp-example-group-extension.php’ );
    to bp-example-core.php file.

    No error, but the create group group show nothing either. I put down a simple line of string in create_screen() function.

  • Profile picture of modemlooper modemlooper said 9 months, 3 weeks ago:

    When activating the skeleton comp. before you edited it did it work ok? You should have had a tab show up in groups called example.

    Docs: http://codex.buddypress.org/developer-docs/group-extension-api/

  • Profile picture of modemlooper modemlooper said 9 months, 3 weeks ago:

    oh wait, group api and skeleton comp are two separate things. skeleton comp creates a component. The group api adds features to a group.

  • Profile picture of wphacker wphacker said 9 months, 3 weeks ago:

    Okay, I simply want to add some extra fields to create group page, and be able to see the same fields I add on the edit page. I figured group extension API create_screen and edit_screen functions can help me achieve that. However, I don’t know how I can incorporate group extension api into my project.

  • Profile picture of modemlooper modemlooper said 9 months, 3 weeks ago:

    There isa plugin BP group extras that ads more fields to groups set up

    http://wordpress.org/extend/plugins/buddypress-groups-extras/

  • Profile picture of wphacker wphacker said 9 months, 3 weeks ago:

    Thank you very much for your suggestion. I have already tried that. However, it is not exactlu what I am looking for. That plug-in only add extra fields after a new group has been created. I want to standardize all create group page. So if the user first time create a group, the extra fields are on the group page creation page.

  • Profile picture of modemlooper modemlooper said 9 months, 3 weeks ago:

    oh, I see. well the api would create a new screen. it doesn’t really add to the current group fields. You would need to add action to:

    do_action( ‘bp_after_group_details_creation_step’ )
    do_action( ‘groups_custom_group_fields_editable’ )

    Thats if you simply wanted to have a few more fields below the name and description

  • Profile picture of 4ella 4ella said 9 months, 3 weeks ago:

    @wordpresshacker If you succeed and when you are done can you pls.publish here your working code- plugin? I would love to have those extra fields there too.

  • Profile picture of modemlooper modemlooper said 9 months, 3 weeks ago:

    You can add extra fields to a group during creation easily with the api it just wouldn’t be listed under the name and description fields. when I have a moment i’ll toss up a quickie plugin file for this.

  • Profile picture of wphacker wphacker said 9 months, 3 weeks ago:

    thank you

  • Profile picture of 4ella 4ella said 9 months, 3 weeks ago:

    thank you @modemlooper
    New version of BP Group Extras from @slaffik does exactly what we need , but not globally yet, with his latest version you need to create the fields for every group over over again :-( but he has new excellent feature – unlimited group pages

  • Profile picture of modemlooper modemlooper said 9 months, 3 weeks ago:

    Ok, so there still is a need for global custom group fields. Making an enhancement ticket for it.

  • Profile picture of Travel-Junkie Travel-Junkie said 9 months, 3 weeks ago:

    Why a new ticket? There’re all the actions you need to add new fields and save the data from these fields. Seems like that plugin might need some work. BP has all the necessary bits and pieces, though…

  • Profile picture of modemlooper modemlooper said 9 months, 3 weeks ago:

    I’m thinking BP should have in core the same profile field creation but for groups.

  • Profile picture of InterMike InterMike said 9 months, 3 weeks ago:

    BP should definitely have this in core – just like like they do for Profile fields.