WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] meta fields? (6 posts)

  1. ilder2011
    Member
    Posted 6 months ago #

    Hi,

    I was wondering if there are any meta fields associated with this plugin? E.g dpa_user_achievements_index

    Thanks,

    Tom.

    http://wordpress.org/plugins/achievements/

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 6 months ago #

    Hi Tom,

    Not sure exactly what you mean by meta fields. Do you mean something like data stored in Post Meta, or User Meta? Or something else? :)

  3. ilder2011
    Member
    Posted 6 months ago #

    Hi Paul, cheers for the quick response.

    I'm assuming it's user meta. Basically, I'm wanting to add the user achievements information to their profile page. I've downloaded a plugin that allows me to add custom fields (it's a premium plugin) and it's asking for meta fields, I can add custom ones. There are already a couple from your plugin in the list that it populates itself, these are:

    closedpostboxes_achievement
    metaboxhidden_achievement

    Thanks,

    Tom.

  4. ilder2011
    Member
    Posted 6 months ago #

    Just a quick update, it's definitely user_meta that is required.

    Thanks,

    Tom.

  5. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 6 months ago #

    As of v3.4.1:

    // The total of how many achievements that this user has unlocked (int)
    _dpa_unlocked_count

    // The user's points total (int)
    _dpa_points

    // User's pending notifications (array)
    _dpa_notifications

    // The ID of the last achievement this user unlocked (int)
    _dpa_last_unlocked

    I strongly suggest you don't show _dpa_notifications or _dpa_last_unlocked as those are internal. If you show the other two, make them read-only to avoid users' cheating. :)

  6. ilder2011
    Member
    Posted 6 months ago #

    You, Sir, are a star! I'll try those later and let you know how i get on.

    Cheers,

    Tom.

Reply

You must log in to post.

About this Plugin

About this Topic