Minecraft Avatars

Minecraft Avatars 1.0.0

No permission to download

CMTV

Well-known member
CMTV submitted a new resource:

Minecraft Avatars - Use your Minecraft skin head as avatar

View attachment 159904

This addon allow users to use ther Minecraft skin heads as avatars.

Features
  • Using Minecraft skin head as avatar
  • Showing username and skin head in "About" member section
  • Minecraft avatar is reloading every time when user is logging in. It also can be reloaded directly via special button in account details
  • Users can get back to their old avatars at any time
  • Resized avatars look accurate. Default smoothing algorithms...

Read more about this resource...
 
Also add-on doesn't seem to work as expected. I enter Notch in the minecraft username field and it just says that there's no such a name.

There is no official Minecraft users with given username!
 
Also, that's probably a good idea to do a regex on your $html replacement, as it will remove the link to user profile. I am referring to this line:
PHP:
$html = '<img src="' . MinecraftAvatarsHelper::getAvatarUrl($user, $size) . '" class="avatar minecraft-avatar minecraft-head-thumb">';
And the avatar returned string is much more complex than that. It can contain or not contain a link to user profile. It also can not contain an image and of all of that has to be taken into consideration. Basically, it's best to just replace the whole tag with a [class^=avatar-u].

Second thing is that the whole approach can be improved. You can extend \Pub\Controller\Account\actionAvatar() and do a template modification in account_avatar template, so that you can change avatar to minecraft one right in the avatar edit window.
 
Back
Top Bottom