WordPress.org

Ready to get started?Download WordPress

Forums

CubePoints
[resolved] Showing avatars with scoreboard (7 posts)

  1. dfranz1
    Member
    Posted 3 years ago #

    Hi guys,
    I'm asking here because the Cubepoints forum isn't sending out emails at the moment. Basically what I want to do is list the top x amount of players based on points. And next to their name I would like to add their avatar. I have a base a level of PHP knowledge but I can't figure this one out

    If anyone has any idea on this it would be appreciated.

  2. dfranz1
    Member
    Posted 3 years ago #

    Nevermind, I figured it out.

  3. Tosh
    Member
    Posted 3 years ago #

    Can you share how you did this?

  4. Viruthagiri
    Member
    Posted 3 years ago #

    Hey i would like to know. Can you tell us?

  5. davidbishop
    Member
    Posted 2 years ago #

    I know this is old but I thought I'd just post the answer as I've found it a nightmare findings stuff out about this very useful (and frustrating) plugin, so would like to get as many answer out there as possible!

    in the cp_hook.php within the plugins folder put this code under the fucntion 'cp_displayUserInfo($string,$y,$place)':

    $y['avatar'] = get_avatar($user->ID);
    $string = str_replace('%avatar%', $y['avatar'], $string);

    then in the top user widget in text use %avatar% and should work!

  6. hexdotms
    Member
    Posted 2 years ago #

    Notes for 20111223 Release:

    Added Widget %avatar% support based on Avatar Hook by davidbishop

    Includes new default widget strings and support for specifying avatar size in the widget!

    http://hex.xxx/archive/2011/12/22/hex/internet/web/wordpress-web/cubepoints-custom-pointpoints-name-mod-by-hex

  7. hexdotms
    Member
    Posted 2 years ago #

    Sorry had to completely reinstall my site due to issues switching to Genesis, and the permalink has changed:
    http://www.hex.xxx/2011/12/cubepoints-custom-pointpoints-name-mod-by-hex/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags