-
Posts
2773 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by simpilot
-
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.
-
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.
-
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.
-
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.
-
Have you installed the sql file? Is there any data in the table? Does the VA have any flights for the current month?
-
Schedule Search (Airline, Aircraft, Arrival, Departure)
simpilot replied to simpilot's topic in Simpilot Group Addons
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. -
<?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
-
http://david-clark.net/phpvms-codon-framework-modules/
-
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.
-
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.
-
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}
-
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
-
The solution is in the second post of this thread.
-
I just tried running it on an old install of mine and it works as it should. What is the error you are getting?
-
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
-
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
-
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')
-
it is acarsmap not routemap. My mistake.
-
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?
-
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.
-
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
-
http://forum.phpvms....ge__hl__$_files http://forum.phpvms....ge__hl__$_files http://forum.phpvms....iles#entry85887
-
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.
-
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"
-
American Airlines Virtual | Arriving September 27, 2014
simpilot replied to B77W's topic in Virtual Airlines Discussion
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?