Skip to:

Opened 5 years ago

Last modified 5 years ago

#8074 new enhancement

User data exports should include information about xprofile field group

Reported by: buubiye's profile buubiye Owned by:
Milestone: Awaiting Contributions Priority: normal
Severity: normal Version: 4.0.0
Component: Extended Profile Keywords: needs-patch


I have made a website using buddypress and i used the feature "extended profile fields". But i have a problem. When i export the user data, the built-in buddypress "export script" in (buddypress/bp-xprofile/bp-xprofile-functions.php line: 1340 and below ) only exports extended fields without their group-names, every profile fields has its own group name. The images will explain it all. So how can i export tee data from wp_bp_xprofile_groups (each group's name and fields). And then export it to the export page. I will appreciate any help asap.

1) This image shows the tables that i want to be export. (buddypress only exports the fields of those tables not thier group-names).
<img src="" alt="table that need to be extracted" />
2) As you can see the fields of my extended profile data has group-name like "caafimaadka", and they don't get exported
<img src="" alt="Group names that are forgotten by the export script" />
3) As you can see in the below image the script that exports data didn't export the fields group-names.
<img src="" alt="how the export page currently looks like" />

Buddypress version: 4.2.0
wordpress version: 5.1.1
PHP version: 7.3.2

As simple as it is. I couldn't solve it. So please help or advice.

Attachments (3)

bandicam 2019-03-24 08-56-01-619.jpg (290.8 KB) - added by buubiye 5 years ago.
bandicam 2019-03-21 11-55-37-732.jpg (145.7 KB) - added by buubiye 5 years ago.
bandicam 2019-03-24 08-56-42-383.jpg (161.8 KB) - added by buubiye 5 years ago.

Download all attachments as: .zip

Change History (6)

#1 @boonebgorges
5 years ago

  • Component changed from Core to Extended Profile
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Awaiting Contributions
  • Priority changed from highest to normal
  • Severity changed from major to normal
  • Summary changed from How can i export extended user data groups-names? to User data exports should include information about xprofile field group
  • Type changed from defect (bug) to enhancement
  • Version set to 4.0.0

Hi @buubiye - Thanks for opening the ticket.

You're correct that the user data exporter, introduced in BP 4.0, doesn't include field-group information. This may be an area for future improvement - xprofile data could be organized by field-group in the data export.

Note that the user data export is meant to provide the end user with information about what data the BP site has about them. It's not intended to be a full-fidelity export. So I don't consider the missing data to be a "bug", but instead an unimplemented feature.

I'm changing the title of the ticket to better describe the feature that's being requested.

#2 @buubiye
5 years ago

Hi @boonebgorges

Thanks for the reply. Can you please give me an idea on how i can achieve this, so that i can push it on your github repo.

#3 @boonebgorges
5 years ago

Sure. You can clone our official Git repo git:// or our Github mirror Then, generate a diff git diff > /path/to/patch.diff and upload to this ticket.

Note: See TracTickets for help on using tickets.