flyalaska Posted August 10, 2011 Report Share Posted August 10, 2011 Can someone show me how to set a default avatar? For people who never update their avatar. Quote Link to comment Share on other sites More sharing options...
Jeff Posted August 10, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
flyalaska Posted August 10, 2011 Author Report Share 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 Link to comment Share on other sites More sharing options...
James142 Posted August 10, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
flyalaska Posted August 10, 2011 Author Report Share Posted August 10, 2011 TY That worked! Quote Link to comment Share on other sites More sharing options...
James142 Posted August 10, 2011 Report Share Posted August 10, 2011 TY That worked! Cool Quote Link to comment Share on other sites More sharing options...
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.