Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. You can use the update phpvms_pireps rawdata = '', log = ',' route = '' where submitdate <DATE_SUB (NOW (), INTERVAL 3 MONTH) part right in your phpMyAdmin interface for your database, or include it all in a php script within your system.
  2. I have built this in a few different ways including SimDispatch and I have one word of warning, be very careful how you select data. For the purposes of what a VA generally wants, you have to make at least two calls to the API but be sure that the first call includes a return with the FlightAware ID of the flight or you will be limited on what you can get from the second call; if it is for example flight plans as that call can require the FlightAware ID, not just a flight ident or city pair. There is also no developer option to test your scripts so you are paying for data from the start of development. It would be nice if they provided a sandbox for developers, even if it was old data.
  3. It is an error that is encountered when you have pilot names that have a apostrophe in them. It breaks the sql syntax. If you are using the latest version of airmail from my GitHub account it should be escaping it. If it is not you will have to escape the name field prior to it going in the database.
  4. Using echo to show that data is not going to work, you need to use the method described in the instructions as you have started to do in the post above.
  5. Have you installed the sql file? Is there any data in the table? Does the VA have any flights for the current month?
  6. There is no option for this. You could add some code into the data class to find the appropriate airports and filter the rest out.
  7. <?php echo TopPilotData::top_pilot_hours($month, $year, 5) ; ?> This code simply returns an array with the information from the database, you need to use it to build a table or list group if that is what you are trying to do. You also need to assign values to the $month and $year variables. You may just be wanting to link to tthe main page - mysite.com/index.php/toppilot There are instructions for the module here -> http://forum.phpvms....-10/#entry14824
  8. http://david-clark.net/phpvms-codon-framework-modules/
  9. There is no real update to be had, if you replace or patch the one affected file as it is spelled out here -> http://forum.phpvms.net/topic/16598-21936-security-patch/ <- there is not really anything else to be updated. If you were hacked, you will need to clean your site. There is no absolute set if directions to do that, every one is different.
  10. If the file is actually there and where it is supposed to be then it is possibly a permissions issue or an error in your server config.
  11. You have to create a condition in the case of $totaldistance being zero(0) - you can not divide by 0 and it causes an error in the background. Something like if($totaldistance == 0) {//then assign a fixed number}
  12. There is a lot of good information in the thread here -> http://forum.phpvms.net/topic/6996-phpvms-vanilla-forum-bridge/ It is probably related to this -> http://forum.phpvms.net/topic/6996-phpvms-vanilla-forum-bridge/#entry113237
  13. The solution is in the second post of this thread.
  14. I just tried running it on an old install of mine and it works as it should. What is the error you are getting?
  15. There are two files included in the distribution that should help. The first shows all the available fields coming back from vatsim - https://github.com/DavidJClark/phpVMS-VatsimReader/blob/master/core/templates/vatsim/vatsim.tpl The second has a small table example - https://github.com/DavidJClark/phpVMS-VatsimReader/blob/master/core/templates/vatsim/table.tpl
  16. There is also this guide that a member made some time ago - http://forum.phpvms.net/page/index.html/_/getting-started/phpvms-for-dummies-guide-r36
  17. Look in the module that is calling the template and see how it is formatted. It should be something like; $this->show('acarsmap.tpl') or $this->render('acarsmap.tpl')
  18. it is acarsmap not routemap. My mistake.
  19. Did you make an update to the site as well before this started happening? I took a look at the site using Firebug and it shows a number of javascript errors and when you look at the source you load different versions of jquery at least 11 times that I see. There is also an error of - Error: fbstatic-a.akamaihd.net : server does not support RFC 5746, see CVE-2009-3555 - Maybe try removing the facebook code, at least that is what I think that is referring to. This error also seems odd to me; Error: SyntaxError: missing ; before statement Source File: http://airmalaysiavi...ndex.php/career Line: 1, Column: 45 Source Code: MM_preloadImages('active wninf','g1 active') document.theForm.theButton.disabled=true Are you trying to load a form with the layout template every time a page loads? I have no idea if this is the issue either but also have no idea what I am looking at without having the actual files. I had also mentioned the htaccess file earlier but see now you that it looks like you are on a Windows server which ignores htaccess files, it requires web.config files to achieve the same purposes. Maybe the update by your host changed some of the requirements associated with that process. Are there any root error logs that can help you?
  20. It may be that the module is calling the template as routemap.php - if so change it to just routemap. Follow the action backwards till you find a difference between the methods it is using and the methods a functional page is using.
  21. It is actually the opposite, the static definition needs to be added. I have updated the file on github here -> https://github.com/DavidJClark/phpVMS-Event-Booking/blob/master/core/common/EventsData.class.php
  22. http://forum.phpvms....ge__hl__$_files http://forum.phpvms....ge__hl__$_files http://forum.phpvms....iles#entry85887
  23. I ran into this recently with a site on a server that had just had some updates done. What I found was that it was a new conflict between the mod_rewrite server settings and the .htaccess file for the site. It may be the same thing for your site. If you have an .htaccess file in your root phpvms directory I would try removing it and see what happens, it may be a simple as that, or it may need to have some modifications made to it.
  24. There is nothing that is built into the module out of the box. You could add a function to the model to simply count the rows that are present in the comments table for image id "x"
  25. So if I understand this correctly it is a seperate pilot center on another server in case your site goes down? Are you live replicating databases between the two servers I am guessing? I guess I just do not get it, if it is simply to make your pilot center look different from the rest of your site it seems to me that there are much simpler ways to do it. As a pilot joining an airline with a "Cloud based pilot center" what does it do for me?
×
×
  • Create New...