Avatar not appearing on every page

Hello,

On my phpVMS install I have uploaded and selected my avatar in “My Profile” and on some pages on my CrewCenter site it works like this http://prntscr.com/gufodq, but on others it just shows the default no avatar picture, like this, http://prntscr.com/gufol4 Why is this?

Thanks,

Harry

check in the template  what it is the source of the images 

View this topic: 

//forum.phpvms.net/applications/core/interface/index.html

change this:

\<img src="\<?php echo PilotData::getPilotAvatar($pilotcode); ?\>" class="img-circle" alt="User Image"\>

to this:

\<?php $pilotcode = PilotData::getPilotCode(Auth::$userinfo-\>code, Auth::$userinfo-\>pilotid); ?\> \<img src="\<?php echo PilotData::getPilotAvatar($pilotcode); ?\>" class="img-circle" alt="User Image"\>

3 hours ago, CarlosEduardo2409 said:

https://forum.phpvms.net/t/topic/12001

That fixed it, Thanks!

1 Like