WordPress.org

Ready to get started?Download WordPress

Forums

Achievements for WordPress
[resolved] Display Badges in BP Member List? (3 posts)

  1. ojbravo
    Member
    Posted 1 year ago #

    Hey Paul -

    I'm working on a site for my class and I'm trying to display a buddypress (v1.7) user's achievement badges in the members list, but with no luck. I've tried adding the shortcode <?php echo do_shortcode('[dpa-user-achievements-index]'); ?> to the members-loop.php, but I keep getting a "No achievements were found" even though the members do have badges assigned to them.

    Here is the site: http://ptecwebdev.com/students/

    Can you please give me a point in the right direction as to what shortcode / code I should be using here? I feel like I'm right close, but I'm still missing something.

    This is a great plugin and I thank you greatly for all of your (tons and tons) of hard work.

    Godspeed,
    Omar

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

  2. Paul Gibbs
    BuddyPress Lead Developer
    Plugin Author

    Posted 1 year ago #

    Hi Omar,

    The issue is that Achievements doesn't grab the current BuddyPress user ID from the BuddyPress members loop. This isn't a bug. :)

    You're going to have to tap some code in and develop a solution. I'd suggest copying the contents of the content-author-achievement.php into the BuddyPress template, and start by modifying the call to dpa_has_progress().

    You'll need to pass the BuddyPress current member user ID to it. i.e.

    dpa_has_progress( array('author' => bp_get_member_user_id() ) )

    Maybe :)

  3. ojbravo
    Member
    Posted 1 year ago #

    Paul - This is a great point in the right direction! Thanks for the help and keep up the great work.

    Godspeed,
    Omar

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.