HCStrike Posted October 7, 2017 Report 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
Members Vangelis Posted October 7, 2017 Members Report Posted October 7, 2017 check in the template what it is the source of the images Quote
CarlosEduardo2409 Posted October 7, 2017 Report 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
HCStrike Posted October 7, 2017 Author Report 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
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.