flyalaska Posted August 10, 2011 Report Posted August 10, 2011 Can someone show me how to set a default avatar? For people who never update their avatar. Quote
Jeff Posted August 10, 2011 Report Posted August 10, 2011 You can change the default Avatar by editing this file: public_html/lib/images/noavatar.png This image will be the pilots' default avatar until they change it in their Edit Profile page. Quote
flyalaska Posted August 10, 2011 Author Report Posted August 10, 2011 Thats what I thought. I have alot of people with no avatars, just blank. The no avatar image is in the above location. Quote
James142 Posted August 10, 2011 Report Posted August 10, 2011 In the pilot_public_profile.tpl file you can change this: <?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'No avatar'; } else { echo '<img src="'.SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png'.'" alt="No Avatar" /> '; } ?> to: <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" /> That will get their avatar even when they are using the default one. 1 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.