Jump to content

Recommended Posts

Posted

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.

Posted

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.

  • Like 1

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...