Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Parkho

  1. If you get that API then I'll write the code for it!
  2. You need API from VATSIM or IVAO in order to be able to get your pilot's log info. If your ACARS client somehow logs their record in VATSIM or IVAO networks then you'll be able to fetch that data and apply rules to it. Otherwise, you'll have to just trust your pilots.
  3. I think it will reset the count to zero. Make sure you have a back up before you do the reset.
  4. You're not getting the last report arricao. Try this: $userinfo= Auth::$userinfo->pilotid;
  5. Hello everyone, This is to announce I have created a Discord channel in case anyone has direct questions or in need of support for my modules. Perhaps it would be best if questions and support requests be posted at the forums so everyone can benefit from them but consider this another way of reaching me. Below is the link to my discord channel. DISCORD SUPPORT CHANNEL Regards Parkho
  6. Check your table prefix, the module's using "phpvms_" as the prefix. If yours is something else, you'll have to change it everywhere inside the module.
  7. Okay! I don't know what to say but I did a fresh install of 5.5x by David and the skin came up but the css is not loading which I think might be the links issue. Thanks for your help guys I much appreciate it. Cheers
  8. Please see attached image. This is what I get when the skin loads. To me, the skins doesn't load at all and seems it's being skipped somehow.
  9. Okay! I'm not sure I'm following you on this, All the .php files are in the skin folder, layout.php looks okay and proper but don't know what's wrong. error log says header.tpl and footer.tpl are missing in class floder TemplateGet on line 231 which is the very end line of the file.
  10. Tpl filed were replaced the error is the header and footer is missing.
  11. Hello everyone, I'm sure the answer to my Q is somewhere in this long post but somehow I was't able to find it, so please if someone can tell me what's wrong with this skin not coming up correctly assuming I have followed all the installation steps. it gives me the header and footer error and seems the skin is not loading at all! Thanks
  12. Hello guys, This is a little security snippet you can use for your website. The user needs to answer the multiplication question before proceeding: PHP: $rand1 = rand(1, 9); $rand2 = rand(1, 9); HTML: <div> <label><?php echo $rand1;?> x <?php echo $rand2;?> = </label> <input type="text" class="form-control" name="sum" id="ques" placeholder="<-- Your Answer" required> <input id="sendbtn" type="submit" name="submit" value='Send' disabled> </div> Jquery to check user's answer. If the answer is correct, as soon as the user move the mouse out of the field, the "Send" button is enabled otherwise it's disabled: $("#ques").on('mouseout', function() { var sumques = $("#ques").val(); var val1 = <?php echo $rand1;?>; var val2 = <?php echo $rand2;?>; var sumOfValues = val1 * val2; if (sumOfValues == sumques) { $("#sendbtn").prop('disabled', false); } else { $("#sendbtn").prop('disabled', true); } }); Let me know what you think. Cheers
  13. Okay here it is: Open "WTHR.PHP"(core/modules/WTHR/WTHR.php) The following function must be added: public function simplexml_load_file_curl($urlmet) { $ch = curl_init($urlmet); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $xml = simplexml_load_string(curl_exec($ch)); return $xml; } The following line must be changed from: $xmlmet = simplexml_load_file($urlmet); To this: $xmlmet = $this->simplexml_load_file_curl($urlmet); Everywhere you see the code line. To remove the charts: //Charts Section $url = 'http://api.aircharts.org/Airport/'.$icao.'.xml'; $xml = $this->simplexml_load_file_curl($url); $charts = $xml->airport; $count = $xml->airport->chart; $this->set('charts', $charts); $this->set('count', $count); $this->set('icao', $icao); $title="Aviation Weather"; $this->set("title", $title); $this->render('weather/results.php'); To this: $this->set('icao', $icao); $title="Aviation Weather"; $this->set("title", $title); $this->render('weather/results.php'); Basically, the first block of above codes need to be removed or commented out. Let me know if issue is resolved. Cheers
  14. Dear All, Some issues have been developed in the module in the past years as follows: 1. Apparently, Airport Charts website is no longer available and there is no alternative for it, so it has to be removed from the module. 2. With SSL certificates being updated every now and then, "simplexml_load_file" function is rejected by the SSL causing the results not being fetched entirely. Fortunately the second issue is resolved and is being worked on, so keep following the post for further updates. Cheers
  15. The error you get means the column is a key and its structure cannot be changed. You will need to remove the key on the column and change its structure and add the key back to it once altered.
  16. Well! At this point, I don't have any sources to replace aircharts.org. They may be offline due to maintenance. Try them out again and see what will happen.
  17. Your host PHP version is higher than the phpVMS version you are trying to install. Lower your host php version to 5.6 if you are installing phpVMS 5.5x version. If you don't have that option in your host's panel, then you won't be able to install 5.5x
  18. The error refers to the loop of your code. in fact you haven't set $comments variable to get the required data. You need to first get the data from your DB field and then use the loop to show every records. In order to do so, you need a function that reads records from your table in your DB.
  19. what version of phpVMS are you running?
  • Create New...