Jump to content

Parkho

Moderators
  • Posts

    1375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Parkho

  1. Thanks Kyle. Just what I was looking for, I'm gonna test it now.
  2. <div class="sidebar_box"> <[b]a href="<?php echo url('pages/fleet') ;?>"[/b]><img src="<?php echo SITE_URL ?>/lib/skins/cityportal/images/nightlife.png" alt="Night Life" border="0" /></a> </div> <div class="sidebar_box"> <[b]a href="<?php echo url('pages/telaviv') ;?>"[/b]><img src="<?php echo SITE_URL ?>/lib/skins/cityportal/images/city-zoo.png" alt="City Zoo" border="0" /></a> </div> Try these two codes, the link to your pages is not going through you site URL Your code: <[b]a href="pages/fleet"[/b]> My code: <[b]a href="<?php echo url('pages/fleet') ;?>"[/b]> BTW it's not tested.
  3. Got 89 of them waiting but not worried as they are all sent already. I think it's just the message in admin center.
  4. Are you using pages for your fleet or telaviv? Cause you go over the buttons and you see the link at the bottom of the browser. Make sure you have linked your buttons correctly. Go to admin center Pages/News, click on pages and click on the link and make sure it shows what supposed to. Then check the button link.
  5. ÙŽActually I edited my answer but somehow didn't get uploaded.
  6. NO IT'S NOT! Unless you go inside each module folder and edit the .php and change the names there as well.I wouldn't suggest that as changing module's name may mess up other modules and files as they're all connected to each other somehow.
  7. Actually, we use FSPAX and no matter who sends the pirep it's always the same. It was working just fine, like last week but suddenly started acting like this
  8. Hi there I've been having a problem with the reports sent by my pilots. When they send the pirep it shows in admin center like this: Then I check the DB and the PIREP table and the aircraft->name is being inserted rather than aircraft->id. I checked the SchedulesData and everything is correct, I checked the fspax.php and it's correct too ($aircraft = $sched->aircraft;) : Anybody knows where the problem is? I appreciate it.
  9. I don't think any body has created such add-on but there is one called, RealScheduleLite that the pilot has to get an aircraft, transfer it to another airport, and then from there get the same aircraft or another one that's already there to somewhere else. What you need is a whole add-on creation process and I think for such add-on you have to go to the payware section and ask them to create it for you.
  10. Jeff's code is correct and working on my site too, make sure you installed Touch Down Stats correctly.
  11. Parkho

    Code

    Nice Jeff, the thing is that he said he doesn't know PHP, so I guess he won't be able to use these unless we give him the whole coding structure.
  12. Parkho

    Code

    Okay! the info can be pulled out using $userinfo->pilotid, pilotname pilotlastname and so on. If you want the entire code and you have no knowledge of PHP then you're gonna have to try to learn some small things then get help from the others to make your thing. How did you make that table in the page you showed?
  13. Parkho

    Code

    The first 3 is showing right now as default for the rest you will need to pull the data out of tables, do you know php?
  14. Parkho

    Code

    What do you have in pilot profile right now? are using the default pilot profile or you're using skins?
  15. Liveries are ready for download. www.alvandair.com
  16. Yes there is. Look into your OperationsData.class.php there is a function called getAircraftbyReg().
  17. Actually! It wasn't that hard but I had to sleep since it was 2 in the morning. lol but thanks glad it worked for you.
  18. Okay I got it! this goes to your .tpl anywhere in the table: <tr> <td align="center">DH8:</td> <td align="center"><?php echo OperationsData::getAircraftByName(DH8);?></td> </tr> Now change this in your OperationsData.class.php : public static function getAircraftByName($name) { $name = DB::escape(strtoupper($name)); $sql = 'SELECT * FROM ' . TABLE_PREFIX .'aircraft WHERE UPPER(`name`)=\''.$name.'\''; return DB::get_row($sql); } To this: public static function getAircraftByName($icao) { $query = "SELECT * FROM " . TABLE_PREFIX ."aircraft WHERE icao ='".$icao."'"; $results = DB::get_results($query); return DB::num_rows($results); } Remember to put aircraft icao (A322) instead of aircraft name (A320-200) in the .tpl
  19. Okay here you go: <?php foreach ($fleet as $aircraft) { $amount = OperationsData::getAircraftByName($aircraft->name); echo count($amount) ; } ?> Now if you want to put that in the table then <?php foreach ($fleet as $aircraft) { $amount = OperationsData::getAircraftByName($aircraft->name); ?> <tr><td align="center"><?php echo count($amount) ;?></td></tr> <?php } ?> Tested and working.
  20. Don't know, didn't test it and waiting for Taylor.
  21. Wait! <?php $amount = OperationsData::getAircraftByName(DH8); foreach($fleet as $aircraft) { if($aircraft->name == "DH8") { echo $amount ; } } ?> Try this
×
×
  • Create New...