Jump to content

Parkho

Moderators
  • Posts

    1375
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Parkho

  1. The value of the custom field somehow doesn't get passed to the function and since the function is written to choose default value(1.Pilot) in case it gets empty value from the field, the from will be processed with default value.
  2. @TAV1702 and @Shrikar, It's always best to stay in safe zone but keep in mind that most internet service providers are upgrading their PHP to higher versions, so it would be wise if phpVMS gets upgraded ahead of time cause once the ISP upgrades their services then problems will start showing up with phpVMS. Also, as an add-on creator, I will create my future modules on newer versions of phpVMS and since I do this free, I will not have time to create them for old versions too.
  3. Use the following code anywhere you want. You'll just need to position the <div>: <?php $json = file_get_contents("https://stats.vatsim.net/user_count_json.php"); $data = json_decode($json, true); $pilots = $data['pilots']; $controllers = $data['controllers']; $atis = $data['atis']; $observers = $data['observers']; $supervisors = $data['supervisors']; $total = $data['total']; ?> <h3 style="margin-left: 80px; margin-top: 75px;">Vatsim Online Users</h3> <div id="vs" style="border: solid 3px; padding: 25px; border-radius: 5px;" class="container"> <ul class="blocklist"> <li>Pilots : <?php echo $pilots;?></li> <li>Controllers : <?php echo $controllers;?></li> <li>Atis : <?php echo $atis;?></li> <li>Observers : <?php echo $observers;?></li> <li>Supervisors : <?php echo $supervisors;?></li> <li>Total : <?php echo $total;?></li> </ul> </div> <script type="text/javascript"> function liveflight(){ $("#vs").load(location.href + " #vs>*", ""); } setInterval(function(){liveflight()}, 3000); </script>
  4. A module for phpVMS to view Vatsim Live Statistics --------------------------------------------------- Install: 1. Download at Github. 2. Upload to your site in folder's order. 3. Access using the following code: <?php echo url('/vatsimstats') ;?> 4. Enjoy! *The <div> element refreshes every 3 second which can be modified to desired time. *This is for phpVMS 5.5x version by Simpilot. --------------------------------------------------- Demo: At my website http://www.parkho.ir --------------------------------------------------- Support: Use "Contact Me" at my website http://www.parkho.ir Screenshot:
  5. Good Day All, Here is another module called Financial Report. This is to give your pilots statistics of your airline as well their own. *Please note this is for phpVMS 5.5x by Simpilot* Install: 1. Download repository at Github 2. Upload to your site in folder's order 3. Access it using: <?php echo url('/finance');?> 4. Include the following paths to your skin/layout.php file in head section: <script type="text/javascript" src="<?php echo fileurl('lib/js/finance.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('lib/css/finance.css');?>"></script> 5. Enjoy! Demo: At my website www.parkho.ir Screenshots:
  6. Maybe your browser's blocking your website's scripts, try changing its settings to allow running scripts.
  7. You're welcome sir, let me know if you need help building your website
  8. I think all simulators use UIPC and as far as I know kACARS_FREE was working with x-plane on our site, so as long as any ACARS support either FSUIPC or XUIPC your should be fine using them with all platforms unless Prepar3D uses some other UIPC.
  9. What you ask regards to CSS coding. If you have a video to show you can EMBED it's url using an <iframe> then you can place it anywhere you want using <div> element that uses your CSS (code above).
  10. The module is working just fine with 5.5x version, so unless you're on a free host service, the module should work for you as well.
  11. Like I mentioned it works fine on Wampserver with php 7 but I haven't tried it on a real server since my host doesn't provide php 7 as of yet. Would you want to give me your admin access to your site? I might be able to figure it out.
  12. What's the version of your phpVMS and server PHP?
  13. How about the modules in site area? are they working? Also, I have installed phpVMS-dev on Wampserver with php 7 and all functions and modules are working perfectly. What is you version of phpVMS?
  14. If the module is written to comply with 5.5x then you shouldn't have any issues unless you have bad installation. I'd contact the author of the module for help.
  15. What's the version of your phpVMS? The latest stable version is 5.5x by Simpilot. Also, please clarify when you say you're using current sql.
  16. Ok then check to see if your names are all the same as the system is case sensitive.
  17. The reason you get that error is that you actually haven't defined your module for the system. What you need to do is to create a folder in "core/modules" named "shoutbox" inside the folder you'll need a file named "shoutbox.php" inside that you'll need to add the following code: class shoutbox extends CodonModule { public function index() { $this->show('/shoutbox.php'); } } Then you'll need to create another file named "shoutbox.php" and place it in your "lib/skins/yourskinfolder" inside that file you'll need to add whatever codes you want. This is how you make a module that actually works. Cheers
  18. you'll need to do a cron job in your cpanel after setting "BID_EXPIRE_TIME". What I did instead was I added a code to frontpage_main.php to cancel the old bids once my website was opened by anyone. Here is the code. Just add it to the top of your "frontpage_main.php" after setting "BID_EXPIRE_TIME": <?php SchedulesData::deleteExpiredBids();?>
  19. If your pilots submit charter flights to your website through kACARS and you receive them in your admin panel then its income should be calculated automatically once you accept the PIREP.
×
×
  • Create New...