Support » Plugin: Secure Invites » [Plugin: Secure Invites] Can't get those points to show in user profile

  • Resolved candy2012

    (@candy2012)


    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/

Viewing 1 replies (of 1 total)
  • 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!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Secure Invites] Can't get those points to show in user profile’ is closed to new replies.