• Resolved Christian Freeman (codelion)

    (@takinglife2themax)


    Hi,

    I love this plugin. Great job.

    I noticed that you added the ability to display BuddyPress XProfile Fields in the Author Avatar Widget. Is there a shortcode argument that I can use to do the same using the shortcode?

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Paul Bearne

    (@pbearne)

    Hi

    Yes it all works in the shortcode. Have you tried to use the tinyMCE wizard to create the shortcode?

    From memory you just need to add the name of the x_profile field to the disable options

    Paul

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Hi Paul,

    What do you mean by disable options? I don’t see anything related to xprofile fields on the shortcode creation button in the TinyMCE. Is there an argument that I can use to add the xprofile field name to the shortcode manually?

    Plugin Author Paul Bearne

    (@pbearne)

    I will look

    I need this options too and don’t see any option for this in the tinyMCE wizard.

    Plugin Author Paul Bearne

    (@pbearne)

    Hi Guys

    You found a bug the JS for the popup got broken by an update to the WP core TinyMCE code.

    I have fixed it. Would you guys install it and do a quick test for me as don’t have buddypress installed?

    I am assuming that once the popup works the option that you are seeing in the widget will all work in the popup

    https://github.com/pbearne/wp-author-avatars/archive/master.zip

    Many Thanks for you help

    Paul

    On my side it works now!

    Plugin Author Paul Bearne

    (@pbearne)

    Thanks it is always good to testing on other sites

    I will push to wp.org in a bit

    Paul

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Thanks for the quick solution Paul!

    I’m not able to add those xProfile fields to the Authors List. However, I noticed that it doesn’t display the field data for XProfile fields that are in a multi-check/list format, with multiple values. It only outputs “Array”.

    Do you think that you could update this to output a comma separated list of values for these type of fields?

    Thanks again, and nice work my friend!

    Plugin Author Paul Bearne

    (@pbearne)

    Have a look at this post

    https://authoravatars.wordpress.com/2014/11/05/support-for-buddypress-xprofiles/

    I will look at exploding array and object if we get them

    Paul

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Thanks Paul,

    I tried to adapt the filter you provided to swapping out the array value to a comma separated list, but it’s just not working for replacing the value within the html variable.

    Thanks, that would be awesome if you could implode arrays into a string of comma separated values.

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Hey Paul,

    I’m just checking back in with you on this. Do you have any ideas on how I can get convert the Array output into a comma separated string of values? Do I need to edit core files for this? And if so, which ones?

    Thanks, and keep up the good work!

    Plugin Author Paul Bearne

    (@pbearne)

    Just push an update with this fix

    Thread Starter Christian Freeman (codelion)

    (@takinglife2themax)

    Thanks a ton Paul!

    I updated to the latest version and the comma separated values are working smoothly. Now, I just need to use the filter you showed me to add the field labels before the field values.

    Thanks again!

    rinkul123

    (@rinkul123)

    Umm I am having that Array output issue. But i don’t see the update you have pushed yesterday. Am i missing something ?

    • This reply was modified 7 years ago by rinkul123.
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Showing BP XProfile Fields via Shortcode’ is closed to new replies.