• It will be nice to have total amount of badges under user avatar in topics.
    And a link in the number that goes directly to user profile /user/achievements/
    So people could see badges for each other.

    I already have this one for points:

    User Points: <?php
    global $bp;
    echo badgeos_get_users_points( $bp->displayed_user->id );

    But need for number of badges earned. Any idea? ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • jomo

    (@jonathanmoorebcsorg)

    just use badgeos_get_user_achievements($atts)
    .. since you can get an array of all the achievements (or all achievements of a specific type), then you can look at the size of the array…

    and to list on their profile page use:
    echo badgeos_achievements_list_shortcode( $atts );

    Thread Starter Divvy

    (@divvy)

    Thank you @jonathanmoorebcsorg, for trying to help me.

    But I was looking for total of badges only.

    jomo

    (@jonathanmoorebcsorg)

    the total number of badges is the size of the array of badges returned from badgeos_get_user_achievements

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Total badges’ is closed to new replies.