Jump to content

Pilot Country Flags


simpilot

Recommended Posts

  • Administrators

Ok - I'm Stumped... ???

I have added the pilot country flags to show next to the pilots name in the recent pilots list. It works fine on most of the pages of the site but on some pages the image does not show, just a place holder. Upon further investigation I have found that on the pages it does not show it has extra lines in the url..

example -

on the front page - shows

http://www.simpilotgroup.com/newenglandair/lib/images/countries/US.png'>http://www.simpilotgroup.com/newenglandair/lib/images/countries/US.png

on the login page - no show

http://www.simpilotgroup.com/newenglandair/newenglandair/lib/images/countries/US.png

The sidebar is a template so the same code is being used on all the pages.... Is it a module issue?

Also, it always produces the image name in caps which will not show the image, I have made a duplicate of the flag using caps and it shows fine but I do not want to have to create a duplicate for all the flags. Is there a way around this?

Link to comment
Share on other sites

  • Administrators

This what is being used -

<a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname?></a>&nbsp&nbsp<img src="<?php echo SITE_URL?>/lib/images/countries/<?php echo $pilot->location?>.png"><br />

It is in a template for the left sidebar that is called up the same way in all the pages.

Link to comment
Share on other sites

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