Jump to content

Recommended Posts

Posted

I found a way to put the avatar on the badge.

in pilotdata.class.php find this

[/size]
imagepng($img, SITE_ROOT.SIGNATURE_PATH.'/'.$pilotcode.'.png', 1);

and paste before

if(file_exists(SITE_ROOT.'/lib/avatars/'.$pilotcode.'.png')){
$im6 = imagecreatefrompng(SITE_ROOT.'/lib/avatars/'.$pilotcode.'.png');
}else{
$im6 = imagecreatefrompng(SITE_ROOT.'/lib/images/noavatar.png');
}
imagecopymerge($img, $im6, 311, 4, 0, 0, 80, 80, 100);

post-36513-0-84496400-1397937925_thumb.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...