Buddypress Integration Add On Registration Issue

This topic contains 13 reply and 3 voices, and was last updated by Tareq Hasan 10 years, 11 months ago
Viewing 13 Posts - 1 through 13 (of 13 total)
Author Posts
November 16, 2013 at 6:39 am 10153
Tareq Hasan I am using Buddypress Integration Add On with WPUF Pro to build a custom registration form. The data that users enter on my custom form is saved and available in the user edit profile fields but not in member profile view fields. I am also using data from member fields to match members using a dating theme and because the user data is not saving correctly the matching doesn't work either. Why would the registration form data only be passed to the member profile edit fields but is not saved and visible to other members in the view profile tab. I posted this question a couple of weeks ago and thought it was not an issue but it turns out this is a problem for me. Thanks!
November 16, 2013 at 11:30 pm 10181
hughs hughs

I have done more testing on this and am getting some strange results. When a new user creates a new profile the profile field data that is saved seems to be getting created in a separate db. Profile field data that should be visible in the Profile tab is not. When the user goes back to update their profile and then save it the field data changes and is then availalbe in the view profile tab.
The same thing happens for my dating matching function. When users create new profiles their data works with users that have also created new profiles. But as soon as one of them updates their profile the matching function no longer works. Only users that have updated their profiles can be matched against other users that have also updated their profiles.
So it appears that the registration form using BP Integration Add On is somehow saving duplicate data or using a separate db?
Any solution for this?

November 17, 2013 at 12:51 am 10182
hughs hughs

A couple of questions to try and solve this:
1. If I am using WPUF Buddypress Integration Add On to create a custom Registration form for users to register, do I have to make users update their profile from the Buddypress Integration Add On Edit Profile page? When users now update using the Buddypress Edit Profile tab on their profile it is creating the above conflict.
2. Do the meta tags in the BP Integration Add On have to exactly match the BP user registration fields? And if so how to I find out what the BP fields are called?

November 17, 2013 at 10:41 am 10194
Mahi Mahi

1. You don’t have to allow users to edit their profile. It doesn’t matter users registering by using WPUF form or default BuddyPress form if you insert same values with same meta_keys then all should be same.
But, yes, you can allow users to edit their profile by using WPUF form edit options

2. yes, they have to be same. I think it saves under same _usermeta. Check Your Database.

November 18, 2013 at 3:13 am 10215
hughs hughs

Hi Mahi,
This simply isn’t working. I think the problem with BP Integration Add On is that it is not really integrating with Buddypress. The plugin uses WP verification when the user clicks the Register button and the Meta Key fields don’t match correctly with Buddypress fields. The only fields that are working are the WordPress fields. All Buddypress fields are not integrating. The data is passed through to Buddypress but not saved to the database.

I would like some serious help with this or I would like to ask for my money back.
Thanks

November 18, 2013 at 4:02 am 10218
Mahi Mahi

Its been long time you are struggling with this! I can assure it works perfectly and tight.
Its been tested with many sites. Perhaps you are missing something or doing something wrong.

Please share your login details as private reply. I will setup 2/3 fields for you and you will see.

November 18, 2013 at 4:25 am 10219
hughs hughs This reply has been marked as private.
November 18, 2013 at 9:57 am 10221
hughs hughs This reply has been marked as private.
November 18, 2013 at 3:13 pm 10227
Mahi Mahi

Please allow me few times. I will update you once i finish testing.

November 18, 2013 at 8:31 pm 10235
hughs hughs

OK thanks.
I did manage to access the database using PHPMyAdmin and see that the Meta Key refers to two values: default_visibility and allow_custom_visibility. Perhaps these Meta Key values are what was missing?
Thanks for taking a look.

November 19, 2013 at 9:04 am 10254
Mahi Mahi

Hello hughs,

You are right! Seems like it has some “Visibility” issue. Please stay with me. I will dig further and will update you soon.

November 19, 2013 at 10:03 am 10256
hughs hughs

OK thanks. Do you still need to use my site for testing. Because I usually have it in maintenance mode and would prefer to not have it public while I am building it. Just let me know.
Also, as I mentioned the Meta Key controls the visibility of the site along with the Meta Values, so perhaps this is the issue. I would just need to know what to set for these values.
Thanks
Hugh

December 11, 2013 at 10:48 am 13592
hughs hughs

Hello Mahi,
Did you ever make any progress with this problem. I have managed to get my registration form to work except for the date field. I managed to get the date to save to Buddypress and display in the profile but it doesn’t work in the profile search when a user searches for members by age range. So it seems similar to the visibility issue I was having before.
If the user goes into his/her profile and resaves the information then it works. Can you explain why information is showing up in the profile but doesn’t seem to be saved to the databases? Any function I can run to resave user profile information?
Thanks for your help!
Hugh

December 11, 2013 at 4:11 pm 13611
Tareq Hasan Tareq Hasan

I wasn’t following the thread and might miss something.

Here’s how it works:
1. In BuddyPress, when you create profile fields, they are saved in wp_bp_xprofile_fields table.

2. BP doesn’t store the users data in the standard wp_usermeta table, instead they saves it to wp_bp_xprofile_data table.

3. As WPUF saves users profile data to standard wp_usermeta table, the BP integration plugin of WPUF maps those data between these two table.

4. When you update or register via WPUF, it saves the data to wp_usermeta table as always. The integration plugin copies these data over to wp_bp_xprofile_fields table to stay in sync with BP. But when you update the profile in BP, it doesn’t copy back to WPUF.

5. About the visibility problem: BP saves visibility informations of each user fields to a user meta bp_xprofile_visibility_levels, which is stored as standard user meta in wp_usermeta table. But WPUF doesn’t do anything with it. If you set the “Let members change this field’s visibility” in BP, it should show the data in profile.

As in WPUF, there isn’t any visibility option, integrating those various visibility option in WPUF will not be that easy. In that case, in the integration add-on, I can set all the visibility to public.

Viewing 13 Posts - 1 through 13 (of 13 total)