Jump to content

Displaying Hub's


Daniel

Recommended Posts

hey guys,

I wonder if someone could help me out with some code.

Ok what I would like is if they are in a hub. e.g. EGLL it will display an image. or KLAX it would display another image. etc. Instead of text.

You will see if you have a look at.

http://www.pashairvirtual.co.uk/index.php/Listing

Instead of the text.

at the moment i am using this

<td><center><strong><?php echo $pilot->hub?></strong></td></center></td>

thanks alot

Daniel

Link to comment
Share on other sites

  • Administrators

Name your image the same as your hub icao would be easiest.

<img src="<?php echo SITE_URL; ?>/path to your images/<?php echo $pilot->hub; ?>.jpg" alt="hub" />

So if a pilot is a member of the KJFK hub it will display the image named KJFK.jpg

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