WordPress.org

Ready to get started?Download WordPress

Forums

Secure Invites
[resolved] Can't get those points to show in user profile (2 posts)

  1. candy2012
    Member
    Posted 2 years ago #

    What is teh exact function I have to inser instead of that [user_ID] in order to be able to pull & show the current user's points in his profile?????

    get_usermeta( [user ID], "secure_invite_points" )

    Tried this:
    <?php get_usermeta( get_current_user_id(), "secure_invite_points" ) ?>

    than this:

    <?php get_usermeta( $user->ID, "secure_invite_points" ) ?>

    than this:

    <?php get_usermeta( bp_loggedin_user_id(), "secure_invite_points" ) ?>

    and also this:

    <?php get_usermeta( bp_core_get_userid (), "secure_invite_points" ) ?>

    NONE of the above works!

    I also have buddypress installed.

    Which is the exact function to use in order to dynamically get the points of the current logged in user !?!?!

    Thanks!

    http://wordpress.org/extend/plugins/wordpress-mu-secure-invites/

  2. candy2012
    Member
    Posted 2 years ago #

    OK, took a while, but that's how you need to integrate it:
    ´
    <?php
    global $current_user;
    $current_user = wp_get_current_user();
    $user_points = get_user_meta( $current_user->ID,'secure_invite_points', true );
    echo '<p>Your points: ' . $user_points . '
    </p>';
    ?>
    ´

    PS: developers, you give faulty instructions about how to integrate this!
    The get_usermeta function you tell us to use is LONG DEPRECATED!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic