Development Help
For help and support for the development of addons
523 topics in this forum
-
- 2 replies
- 1.2k views
I have a module I am building where I have extracted the pilots current location based off of this code: $last_location = PIREPData::getLastReports($pilotid,1, PIREP_ACCEPTED); However, this will only output the ICAO of the airport and not its actual name. Is it possible to get phpvms to pull the full airport name as it is inside the airports table of the database?
Last reply by t_bergman, -
- 2 replies
- 1.2k views
The other day one of the pilots in my VA tried to download an item from our Fleet page which ended up resulting in an Error 404 (it was removed from the server) and prior to this we had no "real" Error 404 page. Since then, I have made a new error page within the templates folder and it displays when applicable now. However, whenever that page comes up, it shows the login box in the corner of the screen rather than the user ID of the pilot logged in. As soon you go to a different page, it shows that you're logged in properly. Is there something I need to do to make sure it shows if you're logged in or not? All I did was copy files from other pages and redo code as necessa…
Last reply by JareBearPilot, -
- 1 reply
- 1k views
Help bring the search form airports in frontpage_mainI put this code, but the data from the database are not displayed. <select type="text" name="a" class="input-text full-width" placeholder="Введите код годода отправления" /> <option value="">ИКАО вылета</option> <?php if(!$depairports) $depairports = array(); foreach($depairports as $airport) { echo '<option value="'.$airport->icao.'">'.$airport->icao .' ('.$airport->name.')</option>'; } ?> </select>
Last reply by web541, -
- 1 follower
- 9 replies
- 1.9k views
Hey. I want to use a variable of my own module in the frontage main. How I get access to that variable? I tried this Template::Set('MODULE_TEST', $clients); but does not work... Thats the answer from this topic. Many thanks!
Last reply by Karamellwuerfel, -
- 4 replies
- 5.9k views
Ok gurus, I need your help once again. This time I am up to no good. Well, it is good so yeah. Anyhow, What I want to do is use some code to pull every image in a directory and display it on a page. I am attempting to do this using the glob function. Problem is, it is wanting to put index.php before my image directory and that breaks the images obviously. if I use the old ../ trick, the page goes blank. If I try to hard code the entire url (which i know is not right and not to do but for testing), same thing, page goes all blank. I have even tried to , even though I knew better, to use use the old php echo url thing and no such love, once again, blank page. …
Last reply by TAV1702, -
- 1 follower
- 3 replies
- 1.8k views
Hi, I wanna make an logbook for the profile page, but I get an error: Parse error: syntax error, unexpected '(' on line 225 This is the code : <?php $count = 6; $pireps = PIREPData::getRecentReportsByCount($userinfo->pilotid) ($count); <--LINE 225 ?> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); echo '<tr><td><div class="label label-sm label-primary"><i class="fa fa-plane"></i></div> '.$pirep->firstname.' '.$pilotinfo->las…
Last reply by Vangelis, -
- 3 replies
- 1.9k views
Hi everybody, I have installed the Real Booking System v1 module on my website. I have a problem during installation to the next step: In case you have installed Realbooking-v1.5_phpVMS 5.5, you will have to include the code below in your local.config.php. Define ('REALBOOKING', X); Where X please replace with a number you have not used yet. By default number 1 is defined for PAYSOURCE_PHPVMS. First I do not know or exactly put the line "define ('REALBOOKING', X);" In the file "local.config.php". Secondly I do not know what number to put to replace the "X" ... Finally I think that because I do not insert this line the module does not find me airport, plane, or line…
Last reply by servetas, -
- 2 followers
- 169 replies
- 54.2k views
Is it possible to have a flight board that first checks the system time and then displays the following. Flight Number - Departure ICAO - Arrival - Aircraft - Status This would be eye candy, rather than actual status, since most of us have more flights than pilots. The board would display only flights with an arrival time within 2 hours of system time. Flight status would, depending onwhere they are in relation to system time, be on time, arriving, arrived. I suppose something similar could be done for departures, but I'm trying to keep it as simple as possible. Does this sound like something that could be done? Or, maybe I should ask if it has already been done…
Last reply by Vangelis, -
- 1 follower
- 1 reply
- 1.6k views
Help me with the code. I'm trying to do so on the page of the Airport (HUB module), displays a list of planes that are currently at this airport. I'm trying to take some code from the module (RealScheduleLite), but the page out only the aircraft which have not yet done a single flight. Below the code of the page (hub master) hubview.tpl <div class="container">[/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=4]<br>[/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=4]<div class="row">[/size][/font][/color] [color=#333333][font=Arial, Helvetica, sans-serif][size=4]<div class="col-md-3"> &…
Last reply by bass, -
- 5 replies
- 2.4k views
Hey guys, Not the best when it comes to this and will need a little help. I am looking to implement something which seems simple, for each schedule I want to be able to add "Airline which operates this route" with the option to add an airline logo. So with this added, on schedule search it will show in the results the airline logo on each individual schedule and also on the briefing page and live flight map. If anyone knows of how to do this or is willing to make it or guide me then that will be helpful. If payment is needed then I will pay you Many thanks & hope I made sense
Last reply by Industrialshadow, -
- 0 replies
- 995 views
Help put a map with the route of flight on the page with the briefing.
Last reply by bass, -
During the last days, i read posts from a lot of members who are using phpVMS which have to do with the navdata database table. I think that there must be a website where anyone will be able to download this db table and do changes on the current navdata db table in order to share them with the other phpvms users. I would like to create a simple website where everyone will be able to update the navdata file. After that, a specific team will check if the changes are correct in order to edit the current navdata database table. What do you think about it? Of course, we have to find out a basic version of navdata database table. If anyone has anything to suggest to me, plea…
Last reply by hurkulez, -
- 12 replies
- 4k views
Hi guys... i'm the developer of a italian VA. I wrote a module for the admin panel to permit us to assign some details to the pilots only bly clicking on a button. I'd taken some snippets from addons like VStats and others... i've a versione of my phpVMS running on XAMPP (local webserver) and the module works fine! But when i upload my files on the server for the VA site, my admin panel doesn't shows my module. The files are correctly updaloded, The folders' permission is quite good, the same of the others addons i'm running on my admin panel. On my local phpVMS i'm running the same addons of the software on my webserver... Bu the way, i can't view my module in my adm…
Last reply by Gofast77, -
- 8 replies
- 2.8k views
Is their a code to use that will make your website work with all web browsers. IE,Google Chrome, and Fire Fox. If u look at my site using IE and Chrome it looks wierd, but if use Fox it looks the right way.
Last reply by Sava, -
- 15 replies
- 25.7k views
I know this is a long shot, For the few who use IP Board, is there a MOD that will automatically register a new pilot to the board?
Last reply by BAPilot, -
Free flight
by kenny- 2 replies
- 2.1k views
Hi man! I wanted to know if you can also pay for free flights or charter . Now if a pilot makes a flight by checking the " charter flight" option in the ACARS , it is not paid and are not even calculated fuel costs . I wish I could also pay those who make free flights , perhaps by calculating a percentage less than the full pay ... Thanks
Last reply by kenny, -
- 9 replies
- 3.8k views
Hello, I really want to know how to add/change a Google Maps style to the ACARS map, I really want to add this style here: https://snazzymaps.com/style/55/subtle-greyscale-map But literally have no idea how to do so.
Last reply by web541, -
- 2 replies
- 1.6k views
Hello everyone! I'm in the process of developing and beta testing simFDR, which is a new flight data recorder for Flight Simulator as well as a cloud logbook service. It's based around the code that Delta Virtual and Air France / KLM Virtual have used for over a decade. It's a really, really good, high-fidelity flight data recorder for flight simulation. While our mission is centered around logging every flight in every aircraft (not just for Virtual Airlines) we do have an extensive VA integration API. You can read about it here: https://www.simfdr.com/va_api.do Would anyone be interested in writing a VA plugin that handles these four web services for phpVMS? I believ…
Last reply by Luke, -
- 3 replies
- 2k views
Hello, I have smartcars2 for my va. I want to add integrated pirep system also for extra option for our pilots. this module is free and i downlod it. but i don't know where to put which file. Is anyone already have this or know how to install ? Thanks
Last reply by OmerAslan, -
- 1 follower
- 114 replies
- 35.5k views
Nabeel what im trying to do is once a pilot is approved then a forum account is created, I have the creation script i just need to put it in to the trigger which i want to be the approve button, or thinking on further maybe when you click the pilots name i could add a button to create a forum account as well. The easiest option would be to get the script to fire reading the profile name email etc when the approve pilot button is hit, so i suppose the question is what happens now when you double click the accept pilot. Hope i make some kind of sence, Thanks
Last reply by web541, -
- 1 follower
- 4 replies
- 1.6k views
Hi all, I am having a problem when trying to log in using both the GitHub Version and Free Version of APVAcars. Here is the error I'm getting: An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll Additional information: Conversion from string " <div id="codon_crit_error" Line affected: If GetPageAsString("verify", "&pilotID=" & My.Settings.PilotId & "&password=" & My.Settings.PilotPassword & "") = 0 Then I have removed the details from the login fields for security reasons obviously. I would appreciate any help I can get. Thanks!
Last reply by TadMiles, -
- 1 follower
- 1 reply
- 1.4k views
Hello, I have downloaded a free login form template but I can't make it work. My VA is at pilot.liftair.eu. Here is the code:
Last reply by Vangelis, -
- 23 replies
- 8.7k views
Hey everyone got another technical question. I am developing a external module which will be run under the same domain but different directory to my local phpbms installation and I want to integrate the login feature, so it only displays content to users who are logged in and redirects other users to the login form. Thanks for the help.
Last reply by danydj96, -
- 1 follower
- 6 replies
- 3.6k views
Hello everyone, I come to share with you an issue that I did in my code Virtual Air Lines, this code snippet will remove the error: "no route passed". Hope that is useful to the community! First in: /core/modules/Schedules/Schedules.php search for: public function addbid() { inside this function search for the variable: $routeid = $this->get->id; Replace the variable above for: $routeid = $_GET['bid']; Then search for the file: /core/templates/schedule_results.tpl open this file and search for: <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Add to Bid</a> Replace the abo…
Last reply by bpruett72, -
- 6 replies
- 2.9k views
Hi all, I'm trying to figure out how I can go about editing the stock standard phpVMS flight board that appears under the acars map and creating a table with different shaded rows much like the image I've attached. Basically I want to edit the original flight board to look just like the digital flight boards you see on the screens at the airport. So does anyone know how I might go about creating such a thing or if there is already a code out there for it? I'm stumped as to how to do it and I'm not particularly wanting to fork out a bazillion dollars just for a page of code. Thanks
Last reply by Heritage1, -
- 7 replies
- 2.2k views
Firstly, I'd like to start by saying my coding knowledge is non-existent, but I'd very much like to learn! How would I go about displaying a custom profile field, which is just text, on another page? Any help with code snippets or links to the right section of the documentation would be really helpful! Thanks!
Last reply by web541, -
- 3 replies
- 1.9k views
Hello, For my VA i want to change the pilot list to show the pilots not by all of our hubs but by an Custom Field Value. The name of this field is Status and the three possible Values are "IVAO Pilot" "Active Pilot" and "Inactive Member". It would be great if you could help us. Thank you, Bastian Wagne (Cologne International VA)
Last reply by ctabuyo, -
- 1 reply
- 1.3k views
Hello, can someone do that ??? So that when you add flights can be inserted links to different files and that they are displayed in the table then SHEDULES screenshots below with an explanation.
Last reply by web541, -
- 1 follower
- 7 replies
- 2.9k views
Sorry is this is posted OT. I purchased Crazy Creatives Download Center and installed it per instructions. I had to modify it for compatibility with phpVMS 5.5.x and php 5.5.45, most static functions. However, whenever I try to upload a file through admin I get the following errors: I sent a note to Crazy Creatives, however they stated earlier they were busy right now. Anyone find a solution to this error? Thank you, -Ken
Last reply by KenG, -
- 1 reply
- 1.2k views
Hi I'm currently messing around with this module on the site to make it look as clean as possible to fit the look of our site and I am happy with the results and the module is great. The only thing I would like to do is change the map which shows the booked flight route to use the google map (like the standard live acars map) Has anyone managed this. Current code looks like below. <th align="center"colspan="4">Flight Map</th> </tr> <tr> <td width="100%" colspan="4"> <?php $string = ""; $string = $string.$route->depicao.'+-+'.$route->arricao.',+'; ?> <img width="100%"…
Last reply by Soundman9,