Skip to:
Content
Pages
Categories
Search
Top
Bottom

cubepoints plugin shows real name

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    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.

    Avatar of Korhan Ekinci
    Korhan Ekinci
    Participant

    @korhanekinci

    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.’ (‘.cp_formatPoints((int) $data).’)
  • ‘;

    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?

Avatar of r-a-y
r-a-y
Moderator

@r-a-y

@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 )

Though I’m not sure if $data 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.

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

You must be logged in to reply to this topic.