Jump to content

Sava

Members
  • Posts

    575
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Sava

  1. It should be placed in schedule results .tpl <td> <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?> ( <?php $country = OperationsData::getAirportInfo($route->depicao); $imgicao = array_search($country->country, Countries::$countries); ?> <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strlower($imgicao);?>.png" alt="<?php echo $imgicao;?>" /> <?php echo $route->depicao;?> - <?php $country = OperationsData::getAirportInfo($route->arricao); $imgicao = array_search($country->country, Countries::$countries); ?> <img src="<?php echo SITE_URL;?>/lib/images/countries/<?php echo strlower($imgicao);?>.png" alt="<?php echo $imgicao;?>" /> <?php echo $route->arricao;?>)</a> <br /> Change your current code that display the DEPICAO - ARRICAO to this. I can't be more specific.
  2. You place it where you need the flag to show up. If you are using it somewhere else then in the schedules, you will probably need to adjust the variable passed as mentioned.
  3. Sava

    php help

    1. <?php $pause_count = substr_count($pirep->log, "paused"); if ($pause_count > 10) { echo '<span style="color:red">Paused '.$pause_count. ' times.</span>'; } else { echo 'Paused'. $pause_count. ' times.'; } ?>
  4. The fact is that $pirep->aicraft contains the ICAO not the ID in the table so the end query looks smth like ".... WHERE `id`='B738'" which returns an empty object/array. You need to pass the aircraft ID, not the ICAO.
  5. Exactly.
  6. It might be that $pirep->aircraft is empty. Try doing a var_dump on that.
  7. I've answered your message.
  8. You have permissions for those ThomsonVA rank images?
  9. A bit of "competition" is always welcome. Great work and good luck
  10. Sava

    PilotShop - Preview

    I have added several more features to the addon in the past couple of days and I am pretty much finished on writing new code. What is left to do is tidying up the current code, finishing up a bit of documentation I decided to create and deciding on how to redistribute the addon. Stay tuned guys.
  11. Sava

    PilotShop - Preview

    Since many people asked I modified the code to allow for items that are not to be delivered immediately to the pilot's profile. The order will be set to pending until a staff member accepts it. This could be useful it the actual item is a special livery, access to certain parts of the site etc. Once you set up what you need (the module has no connection to any of the mentioned things - liveries, access etc.) you then proceed to confirm the order and enter a message that is sent to the pilot. I also decided that I won't be including the option for pilots to sell items to other pilots and the entire 'market' thing (where people bid, compete for something etc) at this time. It would take a long time to create increasing the cost of the addon etc. It might come as a free upgrade to all the people who buy the first version. Any other feedback/idea is still welcome for a short bit until I finish the entire code and start testing. Cheers.
  12. Sava

    PilotShop - Preview

    Thanks. I will get more work done during the weekend.
  13. Sava

    PilotShop - Preview

    I haven't forgot about about this. I've just continued working on it after a long brake and it should be finished real soon.
  14. I can't even describe the number of things you did wrong, so I won't even try. Looks like a 15 minute job, from the site, to the content (check your spelling, grammar, etc.), domain and everything. If you didn't put any time into it, why would pilots invest their time in flying? Also, aren't you already running a VA? What happened to that? In stead of working on that one, why start a new VA? Some food for thought.
  15. Same here. As soon as I finish with my current project, I'll get back to you.
  16. @Strider That is why I included two solutions.
  17. My latest work http://www.canadianva.com/phpvms/index.php
  18. You can run this inside phpmyAdmin. INSERT INTO `phpvms_airports` (`id`, `icao`, `name`, `country`, `lat`, `lng`, `hub`, `fuelprice`, `chartlink`) VALUES (80, 'LDZA', 'Zagreb', 'Croatia', 45.7429, 16.0688, 0, 1, 'http://www.crovacc.org/dwl/charts/LDZAav.pdf'); Or just take the coordinates : LAT : 45.7429 LONG: 16.0688 Pozdrav kolega.
  19. http://www.lufthansa-virtual.com/ My latest work. Also, I am currently running a 25% discount to all new clients on all services (Modules, Skins..) for the next two weeks! Just shoot me a PM and we'll get started from there.
  20. 1. option : by using the built in Pages module inside the Admin Panel (gives you a /index.php/pages/pagename link) 2. option : build a simple module that renders a .tpl (gives you a /index.php/pagename link) if you want you can even use custom module and then include a page made in the admin panel so you get the best of both worlds. 3. option: use for example the vFleetTracker module by Vansers. Second option would be a module like this: Make a new folder under core/modules named Fleet and add a Fleet.php file inside containing the following code: <?php class Fleet extends CodonModule { public function index () { $this->render('fleetpage.tpl'); //or you can use this include('core/pages/fleet'.PAGE_EXT); } } If you use option number one (from code above, not first part) create a fleetpage.tpl in lib/skins/yourskin/ or if you use option 2 create a page from admin panel called Fleet. Hope I am clear enough
  21. There is a black "No pireps have been filled" text on top of the latest news. The content headers could use some padding. Also the design seems not to have been thought out properly. That is just my opinion though. p.s Using the latest version of Firefox.
  22. Or just create a link like this: http://www.caalair.c...pages/P1_Vatsim enabling it to the public
  23. I added that to the code just minutes after initially posting, (as I also tried on a Linux server after the initial code dev on Windows) so I thought you included that but it seems you got my code before I updated it If you check, there is actually the strlower function already there
  24. Glad I could help out.
×
×
  • Create New...