HCStrike Posted October 7, 2017 Report Share Posted October 7, 2017 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 Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted October 7, 2017 Members Report Share Posted October 7, 2017 check in the template what it is the source of the images Quote Link to comment Share on other sites More sharing options...
CarlosEduardo2409 Posted October 7, 2017 Report Share Posted October 7, 2017 (edited) View this topic: 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"> Edited October 7, 2017 by CarlosEduardo2409 Quote Link to comment Share on other sites More sharing options...
HCStrike Posted October 7, 2017 Author Report Share Posted October 7, 2017 3 hours ago, CarlosEduardo2409 said: View this topic: 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"> That fixed it, Thanks! 1 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.