Development Help
For help and support for the development of addons
515 topics in this forum
-
- 14 replies
- 9.9k views
I have made a very simple list of all aircraft configured for my VA that show all information stored in the table phpvms_aircraft with links to images and to download the aircraft. If links are not configured in your aircraft table the interested row show "image not present" or "download not present". The last column show the status (enabled/disabled) of the aircraft. Just copy Fleet.php in /core/modules/Fleet (directory Fleet must be created) then copy fleet.tpl in /core/templates You can see a preview here I have made a link to show this list to all the pilots of the VA ciao - Gianni Fleet.zip
Last reply by DanL, -
- 1 reply
- 1.6k views
Hi. The IPS documentation mentions that in the pilot's table, the VIDs field should contain a serialized array with network ID and VID of the pilot. I'm testing this and entering this information manually, but IPS is not picking up flight plans yet. Can someone share a working sample of what the VIDs field in the Pilots table should look like. I have tried some of the following formats: {"IVAO",229120} IVAO,227111 {IVAO,418353} "IVAO",418353 Is it any of the above (which one) or something else? Thanks.
Last reply by joeri, -
- 1 reply
- 1.8k views
Afternoon everyone I'm currently building a module for my site which I plan to share on here for everyone to use if they want, it allows you to add extra information to an aircraft that can then be shown on a nice shiney fleet page, I am a bit stuck though, whilst I can pull the aircraft, add extra information to them and display it all on the fleet page with no problems, I just cannot for the life of me get it to update existing added extra data, I've been staring at this for four days without success, the query works when run direct in SQL command line, I've tried absolutley everything but clearly I've missed something that I can't spot, Please please please can some o…
Last reply by nexissair, -
- 1 reply
- 1.9k views
Afternoon All I currently have on my site a static fleet page gouped by aircraft type, however as part of my quest to learn MVC and php I thought I would have a go at making it dynamic so that when I add an aircraft the page auto updates saving me loads of work in the long run. So after an evening of browsing though phpvms files to see how it all ticks, and based on the public pilots list, grouped by hubs I made my class, module and tpl files. I had some success but not completely, the page gives me one group for each icao which is what I wanted, but it also gives me all the whole fleet repeated in each group! not just the aircraft specific to the group. If this was an…
Last reply by nexissair, -
- 18 replies
- 4.6k views
have any of you messed around with or customized the personal stats page? It's very boring, was hoping to get some ideas thrown around so it can be made more interesting ....
Last reply by Taran, -
- 4 replies
- 1.8k views
Here is some code if you wish to hide pilots with zero hours. if($pilot->totalhours =='0'){ continue; }
Last reply by Strider, -
- 2 replies
- 2.1k views
How come when my pilot roster pulls from all of the hubs, some of the rows are totally different widths when it runs off of one .tpl file? http://www.spark-jet.com/index.php/pilots
Last reply by Remington Box, -
- 1 follower
- 2 replies
- 1.6k views
Hi all I'm currently having a go t building a module, I need a little help, is there a piece of code that I can put on the template page i'm working on during development to show me all he fields that my query is pulling from the database, obviously once I'm done the little helper code can be deleted, many thanks karl
Last reply by nexissair, -
- 1 follower
- 7 replies
- 2.5k views
Hi all Could someone please help me out, I think the solution is so simple but I just can't see it with limited PHP skills. Ok I have multiple airlines but my schedules all come under the airline code "NEX" as the other airlines are for charters, code share etc. so I have filtered my NEX schedules on the results.tpl like so which works a treat: <?php foreach($allroutes as $route) { if ($route->code != 'NEX') continue; But I wanted to show two or more airline codes in the schedule results.tpl like "NEX" and"3XE" but not any others how would I adjust the code? I've tried a few things but with no success. Many thanks
Last reply by nexissair, -
- 0 replies
- 1.5k views
Hi wanted to ask a question you may make charter flights are also paid? For example with a fixed amount or by the normal system. Thank you for your attention.
Last reply by tonkepen, -
- 1 follower
- 3 replies
- 1.8k views
Hi all, I have a couple of questions and was hoping someone may be able to answer them for me. My airline and another have gone into a code-share partnership, what we would like to know is that is it possible to share our schedules tables from the databases with each other and display the results on a custom schedules results page from within each other sites? Also is it possible to get KACARS to report back to two VA's at the same time during a flight? Also how would I go about setting Microsoft access up to access my database? Many Thanks Karl
Last reply by nexissair, -
- 6 replies
- 2k views
The module I am working on, display's the aircraft in your fleet. Sounds like it has been done before, but this breaks it up into the different airlines in your VA if you have multiple airlines, such as alliances. http://malaysiava.or...ex.php/Aircraft There is a preview of it. It will have an admin side to make it easier to add the aircraft into the DB. It is still early on in the development. It will be released when it is complete.
Last reply by Strider, -
- 5 replies
- 2.4k views
Good morning all, I wondered if anyone is wanting any modules making? I'm wanting to make a few and just looking for some ideas on what to make. Anyone have any ideas? Thanks. Jordan.
Last reply by freshJet, -
- 1 follower
- 1 reply
- 1.9k views
Hello everyone, i looking for a code that, the pilot and me can see how many schedules have flow for a airliner, i have a several airliners, and nobody can see how much he fly for a airliner. i hope for this code: in the pilot center and in the profile, that the pilot can see how many schedules has flown for a airliner, Michael
Last reply by Vangelis, -
- 12 replies
- 7.3k views
This is a table where you can show your visitors the flight board with arrivals and departures. Installation: 1- Unzip file. 2- Upload the files into your skin folder. Note: DO NOT REPLACE IF YOU ALREADY HAVE A FILE WITH THE SAME NAME. Instead you can copy and paste the contents in the files you already have. 3-enjoy Here are some pix: FlightBoard.zip
Last reply by simonecatalano, -
- 2 replies
- 1.9k views
Hello Everyone, I have been looking around at some websites and saw that some virtual airlines have a calender for the events page. I was wondering If anyone could help me code such a think that would work with the basic Events_booking module that is offered here. Thanks Austin
Last reply by Atcarrillo, -
- 1 reply
- 1.6k views
Hello everyone, Is there an entrance exam for PHPvms, or should I implement one and distribute it to everyone? Regards
Last reply by BaRBeR, -
- 35 replies
- 7.2k views
Is it possible to add automatic fuel calculations? Those do not have to be extremely accurate but can be used as a general value. So it goes like that.. if aircraft = MD11 -> Fuelflow x kg/h * hours flighttime + y% extra fuel = required fuel (which should then appear in the briefing) or something similar
Last reply by Ashj24uk, -
- 0 replies
- 1.2k views
hey guys i add few custom fields and i was trying to add them into /phpvms/admin/templates/pilots_list.tpl with no success, i'd like to see those custom fields in that table from admin view can you plz help me or show me where can i find docs about how to do that? tnx
Last reply by Ispanicuz, -
- 1 follower
- 4 replies
- 1.7k views
I am trying to get the statsdata to show a count of how many flights have been completed by my custom kacars program. But it is not working and need help, maybe someone here has the answer. Here is the code I got: /** * Get the number of flights flown with macars */ public static function AcarsCount($airline_code = '') { $key = 'acars_count'; if($airline_code != '') { $key .= '_'.$airline_code; } $acars = "mACARS"; $total = CodonCache::read($key); if($total === false) { $sql = 'SELECT COUNT(*) AS `total` FROM `'.TABLE_PREFIX.'pireps` WHERE `source`='.$acars; if($airline_code != '') { $sql .= " AND `code`='{$airline_code}' GROUP BY `code`"; } $result = DB::get_row($…
Last reply by Strider, -
- 6 replies
- 3.5k views
Hello! I am interested in giving my flight board a new style. I am not ready to move outside of the provided ACARS map and flight board, I would basically like to reskin it. I found this link which looked promising, but vague: http://forum.phpvms....just-wondering/ That is essentially what I am looking to do, I just don't know what I need to change. I don't know how to edit the background, fonts, ect.. I am not a well versed scripter/coder, but I have been learning quickly. I really am enjoying this stuff; I'm ready to learn more. Thanks in advance! Chase Freeman, CEO Midsouth Virtual Air http://www.midsouthva.com
Last reply by benboy123, -
- 9 replies
- 2.3k views
Hello All, I hope you are fine . I am trying to create a new module for my virtual airline but i have stuck in something(i think very silly). More than three hours have passed but i can't find anything. For some reason it does not send the data to the database. Can you find the problem? public function assign_checkride() { $this->set('pilots', AcademyData::get_pilots()); $this->set('exams', AcademyData::get_exams()); $this->render('academy/checkride_assign.tpl'); } public function checkride_theory_assign() { $ret = AcademyData::theory_checkride_assign($this->post->examid, $this->post->pilotid, $this->post->by, $this->post->at); $this…
Last reply by simpilot, -
- 1 follower
- 6 replies
- 2.2k views
Afternoon all I’ve been quietly reading the forum for a few months now and the wealth of information available from you all that has enabled me to learn the PHPVMS system and modify it to my needs is simply stunning, I could not have done it without your help or this forum. Anyway here’s what I am after doing if someone would be kind enough to explain how to do it, I’m currently using the SimPilot group Charter system V1.0 and I would like to see the following modifications if at all possible. In the drop down list where a pilot selects which aircraft he/she wishes to use, is it possible to filter the list by active aircraft according to pilot rank? At present a…
Last reply by nexissair, -
- 0 replies
- 1.4k views
I am looking to add additional fields to aircraft within the admin module, for instance the aircraft configuation of "29Y" which specifies 29 seats of economy. I have added another field within the ops_aircraftform.tpl file but now am not sure what to do in the php file. I have added the field to the database. Thanks,
Last reply by t_bergman, -
- 0 replies
- 1.3k views
Hi guys, this is my first post so sorry if its in the wrong place. But my VA is currently trying to find the rank/awards page module. I saw one for free and i was trying to download it but it was not working. I am wondering if there is any chance one of you guys can post it up or can redirect me to it. Thanks a lot for your time!
Last reply by MattSoares, -
- 2 replies
- 2.3k views
Hellooo guys! I apologise if this has already been asked but I haven't been around here for a while and well I don't have the patience to search ;P Anyways is there a way to change the page title from "Popupnews" to say the subject of the news post? (If that makes sense?) e.g Cheers!
Last reply by Sava, -
- 1 follower
- 12 replies
- 2.3k views
Having some issues with logging in externally (as in outwith my main site). Happening on both my Portal (www.freshjetvirtual.com/portal) and mobile site (m.freshjetvirtual.com). Both login forms have blank actions and so submit to themselves and I handle the login on the same page. It uses the Auth::ProcessLogin() function and seems to happily log the user in, however the user is then redirected using javascript, using the portal as an example, to the home page, otherwise the incorrect password error is displayed. However, once redirected, the user is logged out again and hence redirected back to the login page. The issue here is that it works fine on desktop computers, …
Last reply by Tom, -
- 5 replies
- 2.9k views
Hi all, Was just wondering where I could get a flightboard that looks like the one here... http://www.virtualryanair.com/index.php/acars Looks awesome!
Last reply by pverdon102, -
- 1 reply
- 1.7k views
Hello all, im a novice to skinning, so simple English would be appreciated! I would like to re-skin my flight status board under my flight map to something that looks like this - http://forum.phpvms.net/topic/8702-live-flightboard-just-wondering/ I have been searching around the forum for a while, and there was no, straight forward answer on how to do this. Could someone help please, it would look quite good on my website, and i just need help on how to do it! Regards
Last reply by Strider, -
- 3 replies
- 21.7k views
Hey, I'm currently Running IPB as my forum and website but my vm uses phpVMS, so i, for the better part of today have been working on a module that uses IPB's user database for phpVMS's Authentication. there is a dev kit that links with their ipconnect setup so that when you log in on the remote user (phpvms) it go's ahead and checks the IPB database and authenticates, and then copies the user over to the phpvms database, and does this each time you login, except it updates the details so that you have a SSO enviroment. I was integrating this earlier and am having quite a lot of trouble with it because of the Codon Framework, i have never modified it before so i was re…
Last reply by GlobalOne,