Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author J.D. Grimes

    (@jdgrimes)

    You can use the [wordpoints_points] shortcode to display the points of a user.

    To award or subtract points for a comment on a post, you can use the Comment points hook.

    How you use the points is up to you, as the site admin. You could provide real or virtual prizes to your users when they earn points. But WordPoints just keeps track of the points for you. It doesn’t provide any prizes. One thing that you can do is use the Ranks component to award each of your users a certain rank based on how many points they have earned. I am planning to add a component that will let you award virtual badges to your users in the future. If you have any suggestions for this, I would like to hear them.

    You can learn more about WordPoints by reading the User Guide on the plugin website.

    Thread Starter faisal123

    (@faisal123)

    user rank s is not shown

    Plugin Author J.D. Grimes

    (@jdgrimes)

    user rank s is not shown

    Where?

    Thread Starter faisal123

    (@faisal123)

    i use [wordpoints_rank] this code into my page /

    Plugin Author J.D. Grimes

    (@jdgrimes)

    The [wordpoints_user_rank] shortcode is the one that displays the user rank.

    Thread Starter faisal123

    (@faisal123)

    its doesnt show rank in profile page

    Plugin Author J.D. Grimes

    (@jdgrimes)

    What plugin are you using to display a profile page for a user?

    Thread Starter faisal123

    (@faisal123)

    user profile made easy. i use <?php echo do_shortcode('[wordpoints_user_rank user_id="14904"]'); ?> this code but it only show rank text not rank number

    Plugin Author J.D. Grimes

    (@jdgrimes)

    It does not display the rank number. If you want to show the rank number, you can add the number to the rank text.

    Hi
    I’ve not found a solution to this problem yet.
    I am using ultimate member plugin and all I want to do is display the points rank and points total of each member in their profile page.

    How can I do that please with php and/or shortcode.
    thanks
    TN

    Plugin Author J.D. Grimes

    (@jdgrimes)

    Hi Trevor,

    I plan to release a module integrating with the Ultimate Member plugin soon. I do not know exactly how to get the ID of the user whose profile is being displayed. But if you can find out how to do that, you could display the points and rank of the user like this:

    echo 'Points: ';
    wordpoints_display_points( $user_id, 'points', 'ultimate-member-profile' );
    echo ' Rank: ' . wordpoints_get_formatted_user_rank( $user_id, 'points_type-points', 'ultimate-member-profile' );

    This assumes that $user_id holds the ID of the user the profile is being displayed for, and that the slug of your points type is points.

    Plugin Author J.D. Grimes

    (@jdgrimes)

    You can get the user ID like this: $user_id = um_profile_id();. You might also find this documentation helpful.

    Thanks J.D

    That worked a treat. Here’s the code which I have inserted into the UM profle page:

    $user_id = um_profile_id();
    
    My Points: [wordpoints_points user_id="<?php echo $user_id;?>"] |?Rank: [wordpoints_user_rank user_id="<?php echo $user_id;?>"]

    Thanks again for the help and quick reply.
    HHAP

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to show point in a author page’ is closed to new replies.