Jump to content

Jeff

Members
  • Posts

    1307
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jeff

  1. I noticed on some flights it was showing: $ This flight has been bid on
  2. Re-Upload those files
  3. Ray... I added this code and i get a blank number after the "$" AC1144 (CYQB - CYYZ) Departure: 1:15 Arrival: 2:42 Equipment: CRJ-700 (AC-CRJ7) Distance: 395.813nm Days Flown: M T W Th F S Su Airline: Air Canada Jazz Flight Type: Passenger Price: $135 Flight Value: $ <----------------It is blank
  4. Ray, this is just part of the print r output I got out of it (for the A319) but I'm not sure how to read it. Array ( [0] => stdClass Object ( [id] => 43 [icao] => A319 [name] => A319 [fullname] => Airbus A319 [registration] => AC-A319 [downloadlink] => http://www.virtualflightzone.net/index.php/pages/ac-a319 [imagelink] => http://www.virtualflightzone.net/images/aircraft/AC-A319.jpg [range] => 3600 [weight] => 166000 [cruise] => 0 [maxpax] => 124 [maxcargo] => 0 [minrank] => 4 [ranklevel] => 3 [enabled] => 1 [aircraft] => A319 [routesflown] => 4 [distance] => 4865 [totaltime] => 13:07:00 [averagedistance] => 1216.2500 [averagetime] => 3.0675 ) Mark, I actually looked at the profile_stats.tpl file earlier today, but it doesn't show how the swf is pulling the info: <h3>Your Stats</h3> <?php /* Added in 2.0! */ $chart_width = '700'; $chart_height = '250'; /* Don't need to change anything below this here */ ?> <div align="center" style="width: 100%;"> <div align="center" id="months_data"></div> </div> <br /> <div align="center" style="width: 100%;"> <div align="center" id="aircraft_data"></div> </div> <script type="text/javascript" src="<?php echo fileurl('/lib/js/ofc/js/swfobject.js')?>"></script> <script type="text/javascript"> swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>", "months_data", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo actionurl('/pilots/statsmonthsdata/'.Auth::$userinfo->pilotid);?>"}); <?php $chart_width = '700'; $chart_height = '300'; /* Don't need to change anything below this here */ ?> swfobject.embedSWF("<?php echo fileurl('/lib/js/ofc/open-flash-chart.swf');?>", "aircraft_data", "<?php echo $chart_width;?>", "<?php echo $chart_height;?>", "9.0.0", "expressInstall.swf", {"data-file":"<?php echo actionurl('/pilots/statsaircraftdata/'.Auth::$userinfo->pilotid);?>"}); </script>
  5. My site is near completion; only one remaining problem that I cannot get solved. In the PILOT CENTER and PILOT PUBLIC PROFILE pages I have this problem: I am trying to add a table to show Aircraft usage by ICAO code. Once that pilot has flown that aircraft I want it to show in the table, so we can keep track of how many hours a pilot has spent in the plane so they can earn an award for certain aircraft. I was trying to pull out the information from what was showing from the ADMIN CENTER (Aircraft Reports), with no success. Can someone help me with this. I have the table created, but the information I am trying to get will not show. Here is how I have the table: <table align="center" border="0" width="100%"> <thead> <tr> <th bgcolor="#05305d" border="1"> <strong><span style="font-size: 14px;"><span style="color: rgb(255, 255, 255);"><b>Aircraft Flight Information</b></span></span></strong></th> </tr> </thead> </table> <table align="center" border="0" width="100%"> <thead> <tr> <th align="center" bgcolor="#05305d" border="1"> <strong><font color="#ffffff">Aircraft</font></strong></th> <th align="center" bgcolor="#05305d" border="1"> <strong><font color="#ffffff">Times Flown</font></strong></th> <th align="center" bgcolor="#05305d" border="1"> <strong><font color="#ffffff">Total Distance</font></strong></th> </tr> </thead> <tbody> <tr> <td align="center"></td> // This will show the Aircraft ICAO (EX: A319) <td align="center"></td> // This will show the amount of times the aircraft was flown <td align="center"></td> // This will show the total distance the aircraft was flown </tr> </tbody> </table> Is there a code that will show this information? Please help me with this if you can.
  6. nope, actually it will always show 0 until you fly a route. it is still going to show (on the PILOT ROSTER page) that the pilot has more than 0 hours. check the local.config.php file again to make sure that this says true # Automatically calculate ranks? Config::Set('RANKS_AUTOCALCULATE', true);
  7. You better make a backup of that file, because if you mess up, you will have to reinstall.
  8. you might have to do the same thing in local.config.php as well (same place) /public_html/core/
  9. the one with the Globe next to it is your public_html folder
  10. As Mark said, these are just BETA (use only if you want to) updates. If an important update is available, you will be given a message in the Admin Center.
  11. To add transfer hours to your members "Total Hours, go to /public_html/core/app.config.php and look for this: # If you want to count transfer hours in rank calculations Config::Set('TRANSFER_HOURS_IN_RANKS', false); and change it to true: # If you want to count transfer hours in rank calculations Config::Set('TRANSFER_HOURS_IN_RANKS', true);
  12. Here you go Mark... <?php if($nextrank) { ?> <p align="center"><font color="#FF0000">You have <?php echo ($nextrank->minhours - $pilot_hours)?> hours left until your promotion to <?php echo $nextrank->rank?></font></p> <?php } ?>
  13. I am interested in that as well. You might want to add that to "Code Snippets" to save Nabeel the hassle of moving it for you.
  14. I had just got it to work 3 minutes ago with the previous code that Mark posted early today, I just changed ('/images/airline/'.$airline->code.'.gif') to ('/images/airline/'.$pirep->code.'.gif') and it worked. Thanks anyways Asmara.
  15. Does anyone else show airline images like this on their VA? If so, can you please give me a hand here, I can't seem to figure out what I have to do to get it to show. I have tried different configurations with no positive results. The page is here
  16. if I was to add the 2 digit code just before the .gif in that link as I pasted that link in (say B6 for JetBlue) the image shows in the browser, but somehow it isn't working on the table. here's the link to the sites airline image http://www.virtualflightzone.net/images/airline/B6.gif
  17. This is looking at the page source: <td align=center><img src="www.mysite.net/images/airline/.gif" alt="" /></td> the .gif is showing in the return, just not the image name itself
  18. That worked, but still no image is showing up , it is just blank. The images are located in the following folder: http://www.mysite.com/images/airline/ so if the flight is Air Canada, the image would be www.mysite.com/images/airline/AC.gif
  19. I'm not quite sure why it is showing that. Maybe Nabeel can get you sorted out
  20. go into your cPanel (or whatever you use) and find this file: core/index.php open that file and make sure it is completely blank inside.
  21. just run the checkinstall if you are still getting the message you were getting. run the install.php first. Once you run the install.php, it will show everything that was installed. If everything installed OK (no red boxes (they should be all green)) then it should ask you for your airline name (this is going to be the name of your Virtual Airline). then it will bring you to your index page.
  22. run an install/checkinstall (type in your website address and then add this at the end /install/checkinstall.php) (Ex: www.yoursite.com/install/checkinstall.php)
  23. Jeff

    ObsessBlue 2.0

    Yeah, the layout.tpl holds all the information for the top right links, as well as all of the left side info.
×
×
  • Create New...