We're all getting EvilSeph skin instead of ours. The log doesn't report any error. Tested on 2 different drupal installations. Can you finish your module please ?
Thanks

Comments

kulvik’s picture

I got the same problem. Just had a look at the code and it's not just a simple bug, the functionality just isn't finished :) I'll see if I can do something about the minecraft code and post the necessary changes here.

-Thomas

kulvik’s picture

So the problem was that the code where you tell the module what field it should get the minecraft username from isn't finished and the url for fetching the image is hard coded to EvilSeph. Like this:

/**
 * Implements hook_userpickit_picture().
 */
function userpickit_minecraft_userpickit_picture($picture_type, $account) {
  return array(
    'uri' => 'http://minecraft.net/skin/EvilSeph.png',
    'message' => t('Face from your Minecraft player skin.'),
  );
}

I had to get this working asap so I just "hacked" this to make it work with one of my custom user profile fields.

So basically replace this:
'uri' => 'http://minecraft.net/skin/EvilSeph.png',

With (in my case) this:
'uri' => 'http://minecraft.net/skin/'.$account->field_minecraft_brukernavn['und'][0]['value'].'.png',

You will need to adjust the field name to get the correct value. This is ugly code of course, but i'll have to do it properly later, finish the admin-settings form and submit a patch. If the original author don't get to it before I can ;)

--Thomas

alexpsfti’s picture

Thank you, Thomas, I can't wait for your patch now :p

alexpsfti’s picture

Title: Minecraft skin not showing up » Minecraft skin not showing up, incomplete module
Category: Bug report » Feature request
Priority: Normal » Critical
Issue summary: View changes
Status: Active » Needs work