Development Help
For help and support for the development of addons
523 topics in this forum
-
- 0 replies
- 1.3k views
Hello, I have two questions, Is it possible to print the error message and then kill the module if and error ocurres on a Module? Right now what is happening is that if something goes wrong on a Module it only shows the error and I'd like to have something that prints the error stops that module and continue with the rest of the website. Is it possible? Second question: if ((isset($_POST['Del'])) && (PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN))) VirtualThaw2014Data::delete_mission(explode("Delete ", $_POST['Del'])[1]); this works just fine on my local server but when I move it to the host it gives me an error: Parse error: syntax erro…
Last reply by Joaogl, -
- 12 replies
- 3k views
I am currently updating Pilot Awards System. The next version will include an auto award system. Can you suggest me any criteria? Currently, i have already added the hours and flight criteria. (An award will be assigned after completing x hours or after completing y flights).
Last reply by servetas, -
- 3 replies
- 1.3k views
I want to make just an informational page, no fancy stuff needed, just to show a skin and that's it. I've got the subdomain created, but IDK what to put in that folder at all. Any help is appreciated! Thanks
Last reply by Taran, -
- 1 follower
- 1 reply
- 1.4k views
Came accross this and thought I would share. http://smallbusiness.chron.com/automatically-website-posts-facebook-status-updates-32368.html Follow the instructions and it uses an RSS feed that sends your pireps to facebook and twitter
Last reply by SkiesTheLimit, -
- 1 follower
- 2 replies
- 1.4k views
Hello Guys, I am creating 3 different pages called pilot list The first shows me the hours reported by the company kacars The second with the hours VATSIM The third with hours of IVAO I wanted to ask if you can see my page number 2 or 3 in which only the pilots IVAO (custom field) is populated by the number of VID? Or show the pilots by Group members I also created the appropriate module for each page I would like to see on the second page only drivers with custom field VATSIM populated, only in the third IVAO pilots with custom field populated. is it possible?
Last reply by simpilot, -
- 6 replies
- 2k views
?> </br> <table id="tabledlist" class="tablevar"> <td>Spilla</td> <td>Nome</td> <td>Piloti</td> </tr> <?php $query="SELECT * FROM vawards_awards f LEFT JOIN vawards_grants p ON p.grt_awdid = f.awd_id WHERE f.typ_id = '1'"; $list=DB::get_results($query); foreach ( $list as $ist) { ?> <tr> <th><img src="<?php echo $ist->awd_image ?>"</th> <th><div align="left"><?php echo $ist->awd_name ?> </div></th> <th><?php echo $ist->grt_pilotid ?></th> </tr> <?php } ?> </table> <br /> Hallo …
Last reply by Tato123, -
- 2 replies
- 1.3k views
Hello Guys, I would like to ask you for help. After a few unsuccessful attempts, I gave up. Basically what I was trying to do is make a loop statement to get pilots current booked flights values of depicao and arricao, so they display next to each pilot name in the pilot roster. Can anybody help?
Last reply by Wildone, -
- 3 replies
- 3.7k views
Hello Guys, I have created a page .htm via "add page" function in Admin Center. Then I have downloaded the schedule.htm from the ftp server and edited it(content of the file below) and reupload it on the server. But then the problem has occurred. Namely the schedule does appear below the disclaimer which is located in the footer div which is located at the very bottom. When it should be above the disclaimer and over the whole footer div...I have been wondering should I do that in other way, creating a tpl file or something. So if can anyone have a look at the code below and maybe suggest something what I did wrong? Your help would be greatly appreciated schedule.htm …
Last reply by Wildone, -
- 14 replies
- 9.2k 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.4k 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.5k 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.5k 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.2k 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.5k 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
- 1.8k 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.3k 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.1k 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.3k 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.6k 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
- 1.7k 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.1k 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.6k 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
- 6.7k 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.6k 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.4k 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
- 6.4k 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
- 963 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.5k 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.1k 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
- 1.9k 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,