• Resolved Dabrem

    (@bigsexy0413)


    Loving the plugin!!
    Having a little issue with pulling data from check boxes of xprofiles.

    Using this shortcode: Hair Color:

    [bpps_profile_field field=”Hair Color”]

    On the page it give this response:

    Hair Color: a:1:{i:0;s:8:”Brunette”;}

    Not sure what is causing this. Do you have a solution?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Dabrem

    (@bigsexy0413)

    Also, if you change the “base” tab name to anything other then “base” you will get a error:

    Examples:

    “Base” tab name: Hair Color: a:1:{i:0;s:8:”Brunette”;}
    “Dirty Deets” tab name: Hair Color: The tab name is invalid

    Using the same shortcode: [bpps_profile_field field=”Hair Color”]

    Plugin Author Venutius

    (@venutius)

    Try using option=”Two” instead of declaring the tab

    • This reply was modified 7 years, 6 months ago by Venutius.
    Thread Starter Dabrem

    (@bigsexy0413)

    Using option=”Two” worked but still displaying the info as:

    Hair Color: a:1:{i:0;s:8:”Brunette”;}

    Shortcode used:

    Hair Color: [bpps_profile_field field=”Hair Color” option=”Two”]

    Just to let you know. This shortcode is calling on an xprofile checkbox field

    Plugin Author Venutius

    (@venutius)

    That’s because you are saving an array, it’s only designed for strings. I’ll have to think about adding support for one dimensional arrays. Can you let me know what type of xprofile field you set that up with?

    Thread Starter Dabrem

    (@bigsexy0413)

    Its the “Checkboxes” Field

    Admin > Users > Profile Fields > Add New Field > Title (Hair Color) > Type: Checkboxes
    > Sort Order (Custom) > 7 Different options > Required > Visibility (everyone) > Autolink (enabled)

    Those are my exact settings for the profile field

    Plugin Author Venutius

    (@venutius)

    Hi there,

    I found a simple way to handle single option arrays in my code, there’s a new version which should work for you. Please update.

    Thread Starter Dabrem

    (@bigsexy0413)

    Perfect! Tested and everything works now 🙂 great job!!

    Thank you

    Plugin Author Venutius

    (@venutius)

    That’s great!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Checkbox Error’ is closed to new replies.