WordPress.org

Forums

amr users
[resolved] Array on Certain Field (5 posts)

  1. X-Raym
    Member
    Posted 9 months ago #

    Hi !

    I tried to add several properties of other plugin in a user list, and I just get "Array" (and not what I wanted to see).

    What is the generic way to solve that kind of problem ?

    Thanks !
    :)

    https://wordpress.org/plugins/amr-users/

  2. anmari
    Member
    Plugin Author

    Posted 9 months ago #

    If you provided more info then one could help more.

    it sounds like other plugin is not using wordpress meta well - else data would show.

    users plugin does try to dig down and into arrays to extract and make the data as meaningful as possible. It sounds like it is not succeeding here or perhaps there is something odd about how other plugin stores data.

    1) what is other plugin ?
    2) did you run 'find fields' with existing sample data in DB?. Were fields found ? what is special about fields ?

  3. X-Raym
    Member
    Posted 9 months ago #

    Oh sure !

    I used two plugin, LearnDash and BadgeOS.

    LearnDash is a paid e-learning plugin.
    BadgeOS is a free open source award system plugin, with a very complete API.
    Both are totally awesome and can work together : the user can do a quiz from LearnDash, and be reward by a badge if he succeed.
    They have a great support if you want to contact them (I already spoke to your plugin to the LearnDash developper and he was quite interested).

    So, what I'm trying to do is to display withn the user list the badges images of the user (and if possible, this img are link to the individual badge pages) and the course progression information from learndash.

    I think I that the strings in amr users :

    _badgeos_achievements
    _sfwd-course_progress

    But the first display "Array" and the other "Array, Array, Array, Array", as you cans see on this screenshot.

    Let me know if I can provide you any other useful information.

    Thanks for your support :)

  4. anmari
    Member
    Plugin Author

    Posted 9 months ago #

    Hi x-raym,

    it sounds like these fields are going to need a custom formatting routine - ie not a generic solution.

    You can either write these yourself, see
    http://wpusersplugin.com/2645/format-any-field-any-way-you-wish/

    or if you send me a sql dump of those usermeta fields, and a description of how you expect those fields to be formatted, I'll might be able to do a add-on, like these:
    http://wpusersplugin.com/related-plugins/amr-user-plugin-add-ons/

  5. X-Raym
    Member
    Posted 9 months ago #

    Thank you very much !

    I will try to do somethings by myself, and go back to you if I need help :)

    thanks for the resources !

    :)

Reply

You must log in to post.

About this Plugin

  • amr users
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic