orpheas Posted November 13, 2011 Report Share Posted November 13, 2011 Hello guy if it possible can someone my me a Flight Board , i tryed making one big fail so if you can its would be great many thx orpheas 1 Quote Link to comment Share on other sites More sharing options...
Jeff Posted November 14, 2011 Report Share Posted November 14, 2011 Can you supply a link to your site, and I might be able to see if you have enough room to place one there. If you do, I can create one for you. Quote Link to comment Share on other sites More sharing options...
jauger Posted November 14, 2011 Report Share Posted November 14, 2011 hello can someone help me setup a VA and all that cool stuff Quote Link to comment Share on other sites More sharing options...
orpheas Posted November 14, 2011 Author Report Share Posted November 14, 2011 Can you supply a link to your site, and I might be able to see if you have enough room to place one there. If you do, I can create one for you. http://aegeanvirtual.co.cc/ We have a free one but we want a better you see Quote Link to comment Share on other sites More sharing options...
Jeff Posted November 14, 2011 Report Share Posted November 14, 2011 We'll start from here.1. In your skin folder, open the frontpage_main.tpl and place the code (located below) where you want the board to show. 2. Download the attached file and unzip it to your desktop. 3. Upload the "images" folder (in its entirety) to your root directory (it should look like this: public_html/images) You can change the table images to suit your needs! <table align="center" border="0" width="100%"> <thead> <tr> <th background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Last 10 Flights</font></th></tr> </thead> </table> <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table align="center" border="0" width="100%"> <thead> <tr border="0"> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Pilot</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Airline</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Flight #</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Origin</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Arrival</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Landing Rate</font></th> </tr> </thead> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); echo "<tr>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->firstname $pirep->lastname </font></td>"; echo '<td align=center width=120px bgcolor=#000000><a href="'.fileurl('/index.php/pireps/viewreport/'.$pirep->pirepid.'').'"><img src="'.fileurl('/images/airline/'.$pirep->code.'.gif').'" alt="'.$airline->name.'" width="127px" height="32px" /></a></td>'; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->code $pirep->flightnum </font></td>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->depname </font></td>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->arrname </font></td>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->landingrate ft/min</font></td>"; echo "</tr>"; } } else { echo "<tr><td>There are no recent flights!</td></tr>"; } ?> </tbody> </table> The table is designed to show the last 10 flights. If you want the table to show more/less, you will need to change both of the following codes to show the amount you want. $count = 10; and change the number on the header from "Last 10 Flights" to the number you changed". images.zip 1 Quote Link to comment Share on other sites More sharing options...
RogerB Posted November 14, 2011 Report Share Posted November 14, 2011 hello can someone help me setup a VA and all that cool stuff Are you for real?? Quote Link to comment Share on other sites More sharing options...
Sava Posted November 14, 2011 Report Share Posted November 14, 2011 2 Quote Link to comment Share on other sites More sharing options...
orpheas Posted November 20, 2011 Author Report Share Posted November 20, 2011 <table align="center" border="0" width="100%"> <thead> <tr> <th background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Last 10 Flights</font></th></tr> </thead> </table> <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table align="center" border="0" width="100%"> <thead> <tr border="0"> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Pilot</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Airline</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Flight #</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Origin</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Arrival</font></th> <th align="center" background='images/tables/tableheading.png'>Â <font face='Verdana' size='2' color="#FFFFFF">Landing Rate</font></th> </tr> </thead> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); echo "<tr>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->firstname $pirep->lastname </font></td>"; echo '<td align=center width=120px bgcolor=#000000><a href="'.fileurl('/index.php/pireps/viewreport/'.$pirep->pirepid.'').'"><img src="'.fileurl('/images/airline/'.$pirep->code.'.gif').'" alt="'.$airline->name.'" width="127px" height="32px" /></a></td>'; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->code $pirep->flightnum </font></td>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->depname </font></td>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->arrname </font></td>"; echo "<td align=center background='images/tables/board.png'>Â <font face=Verdana size=2 color=#E8D33D> $pirep->landingrate ft/min</font></td>"; echo "</tr>"; } } else { echo "<tr><td>There are no recent flights!</td></tr>"; } ?> </tbody> </table> Thank Jeff Quote Link to comment Share on other sites More sharing options...
Jeff Posted November 22, 2011 Report Share Posted November 22, 2011 You're welcome, and it looks pretty good. One suggestion...change the font color on your navigation menu to something else (maybe white) you cannot see the links on that light blue background image. Quote Link to comment Share on other sites More sharing options...
CPC900 Posted November 22, 2011 Report Share Posted November 22, 2011 Yeah, thanks Jeff I used it on mine as well. http://canadianclassicairlines.com/CPC/ Quote Link to comment Share on other sites More sharing options...
Jeff Posted November 23, 2011 Report Share Posted November 23, 2011 No problem Bruce, enjoy it. (BTW, it looks great on your site). Quote Link to comment Share on other sites More sharing options...
CPC900 Posted November 23, 2011 Report Share Posted November 23, 2011 Thanks Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted January 11, 2012 Moderators Report Share Posted January 11, 2012 Here is mine if you wanna use it. http://forum.phpvms.net/topic/6633-flight-board/ Quote Link to comment Share on other sites More sharing options...
5SA CEO Posted March 30, 2012 Report Share Posted March 30, 2012 Thanks for that Jeff. I played with it a little to fit my site and works great. Quote Link to comment Share on other sites More sharing options...
5SA CEO Posted March 30, 2012 Report Share Posted March 30, 2012 Hi Jeff What would I need to add, to make this show just flight from a particular hub, say 'EGKK'? thanks. Quote Link to comment Share on other sites More sharing options...
Jeff Posted March 30, 2012 Report Share Posted March 30, 2012 Not sure how to do it by hub. I haven't worked on it in a while. Quote Link to comment Share on other sites More sharing options...
EmiratesVA Posted April 11, 2012 Report Share Posted April 11, 2012 This looks good I wanted to say is there a way for the flight number to have a link to the pirep rather then the airline logo Quote Link to comment Share on other sites More sharing options...
varuoos Posted February 8, 2013 Report Share Posted February 8, 2013 The airline box is just black. How do I add my logo to that box? it is not working. It looks good though. 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.