mariorgrossi Posted April 19, 2014 Report Posted April 19, 2014 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); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.