@nit3watch – It looks like you’re only hooking into the save action after the group is created.
Try adding another save action with “groups_create_group_step_save_group-details”:
add_action( 'groups_create_group_step_save_group-details', 'gfield_save_field' );
See if that works.
@r-a-y tried it but still not saving on group creation
My goal here is to have a base for other noobs to work off and if I could get it working with additions, I could compleate my current project..
hey, I’m still actively developing this, but with the BP forum favourites feature removed, it’s tough to stay current. I’ll fix this and post an update. @nit3watch your work sounds interesting, I’d be interested to see what you are up to with the plugin. Also, I’d really like to create an admin panel for the plugin so that people can change their settings and not lose them on update, if you are serious about this plugin, a small donation would pay for this change. otherwise i’m too busy to add new features.
@nit3watch – I need more sleep! I deleted the previous posts to avoid confusion.
You don’t need a core hack!
Check out the revised code:
http://pastebin.com/ZW4gp88m (updated again!)
Thanks so much for the help @r-a-y was really a barrier on my current project.
@r-a-y sorry last thing, if I use, say group tags and gfield, the gfield form over-wites the group tags form.
Iv’e been reading up, and is this fixed by using add_filter? and if so, what do I set the priority to so that it wont conflict with similar plugins using ‘bp_after_group_details_creation_step’ ? Kinda like auto-incrementing the priority for each additional plugin?
@nit3watch – You have to remove the following hook:
add_action( 'bp_after_group_details_creation_step', 'gfield_add_field_form' );
Also remove the conditional that Derek put in.
Here’s the updated code, no need to add any filters:
http://pastebin.com/JrEbHMsh
Thanks again. I understand now.