[resolved] Showing avatars with scoreboard (7 posts)

  1. dfranz1
    Posted 5 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
    Posted 5 years ago #

    Nevermind, I figured it out.

  3. Tosh
    Posted 5 years ago #

    Can you share how you did this?

  4. Viruthagiri
    Posted 5 years ago #

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

  5. davidbishop
    Posted 4 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
    Posted 4 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!


  7. hexdotms
    Posted 4 years ago #

    Sorry had to completely reinstall my site due to issues switching to Genesis, and the permalink has changed:

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • CubePoints
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic