• Hello,

    the plugin works smoothly with most field types (text, numbers, radio buttons) but the “checkboxes” (multi-choice) fields are always empty in the CSV upon export.

    Perhaps it has to do with the CSV fields not being encased in quotes, or with the separator in the CSV? (In the database, the checkbox field values are stored as a string such as “value1, value2, value5”.)

    BTW this is Buddyboss, not Buddypress. No idea whether it makes any difference.

    Thanks a lot in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dewfrost

    (@dewfrost)

    Sorry, correction: it’s JSON. Example:

    a:1:{i:0;s:8:"value1";i:2;s:11:"value2";}

    Thread Starter dewfrost

    (@dewfrost)

    Solved it myself after fiddling about a little.

    It was enough to change line 184 from

    $field_data = xprofile_get_field_data( $field_id, $user->ID );

    to

    $field_data = xprofile_get_field_data( $field_id, $user->ID, 'comma' );

    (The default for the third parameter is ‘array’.)

    Now all fields are exported correctly.

    Hope it helps!

    @dewfrost Where do you live so I can send you a beer? This really helped me, I was struggling with literally the EXACT same issue with BuddyBoss. The checkbox profile data was coming up empty on the CSV. This fixed it. THANK YOU SO MUCH.

    Thread Starter dewfrost

    (@dewfrost)

    @azureconcept happy it helped!

    Thanks for the beer, appreciated ??

    @dewfrost on a side note did you find issues with the position output coming as ID rather than the actual name?

    Thread Starter dewfrost

    (@dewfrost)

    @azureconcept nope, never had such issues.

    Plugin Author shawfactor

    (@shawfactor)

    Guys,

    Pete Shaw here plugin dev.

    I′m looking into the first issue. I′ll probably add the change suggested to the plugin. It looks logical but I′m just testing it

    The position issue is separate and specific to buddyboss.

    Pete

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Multiple checkboxes empty on exprt’ is closed to new replies.