Development Help
For help and support for the development of addons
515 topics in this forum
-
- 1 follower
- 3 replies
- 2.1k 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
- 2.4k 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
- 61k 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, -
- 5 replies
- 2.8k 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, -
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
- 4.5k 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
- 3.5k 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
- 27.2k 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.5k 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
- 4.5k 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.8k 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
- 2.4k 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, -
- 114 replies
- 85.1k 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.9k 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
- 4.1k 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
- 9.6k 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, -
- 6 replies
- 4.1k 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
- 3.4k 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.7k 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
- 2.3k 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 follower
- 7 replies
- 3.4k 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.5k 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, -
- 0 replies
- 1.9k 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, -
- 0 replies
- 1.4k views
close topic tnks
Last reply by pedrobrandine, -
- 1 reply
- 1.3k views
has somehow I put the list of routes (script) on my site external ?
Last reply by pedrobrandine, -
- 1 follower
- 6 replies
- 2.8k views
<script type="text/javascript"> document.getElementById("inner-wrapper").className = "" </script><script type="text/javascript"> <?php /* These are the settings for the Google map. You can see the Google API reference if you want to add more options. There's two options I've added: autozoom: This will automatically center in on/zoom so all your current flights are visible. If false, then the zoom and center you specify will be used instead refreshTime: Time, in seconds * 1000 to refresh the map. The default is 10000 (10 seconds) */ ?> var acars_map_defaults = { autozoom: true, zoom: 4, center: new google.maps.LatLng("<?php echo Confi…
Last reply by simpilot, -
- 3 replies
- 2.6k views
I'm currently creating a script that works with my other systems on the server. I have got a page, which when a user logs in successfully, returns the CID, First Name and Last Name from database. I'd like to make it, so when my page renders, it logs the user into phpVMS. Except, I won't have a password, just CID and name. I can get the userID from the database, using MySQL, but apart from that, I can't see any logical way of doing this. Any ideas?
Last reply by mindfulhacker, -
- 6 replies
- 2.7k views
Here's what I'm wanting to do: 1. have a box on the home page that display the top 5 hubs by different stats (hours, flights, passengers, miles, etc.). 2. I want this to automatically change each month so it's based off of monthly stats. 3. I will change which stats it calculates each month. 4. I want it to automatically place the hub with the highest stat as #1 and the hub with the 2nd most at #2 etc. etc. Anyone know the code for how i could do this? Thanks In Advance! EDIT: I scratched out the things i've gotten done.
Last reply by hurkulez, -
- 11 replies
- 4k views
Hey, I understand someone has a list of the airports in FSX for PHPVMS? Would I be able to pick this file up as I haven't been able to find it in my hunting around. Thanks
Last reply by simpilot, -
I am in the process of creating my own dashboard module, a couple of quick questions. Does all of the php code need to be the module/module.php file? Or can most of the code be placed in the template/template.php file? I'm currently trying to figure out why a form of my is not working, when the form is processed the browser moves onto the process page url but the actual content does not change. Why would this be happening? Thanks,
Last reply by t_bergman,