-
Posts
1381 -
Joined
-
Last visited
-
Days Won
6
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by Parkho
-
-
Hi and sorry for the delay. On line 561 of the index.blade.php there is a duplicate <a> tag that causes the error. Remove that and it will be fixed. I have updated the download file if you wanna replace with yours.
-
10 hours ago, a7c12a5 said:
Yes, we are working on moving to v7. Thanks @ProAvia
I have the code for V5.x if you're interested.
$c['pid'] = PilotData::GetPilotCode($c['code'], $c['pilotid']); $fieldvalue1 = PilotData::GetFieldValue($c['pid'], 'IVAO ID'); $fieldvalue2 = PilotData::GetFieldValue($c['pid'], 'VATSIM ID'); if($c['online'] == "ivao" OR $c['online'] == "IVAO"){ $c['online'] = '<a crossOrigin="anonymous" href="https://www.ivao.aero/Member.aspx?ID='.$fieldvalue1.'" target="_blank"><img src="https://status.ivao.aero/'.$fieldvalue1.'.png?dark=true" width="150px" height="auto"/></a>'; } if($c['online'] == "vatsim" OR $c['online'] == "VATSIM"){ $c['online'] = '<a href="https://stats.vatsim.net/stats/' . $fieldvalue2 . '" target="_blank"><img src="https://my.vatsim.net/indicators/' . $fieldvalue2 . '" width="150px" height="auto"/></a>'; } if($c['online'] == "offline" OR $c['online'] == "Offline"){ $c['online'] = 'Offline'; }
Place the above in your:
QuoteModules/ACARS.php
Make sure the field values are spelled exactly the same as yours in your system. This will show the pilot badge for either IVAO or VATSIM on live flights table and on the badge it shows if the pilot is "online" or "offline". This will work for both smartCARS2 and smartCARS3. Let me know if you need help implementing this.
-
1
-
-
Good day,
Progressive Web App (PWA) allows users to "install" websites as an application on their desktop (or mobile) and access it like a native app. Interested? send me a PM.
Cheers
-
Yeah, I am maintaining a few airlines and they're not willing to move on to v7. Besides there are not many developers for v7 and admins can't do simple tasks on their own as V7 is pretty complex for them.
-
1
-
-
Well you're right the post is 3 years old and I came across it today. I think it's best if we close the unsolved old posts so people like me wouldn't dare to reply to them so late. Thanks for the update anyways.
-
function lookupICAO() { var icao = $("#airporticao").val(); if (icao.length != 4) { $("#statusbox").html("Please enter the full 4 letter ICAO"); return false; } $("#statusbox").html("Fetching airport data..."); $("#lookupicao").hide(); var url = "https://virtualairlines.eu/airports.php?icao=" + icao + "&callback=?"; console.log("URL: " + url); $.ajax({ url: url, dataType: "jsonp", // Specifies that the request is for JSONP success: function(data) { console.log("Data received: ", data); if (!data.airports || data.airports.length === 0) { $("#statusbox").html("Nothing found. Try entering the full 4 letter ICAO"); $("#lookupicao").show(); return; } $.each(data.airports, function(i, item) { console.log("Processing item: ", item); $("#airporticao").val(icao); $("#airportname").val(item.name); $("#airportcountry").val(item.countryName); $("#airportlat").val(item.lat); $("#airportlong").val(item.lng); $("#fuelprice").val(item.jeta); $("#statusbox").html(""); $("#lookupicao").show(); }); }, error: function(jqxhr, textStatus, error) { var err = textStatus + ", " + error; console.error("Request Failed: " + err); $("#statusbox").html("Error fetching data. Please try again."); $("#lookupicao").show(); } }); return false; }
Change your function to this, it's been tested and working on both Chrome and Firefox
-
On 1/7/2024 at 2:37 AM, Rod said:
So are live flights listed in the pireps table or only flights that have landed and been submitted?
Only submitted pireps will be recorded in pireps table. Live flights are recorded in acars table and will be deleted after the pirep is submitted.
-
53 minutes ago, Rod said:
So basically we have to wait until he disconnects for it to resolve, then hope he doesn't reconnect!
Unfortunately, yes!
-
10 minutes ago, Rod said:
Is their a way to recover his deleted account. Then reactivate it so he is listed in the active roster, then look him up in the phpvms admin / Pilots & Groups / View All Pilots.... to get his IP then block it?
It is not possible to recover the deleted account unless he registers with the same email address. There is one more possibility, Check the bids table, he might still have a bidded flight after account termination. I know acars softwares check for flight bids table to fetch some data
-
11 minutes ago, Rod said:
His pilot id is not in the pilots table anymore, he was already deleted from the pilots table. If the flight is still live how would it be listed in the pireps table until filed?
Thank you for your assistance Parkho
You're welcome, the acars table only updates when the software is connected to the website and is sending flight data, so he might have some other access accounts to your website like the main email and password (just a guess).
-
Like I said the acars software is still on and makes the table refresh, check the pilots table for the pilotid, if it's there, delete their record manually
Repeat this process for them in pireps table.
-
Hello there, if the flight comes back up after removing it from acarsdata table, that means the guy is still connected to your website through the acars software and that means their account is still active on your system
-
TopPilot
This is a my converted TopPilot v5 module to v7.
Install:
- Download and unzip the file
-
Place it in your
.../modules
-
Log In and open Admin page. On the left side bar, click
addons/modules
- The module should appear on table bellow. Click "Activate...".
Support:
You can ask or send issues to my Discord Channel
-
Submitter
-
Submitted09/13/23
-
Category
-
On 4/2/2022 at 8:38 PM, Virtualei said:
Could a search function be added to this module to find out what pilot flew the most hours of a particular month. I know the display shows for the current month but I would like to find out who flew the most hours last month. Thanks in advance
Yes it could but only if you're willing to do a donation 🙂
-
18 minutes ago, DisposableHero said:
Technically, what the main question owner wants does not need a private token or a private api access ... Those checks can be done simply with the public access (public whazzup data).
You can fetch the data (with minimum 15 second interval for both networks), do your checks however you wish and then either store the data in a database table or delete it. If your acars software is sending live data to your phpvms, then you can do your checks live and mark the flight online/offline as you wish. If it is sending all the pirep info after the flight then you need to store the live whazzup data with (prefably utc) time codes (like one copy for every 5 mins and keep the last 24 hours) and then check them according to the pirep (prefably utc) times to see if the pilot was online or not during the flight.
Anyway, these are technical details ... I already did it for phpvms v7 with public api access, so it can be done for v5 too.
Hope you can find your solution for v5.x series.
This is correct and can be done for v5.x as well
-
1 hour ago, YusufBudi said:
Great..
This is the documentation link for IVAO APIv2 https://wiki.ivao.aero/en/home/devops/api/documentation-v2.
I don't know which one you need, but you might want to look at the user session on the private API set.
Also, to use the private API, va must be listed as official in IVAO, and only then they can request the token to use the API. Which i believe is not difficult for Vielma16 and Srilankan Virtual.
Get a token and send it to me in pv
-
33 minutes ago, YusufBudi said:
IMHO, for IVAO, you can try to parse IVAO whazzup data, and compare it to your pilot's flight data. If something match (can be vid, and/or callsign, and/or strings at the remark), then the system tag it online per whazzup download. So you have to set minimum value for the whole flight to be reported as online flight.
Or you can try for their private APIv2, which require token for an approved VA.
But, still i can't write a code for that, so i would like to know too..If you get that API then I'll write the code for it!
-
On 8/12/2021 at 1:21 PM, VIELMA16 said:
Hello,
I would like to know a code with which the network in which a pilot has flown or is flying online can be detected (IVAO / VATSIM or OFFLINE).In my airline, taking into account the current regulations, pilots who do not fly ONLINE in IVAO or VATSIM their flights are rejected. We use smartCARS but I have detected that even if they select fly "ONLINE IN IVAO", for example, they are not flying in IVAO and I want to prevent that.
I really appreciate the help!
Best Regards,
JULIO
You need API from VATSIM or IVAO in order to be able to get your pilot's log info. If your ACARS client somehow logs their record in VATSIM or IVAO networks then you'll be able to fetch that data and apply rules to it. Otherwise, you'll have to just trust your pilots.
-
10 minutes ago, ProAvia said:
As @Parkho suggests, back up your database first. Then, if it doesn't do what you think, you can always restore.
I always thought it recalculated the PIREP count - but I've never had a reason to use it on my live site. But I have been wrong before (just ask my wife 🤣).
😅
-
17 hours ago, Daniboi said:
Hello! Just a quick question, what does the Reset Pilot PIREP count actually mean? Does it mean to update it to 0 (zero) or just readjust them to be right?
I think it will reset the count to zero. Make sure you have a back up before you do the reset.
-
1
-
-
You're not getting the last report arricao.
Try this:
$userinfo= Auth::$userinfo->pilotid;
-
Hello everyone,
This is to announce I have created a Discord channel in case anyone has direct questions or in need of support for my modules. Perhaps it would be best if questions and support requests be posted at the forums so everyone can benefit from them but consider this another way of reaching me. Below is the link to my discord channel.
Regards
Parkho
-
1
-
-
On 8/3/2020 at 5:03 AM, perryfincher said:
Hello;
I may have done something wrong. After installing, we do not get the table as shown in images posted.
We get the following all shifted to the left and not tables.
https://paaclippersva.com/index.php/toppilot
Thanks in advance for any help or assistance.
Check your table prefix, the module's using "phpvms_" as the prefix. If yours is something else, you'll have to change it everywhere inside the module.
-
11 hours ago, ProAvia said:
It almost looks like it isn't pulling the css.
What directory is phpVMS installed in? Is it /public_html/crewcenter/ ?
What directory is crewcenter installed in? Is it /public_html/crewcenter/lib/skins/crewcenter/ ?
Okay! I don't know what to say but I did a fresh install of 5.5x by David and the skin came up but the css is not loading which I think might be the links issue. Thanks for your help guys I much appreciate it.
Cheers
[ADD-ON] Aiviation Weather
in Addons and Downloads
Posted
View File
Aiviation Weather
This is the second module I have converted from phpVMS v5 to v7.
Installation:
.../modules
Support:
You can ask or send issues to my Discord Channel