Re: Quick buddypress plugin question
@Stigmartyr
Well adding another table came from another idea I had which was to basically copy everything that has to do with groups and group creations and group functions so that I could add more fields and have somthing of a database of Capoeria schools instead of just basic groups forums with names like “capoeira rocks socks”. ( http://caradacapoeira.com ). but i decided that that would be chaotic and it would just be better to add fields to the existing group capabilities (fields for location/phone number).
@DJPaul
I found this for the front end markup.
`function bp_extra_group_fields_markup() {
// Put your form markup here, eg:
?>
<?php
}
add_action( ‘groups_custom_group_fields_editable’, ‘bbg_extra_group_fields_markup’ );`
and this is for profesing the information:
`function bbg_save_extra_group_details() {
// Grab the $_POST data and do something with it. Simplified example:
global $bp;
if ( isset( $_POST ) )
groups_update_groupmeta( $bp->groups->current_group->id, ‘country’, $_POST );
}
add_action( ‘groups_group_details_edited’, ‘bbg_save_extra_group_details’ );
add_action( ‘groups_create_group_step_save_group-details’, ‘bbg_save_extra_group_details’ );`
Please any and all help is welcome.