Plugin: BuddyPress Usernames Only

Join this plugin group to follow comments, support topics and reviews.

cubepoints plugin shows real name (4 posts)

Started 1 year, 12 months ago by: intimez

  • Profile picture of intimez intimez said 1 year, 12 months ago:

    @r-a-y

    I decided to give cubepoints a test run and upon activating it, the widget sidebar that list the cubepoints top users shows the real name. I know it’s not your plugin but you said to inform you if other plugin does not work. You can find the plugin here: http://wordpress.org/extend/plugins/cubepoints/

  • Profile picture of r-a-y r-a-y said 1 year, 12 months ago:

    You’re right, CubePoints isn’t my plugin. It would help if CubePoints provided a filter for this.

    However, you can hack it yourself by replacing the cp_topPointsDisplay() function in cubepoints.php with the following:

    http://pastebin.com/Ygq2sA2P

    I should note that I will only provide support for this plugin with BuddyPress plugins and not Wordpress ones.

  • Profile picture of Korhan Ekinci Korhan Ekinci said 1 year, 9 months ago:

    Hi,

    Thanks for the code @r-a-y

    I just wanted to link the top users to their profile page and hacked this line:

    $html .= ‘<a href="”>’.$data['display_name'].’ (‘.cp_formatPoints((int) $data['meta_value']).’)';

    ok, the link did not display. bp_member_permalink() in between href=”"

    but somehow the links don’t work. Is there something i am missing?

  • Profile picture of r-a-y r-a-y said 1 year, 9 months ago:

    @korhanekinci

    This question is not related to my plugin, but whatever ;)

    bp_member_permalink() will not work because it is not within the context of the member loop.

    Try something else like bp_core_get_user_domain( $user_id ).

    You need to pass the user’s ID though.
    You could try – bp_core_get_userid( $data['user_login'] )

    Though I’m not sure if $data['user_login'] exists, I’m just guessing.

    The id might already be available in the $data variable. Do a var_dump($data) or a print_r($data) to see.