too many options – would you prefer tutorials?
-
Im getting quite a few requests though if I were to integrate all the things mentioned, the code would be so bloated and confusing with so many options.
What I could do is write up tuts explaining how to build a plugin ( with all current features ) using the group api.
This way you could decipher through the ‘elements’ and make up your own plugin suited to your specific needs.
I have to make custom group api thingy soon as I need it for a project hence it would only add a few more hours onto my dev time.
The only thing I need help with is the $success message using @boonebgorges method of saving the group meta, boone do you thing you could provide a example using your method below and how we could check to see if the meta was saved hence $success = true…
eg:
`function settings_save( $group_id ) {
global $bp, $wpdb;$plain_fields = array(
‘map_field’,
‘textfield_field’,
‘textfield_field2′,
‘textarea_field’,
‘textarea_field2′
);
foreach( $plain_fields as $field ) {
$key = ‘group_plus_’ . $field;
if ( isset( $_POST[$key] ) ) {
$value = $_POST[$key];
groups_update_groupmeta( $group_id, ‘group_plus_’ . $field, $value );
}
}`
You must be logged in to reply to this topic.