Development Help
For help and support for the development of addons
515 topics in this forum
-
- 4 replies
- 2.8k views
Is there a way I can display the top 5 or 10 smoothest landing rates from the FSACARS data, along with the pilots that did them? Thanks!!
Last reply by simpilot, -
- 5 replies
- 3.6k views
"What! He's asking another question?" Yes. He is. Don't judge him, he doesn't know anything. Moving on. I came across this snippet a few days ago that will allow me to display recent flights underneath a map (GCMap), and it works like a charm. I sized it down and added it to the sidebar on my home page. Now, the question is this. And please understand that I do a lot of wingin' it when it comes to code, and while I can generally understand how things work and how to change them, I just don't understand this map thing quite yet. I have a list on my home page as well, that shows upcoming flights (pulled from pilot bids), and I want to display a similar GCMap to displ…
Last reply by Kyle, -
- 1 reply
- 1.9k views
Okay so I've been playing around with the group permissions and trying to add in a few custom permissions of my own, And then I stumbled across something in the logic that had me stumped. So in a few moments I will ask the question but before I would like to explain how I'm understanding this to make sure I have it down right. If the following paragraph sounds too confusing just ignore it, It's still kinda hard for me to explain. Basically what I can get from this is that each permission is represented in binary format and it starts at 1 then 10, then 100, then 1000. and you just check to see if that bit is on when checking for a permission. for example if I'm wanting t…
Last reply by Oxymoron290, -
- 1 reply
- 1.9k 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, -
HELP
by FelipeAquino- 1 reply
- 1.6k views
PT-BR Bom Dia á todos, estou com extrema dificuldade em fazer uma skins para o PHPVMS, Alguem poderia me da uma ajuda ou me mostrar um tutorial? EN Good morning everyone, I'm with extreme difficulty making a skins for PHPVMS, Could someone give me a help or show me a tutorial?
Last reply by levicosta201, -
- 0 replies
- 1.5k views
Hi; I have FlightBookingSystem by parko. And I have to do two modifications. In the schedule_resoults.tpl I have this code: <table width="100%" cellspacing="0" cellpadding="0" border="0"> <?php if(!$allroutes) { echo '<tr><td align="center">No routes have been found!</td></tr>'; return; } ?> <script src="http://skyvector.com/linkchart.js"></script> <thead> <tr style="height:12px; font-size:14px; font-weight:normal"> <th width="20%" align="center">N° de Vuelo</th> <th width="20%" align="center">Origen</th> <th width="20%" align="center">Destino</th> <th width="20%" alig…
Last reply by carlosuc99, -
- 0 replies
- 2.1k views
Hi; I have FlightBookingSystem by parko. And I have to do two modifications. In the schedule_resoults.tpl I have this code: <table width="100%" cellspacing="0" cellpadding="0" border="0"> <?php if(!$allroutes) { echo '<tr><td align="center">No routes have been found!</td></tr>'; return; } ?> <script src="http://skyvector.com/linkchart.js"></script> <thead> <tr style="height:12px; font-size:14px; font-weight:normal"> <th width="20%" align="center">N° de Vuelo</th> <th width="20%" align="center">Origen</th> <th width="20%" align="center">Destino</th> <th width="20%" alig…
Last reply by carlosuc99, -
- 5 replies
- 2.5k views
Hello Gentlemen, I'm in need of your help ... I wanted to put a point system in my company, there because we promote events that worth points ... and I wanted phpvms add this in, I would have in the admin panel to edit information from a pilot field that I could put how many points the pilot have ... and also that it appears on the public page of the pilot and the pilot center ... If someone can create this for me, I would be grateful ... Thanks ...
Last reply by liberie, -
- 2 replies
- 1.9k views
Hello friends ... After I installed the new version of phpvms, several errors were found ... One was about time I send a PIREP, did arrive at the site .. and the FSFK FSACARS not work because of that, I've reseted the Table ACARS at the maintenance and did not work! At the time of acceptance the PIREP, when I click Edit, the following error occurs ... PHP Warning: Invalid argument supplied for foreach() in E:\home\autopecasmilian\Web\kafly\do\admin\templates\pirep_edit.tpl on line 19 The list of Airlines nothing appears, even if I create an admin panel or by the VA phpmyadmin.Minha appears in the database and does not appear in the admin panel See the picture…
Last reply by simpilot, -
- 1 follower
- 5 replies
- 2.4k views
Hi folks I desperately need some assistance for the following - this is for a custom profile field (and it is populated in the table ) Here is the PilotData.Class.php function: public static function getFieldValue($pilotid, $title) { $sql = "SELECT f.fieldid, v.value FROM ".TABLE_PREFIX."customfields f, ".TABLE_PREFIX."fieldvalues v WHERE f.fieldid=v.fieldid AND f.title='$title' AND v.pilotid=$pilotid"; $res = DB::get_row($sql); return $res->value; } In the layout.tpl file, I am trying to display the data as follows: <strong>Pilot VID: </strong> <?php echo PilotData::getFieldValue($pilotid, 'IVAO'); ?> I am getting nothing I have al…
Last reply by clock, -
- 0 replies
- 2.1k views
Hello help me? I'm having trouble because my phpvms not this show the information in pafina / index / profile I already tried the tutotial (Getting variables in templates) more will not Tutorial:(http://forum.phpvms.net/page/index.html/_/skinning-and-customization-guides/getting-variables-in-templates-r34) <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link href="<?php echo SITE_URL?>/lib/skins/flytam/style.css" rel="stylesheet" media="all" /> <?php /*Any custom Javascript should be placed below this line, afte…
Last reply by pedrobrandine, -
- 3 replies
- 3.3k views
Olá todos, me ajudem com minha virtual airline, da um erro e não consigo resolver não aparece o template: The template file "/home/voemerco/public_html/dov//lib/skins/brilliancev1/header.php" doesn't exist in /home/voemerco/public_html/dov/core/classes/TemplateSet.class.php on line 231 link da minha virtual airline! http://voemercosul.com.br/dov/
Last reply by levicosta201, -
- 1 follower
- 6 replies
- 3.3k views
Hi all, im trying make a progress tour table. My actual table is showing the results in vertical with this scheme: pilotid-nºflight-accepted arv187-f1-1 arv187-f2-1 arv187-f3-1 arv220-f1-1 arv220-f2-1 arv220-f3-1 You can see a example here: http://argavirtual.b...la de tours.php This is a bad table then i want show results in horizontal mode, as seen in the example image: But not work well, you can see in the first table (vertical table) that pilot id "307" only have complete the first flight "Ruta1"(HAW1), but in the image attachet he have put a "accepted=1" in "Ruta2"(HAW2). This point exceeds my knowledge and im blocked. This is the code: if (!functio…
Last reply by ARV187, -
- 0 replies
- 2.1k views
As you leave the ACARS map in full screen? As the image below:
Last reply by levicosta201, -
- 1 follower
- 6 replies
- 2.4k 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, -
- 24 replies
- 8.2k views
Hi everyone, I am currently in the proccess of creating a new flight map that looks cleaner and nicer than the google one. It even automatically resizes just to show the routes that have been flown. To use it, I need to find a way to make a list of DEPICAO-ARRICAO,DEPICAO-ARRICAO,DEPICAO-ARRICAO,DEPICAO-ARRICAO. Example: KTPA-KMCO,KMCO-KMHT,KMHT-KMDW,KMDW-KLAS Then, I need to insert that info into an image tag. Example: <img src="http://www.gcmap.com/map?P=KTPA-KMCO,KMCO-KMHT,KMHT-KMDW,KMDW-KLAS&PM=pemr%3Adiamond7%2B%25U&MS=bm&DU=mi" border="0" title="Flight Map" alt="Flight Map" /> How can I go about calling up the info, putting in the KMCO-KTPA,K…
Last reply by Wildone, -
- 5 replies
- 3.7k views
I really want to make custom modules for myself (and maybe others eventually) but I can never do it. How do you pull the data? I can't write the PHP classes. I have read the documentation several times but I'm still stuck.
Last reply by freshJet, -
- 1 reply
- 1.8k views
Hello all, I would like to know how to create pagination in phpvms my site!
Last reply by tutmeister, -
- 1 reply
- 1.7k views
Hello how can i get the new PHPVMS with bootstrap because i don't know how PHPVMS works
Last reply by servetas, -
- 1 reply
- 1.5k views
i need to create a drop down list of all the departure/arrival airports, aircraft outside of the system in an external page, the issues im having at the moment is how can i populate the drop down list with a list of all the unique airports? etc.
Last reply by simpilot, -
- 8 replies
- 4.7k views
I put the following code in my module phpvms: <?php $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?> totalflights -> <?php echo $pilot->totalflights?> totalhours -> <?php echo $pilot->totalhours; ?> But nothing does not appear when the User logs, What can it be? help me!!!!
Last reply by levicosta201, -
- 6 replies
- 3.6k views
Hello all, could someone help me install my skin va, since when I install appears: Notice: The template file "/ home / mysite / public_html / / lib / skins / my_skin / header.php" does not exist in / home / mysite / public_html / core / classes / TemplateSet.class.php on line 231 What's going to help me solve?
Last reply by levicosta201, -
- 1 follower
- 4 replies
- 1.9k 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, -
- 3 replies
- 2.2k views
I coded up an entire ATC system for my site. THe problem is, I can not do sql work worth talking about. My idea is to have a module that consisted of a simple form for an ATC to fill out for login. Once logged in, they would accumulate time on the atc roster and get paid pilot cash for doing so. The nest thing need would be a way to call the information up from the database to show up on the ATC roster which I have coded up already. I will include a screenie of that in the end. Another part that would be most excellent would be if a admin created a ATC group on their site, it would automagically add them to the controller roster that I am gonna show you. From there it w…
Last reply by TAV1702, -
- 0 replies
- 1.3k views
Hi guys, i was wondering if it's possible to create the following addon: I would like to have a statistic page that shows all the pilots and how many hours they have spent in any aircraft they have flown in. I would like this so that i can give out new awards that i am planning to create.. and i think it's a nice feature.. Then it's possible to add more routes for a specific aircraft or even delete aircrafts that are not used much.. Hopefully you guys can help me out with this. Thanks in advance, Lucas
Last reply by MrAmsterdam, -
- 7 replies
- 3.3k views
How i can add the ivao and vatsim status in the pilot list ?
Last reply by vicente, -
- 0 replies
- 1.3k views
hi, how I can create in my airline, submenu? now the skin of my airline is: obssesblue regards
Last reply by El Macara, -
- 3 replies
- 2.6k views
i'm just wondering how hard is it?
Last reply by liberie, -
- 5 replies
- 4.7k views
hello. I have a question. as I can put on my virtual page, this board I saw on the page of virtual phoenix all flights in real time.
Last reply by Vangelis, -
- 3 replies
- 1.7k views
How I can make a search by the ICAO of the airlines only ? For exemple in the schedule_searchform i crate a option to search by the airlines but I want to make a search by the ICAO.For exemplo I create the CVC in the admin center and the code is CVC after I start to create the flight with the CODE CVC1000 EXEMPLE.When the pilot when the pilot is to make a search to find only flight that company show to him only the flight with the code is CVC. How I can do this please ?? And sorry my English is not good!! The Exemple is in the attachments!!!
Last reply by vicente,