Hello,
I am assuming anything is possible but I would like confirmation from you and maybe a suggested way of accomplishing it. I know I’ll need a developer to do this since it’s way over my head but your pointers would be much appreciated.
Scenario: I would like that when a user submits a form, the appropriate data from the form is also placed/mapped to the respective XProfile fields in BuddyPress. An example would be the user’s mailing address that has been entered in the Form, then after it’s submitted, a routine is run that populates the requisite XProfile field? Or is it possible to use XProfile fields on the FormidablePro form?
Thank you!
Quint




August 24, 2012 at 12:11 pm
Please see this related thread. I believe it will answer your question.
http://formidablepro.com/help-desk/buddypress-user-registration/
September 2, 2012 at 12:50 pm
Hello Stephanie,
Here's my attempt, pathetic as it may be. The following function is what sets the data for any field in the XProfile area in BuddyPress:
xprofile_set_field_data( $field, $user_id, $value);I put the following in my functions.php file, where "testing" is the name of the XProfile field that I'm targeting and I used the syntax for the other variables from the examples on your frm_create_entry post:
xprofile_set_field_data( 'testing', $_POST['item_meta'][241], $_POST['item_meta'][881]);Am I totally off base? You can stop shaking your head now... ;-)
September 3, 2012 at 7:34 am
Looks fine with a little glacé, but I haven't tested it.
September 3, 2012 at 7:35 am
That post I linked to says to just use the WP user meta though. Did you try that first?
September 3, 2012 at 8:12 am
Stephanie,
I would try that if I knew how. Is there something in the knowledge base that gets me close?
September 3, 2012 at 8:17 am
If you set up the form with the registration add-on, and use the same names BuddyPress is using, the info should match up.
October 11, 2012 at 9:54 am
Buddypress xprofile fields are not the same as wordpress meta data.
The registration form does not work for this.
October 11, 2012 at 11:20 am
@corelove,
So, have you found a way to accomplish this? If GF can do it, then there should be no technical reason why pushing data from a Formidable form to the XProfile table or pulling data from the XProfile table into the form couldn't be done. It would probably require a pretty good developer to make it seamless and intuitive, though. ;-)
October 11, 2012 at 12:12 pm
Hey Quint
My plan is to create all new fields for the buddypress system. I will edit the php files for the buddypress profile and buddypress profile edit page to use the forms and display rather than the x profile system.
October 11, 2012 at 7:13 pm
I am just stuck getting the information to display properly on each member profile page. It should be workable though. I personally think this is going to work way better than the buddypress fields.
October 12, 2012 at 10:40 am
This discussion has been continued here.
http://formidablepro.com/help-desk/php-code-in-shortcode/
October 13, 2012 at 11:05 am
@corelove,
I looked to the discussion per Stephanie's earlier comment and I see that you've arrived at a satisfactory solution. In it, I can see what would need to be changed in the profile.php file but you also said that you'll be modifying the edit.php file. Why? Couldn't you just change the Edit url to point to your FormidablePro form?
Plus, I'm curious to see what your result looks like... could you include a link?
Thanks for working on this.
Topic closed.