-
Posts
688 -
Joined
-
Last visited
-
Days Won
110
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by DisposableHero
-
Adding News to Landing page (Page before login)
DisposableHero replied to Nacman's topic in Disposable Hero Addons
https://github.com/nabeelio/phpvms/blob/15563e1181dd4b6ae38e161fadb733c6a8392333/resources/views/layouts/default/dashboard/index.blade.php#L83 https://github.com/FatihKoz/DisposableTheme/blob/50ad455eb8ae4f3565723d0dbc1e70f13fee4016/resources/views/layouts/Disposable_v3/dashboard/index.blade.php#L40C44-L40C44 {{ Widget::latestNews(['count' => 3]) }} @widget('latestNews', ['count' => 3]) Both will end up loading the Latest News widget with last 3 news you entered. -
Adding News to Landing page (Page before login)
DisposableHero replied to Nacman's topic in Disposable Hero Addons
This is not related to an addon route or page (because DBasic.news is a page to display all news, not a widget to place somewhere) What you need to do is, placing latest news widget (which is a part of phpvms v7 itself) to your home.blade.php. You can check the default theme's dashboard/index.blade.php or disposable theme's dashboard/index.blade.php to see how widgets are placed in blades. Also Dispo Basic's readme file explains the general logic about placing widgets and configuring them. Even though it gives examples for its own widgets, similar calls can be used for default widgets (like latest news, latest pireps, latest pilots, livemap etc) Good luck -
Considering v7 is open source and can be improved by contributing via GitHub I would kindly suggest NOT to share core code changes here in the forum. Instead if there is an issue within the latest dev, opening a bug report and fixing it with a pull request is the best solution. So then when a new build gets generated (believe me, it is something urgent this happens pretty quick), everyone following/using v7 dev versions can benefit and it will be less risky compared to editing files manually (or advising that). GitHub repository link is on the top menu https://docs.phpvms.net/installation/updating For best and quickest update (considering you do not have custom core file edits), replace item 4 with this; 4. Download latest dev (zip or tar.gz) package and upload it to your hosting via cPanel (or Plesk) file manager (or FTP), unpack using the same file manager and overwrite everything. (if you have edited core files, you may need to apply your changes back but be careful, double check your changes and replaced files, like a config file or .htaccess a service etc.) Safe flights
-
I think this can be done in blade... If you know the codes of awards for hours/pirep counts, then you can alter the foreach loop to show only them at top section (or left section) then the rest at bottom etc. (according to your placing wishes)
-
How To Have Few Virtual Airlines On Single ASCARS?
DisposableHero replied to Aharon's topic in Support Forum
@Aharon You are still at phpVMS Classic (v2/v5) section, just look above your first post, it is clearly displayed there which subsection you are in... Also at forum main page try reading the section headers And what is ASCARS ? As far as I know the airlines' you are flying for are using vmsACARS. Good luck and God speed. -
Errors when inserting tags in custom pages [SOLVED]
DisposableHero replied to Imanol's topic in Support
Understood... The problem is simple, those pages do not have a controller providing you data to use. This is why {{ $user->name }} fails but {{ Auth::user()->name }} works. To be able to use for example $flight, $user or $aircraft you need it to be prepared in the backend (controller) and passed to the view (that page you are visiting), otherwise you will get errors and those pages are not designed to provide you those details. Same applies to translations and helpers (@lang is a helper), try using {{ __('common.profile') }} instead of @lang('common.profile'), it may work. https://laravel.com/docs/10.x/localization#retrieving-translation-strings Good luck -
Errors when inserting tags in custom pages [SOLVED]
DisposableHero replied to Imanol's topic in Support
What is a "custom page" ? Do you have the user model accessible on that custom page you referring ? What does the error details say ? If you can follow the "Getting Help" guide, it will be more easy for others to understand and try helping you out. https://docs.phpvms.net/help#information-required Good luck -
Not advised (or accepted) but possible as long as you can keep track of every commit and/or every changed file. In the end, what is published is the best and approved way to update, it ensures smooth installation of latest build and eliminates human errors. If you want to do it the hard way around, then so be it But be advised, if something goes wrong in your process and you start getting strange results and/or unexpected errors, this method will reduce the support you will get back Good luck PS: If it is only the vendor folder you are worrying about, it is easy to build it with composer commands and with proper entries in composer files if you are using additional packages on your server. You can even build vendors on a local server and then upload to your real server if it does not offer command line access etc.
-
"id" in v7 is the ident of a navaid, not an auto increment field like in v5 series... "TOMBI" or "FRA" as an example and name holds the name of the navigation aid, which is displayed on map popups. Only "id" field is used to identify the data and process on flight maps. Nothing else in v7 uses that navdata table, it is only used to display flight maps which have pre-defined routes (do not mix it up with pirep maps please as they have all the data they need to be drawn on a map -acars position reports and imported route-) If the pilot does not import a route then a great circle gets drawn for "planned route", and acars position reports gets used for "actual route". Example "Flight Map" with navdata being used; Example "Pirep Map" with both planned route (imported from operational flight plan) and actual tracks (this hap has no connection to navdata table of v7); Difference between "Flight Map" and "Planned Route" of a pirep can be seen clearly here. My Navdata is actual but that "flight" does not have any SID/STAR thus the map is drawn with airway connection only. Hope this gives you a clue about the usage of navdata in v7 Good luck on the conversion
-
Technically speaking adding 40k+ airports or any number should not affect the latest loading system, as it is simply searching live as you type or gets the first 20 or 50 to build the dropdown, then loads more as you scroll. There may be another problem (or problems) affecting live search/load. When it is not working be sure to check your browser console for any errors. And be sure what you are importing, is the file fully compatible with v7 (I remember that file having some problems before, did not checked later for updates) And for your question, answer is "Yes" as long as your settings allow automated lookups and unadded airport usage (in some rare cases lookup may fail, like an airport can not be found in VaCentral database, ICAO code mistyped, ICAO code changed etc) Good luck
-
This is for legacy (v2/v5), not for v7 as far as I know and as you can see it is published under phpVMS Classic section of the forum. Good luck
-
Possible other causes of airport dropdowns not working Cross Origin Scripting Errors (APP_URL should match your current url, having http in .env but using https while visiting your website fails due to cross origin restrictions, can be solved either by fixin the APP_URL or allowing cross origin scripting between your domains) Custom Theme Errors (Dropdown live search introduced recently, so if your theme is not properly configured to utilize the scripts and select2 features it will fail) Custom Blade Errors (If you have an edited theme, they need to be updated to utilize the search properly, check provided default theme from original source: github or from latest dev release, implement the necessary changes to your blades) Hope this helps people in the future
-
Great news then @SKD I will check the status field from v5 data and provide a solution for v7 too (not for you anymore but for future Legacy Imports). Enjoy v7 Side Note: Status should be ARR (ARRIVED) for v7 pireps, it is designed like that. When a pirep is finalized/closed by the pilot, it gets this status. So we should set this for imported pireps, even if they are rejected, they should be arrived. Thanks for sharing your findings on this.
-
Unfortunately yes, your imported pireps do not have `submitted_at` data And this is causing the issue because my modules rely on the submit date, not creation date for operational reasons. A kind friend provided some v5 and imported v7 data yesterday night and I saw what I need (Summary; Legacy importer needs to be updated for at least two missing fields) By the mean time, you can copy the created_at field as your submitted_at field in your v7 database with a query (cause the future update of the imported will do the exact same thing)... This will solve your statistic problems, something like below may work; UPDATE pireps SET submitted_at = created_at WHERE submitted_at IS NULL; Good luck
-
What is the `submitted_at` date of your pireps ? I am not asking the v5 pireps, we should check v7 tables from now on. As I am pretty sure those stats do work fine, we need to find the difference between an "imported old pirep" and a fresh v7 one to provide a solution (if it is possible of course)
-
Yeah, exactly what I though Below that part, at line 406 you have the passenger and cargo counts of accepted pireps, which uses laravel's whereIn() function and fails because your placeholders passing the maria/mysql 65k limit. If you check the latest update/version of my Disposable Basic module, you will see that I limited it and now it should pass that line, do not cause an exception and work without pax and cgo counts. BTW, my idea reversing the logic causes inaccurate results due to cancelled, deleted, rejected pireps. Hope it helps. (at least until we find a better solution)
-
Another solution can be reversing the logic for the stats, instead of using whereIn(...) , I can use whereNotIn(...) with rejected pirep id's array That will be much less and below 65k I think for everyone.
-
Probably you will be hitting MySQL/MariaDB's placeholder limits with my module's stat service, it tries to read all accepted pireps and pirep fares to get the pax/cargo counts. If this is the case we can look further to improve that logic with only laravel relationships. Looping thought 170k pireps to get the total count may take some server time though, but we will see how it goes. Another solution would be limiting that feature with 65k pireps, so pax/cgo counts will not work on your setup but will be present on others until they hit 65k pireps
-
Calculating Distance When Importing a Flight
DisposableHero replied to nobleord's topic in General Discussions
Checked flight import code, if the distance is not supplied (empty, null) importer is designed to auto calculate @nobleord ... If it is not working please open a bug report instead of a feature request Safe flights -
Calculating Distance When Importing a Flight
DisposableHero replied to nobleord's topic in General Discussions
Of course, there is a Feature Request option at GitHub, also bug reporting is possible, both being tracked and discussed there. https://github.com/nabeelio/phpvms/issues/new/choose https://github.com/nabeelio/phpvms/issues Safe flights -
Calculating Distance When Importing a Flight
DisposableHero replied to nobleord's topic in General Discussions
It is auto calculated when creating a new flight via admin interface but not during import as far as I remember. -
Yeah we already have "Total Pause Time" in pirep field values, but the OP's question was not about pause, also pause is not counted as flight time as expected. What he wants is simply eliminating sandbaggers with some automation.
-
Did somebody claimed that being an admin would be fun (or not boring, not time consuming) ? You are trying to go the same path with some others, I should not do anything, everything should be automatic, why I am working for this etc. etc. Then I would ask the above question After all, you can have some code to auto reject pireps by comparing planned (scheduled) flight times with actual flight times (side questions; what will happen to free flights, flights without simbrief plans to precisely check times, flights planned for different aircraft types). In the end, this will have side effects though, then you will work to fix the mis-identified ones 'cause a code will never know the difference between sandbagging and real holding (as it is not an AI with tons of resources). It will only look to your schedule and reject a non matching pirep. And when this happens, you will come here again to ask for another feature for inspecting and identifying, correcting those to reduce your workload Still my advise is same, punish and fire them, this will greatly reduce sandbaggers and you will have a clean roster after a while. Safe flights
-
What kind of possibility you are after ? If someone is doing unnecessary holdings, waiting at the gate for hours after landing (gaming term : sandbagging) only option is to reject their pireps (as ProAvia suggested) manually and kick them from your VA (if you are really sure about their actions). You can NOT automate this with a software (here in this forum it is phpvms and vmsacars), so it will NOT be possible unless you come up with an AI, reading your pilots mind, getting all other info (like online traffic, IVAO/VATSIM ATC chatter, weather etc.) and decide if he is sandbagging or holding for something really necessary. Safe flights