Jump to content

web541

Members
  • Posts

    700
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by web541

  1. If it isn't showing up (or showing as a white screen), can you please check your browser console (right click, inspect element => console) and post any errors. If the map is loading but there are no flights showing, then enable and check your logging for any DB errors.
  2. If you are using this module then it would be best to contact the developer directly as it is a payware product. If it isn't, first try re-uploading all files (including any .sql files to your mysql database. [phpmyadmin])
  3. I assume you are using phpVMS 5.5.x, it seems that your jQuery is not loading properly, can you try re-uploading this file.
  4. Nothing specifically for MyBB but you could change an existing script (such as this one) to match your database tables. Both the forum and phpvms should be in the same database though, just makes things easier.
  5. Try this <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class Pilots extends CodonModule { public function index() { $this->set('allpilots', PilotData::getAllPilots()); $this->set('pilot_list', PilotData::getAllPilots()); $this->render('pilots_list.php'); } public function reports($pilotid='') { if($pilotid == '') { $this->set('message', 'No pilot specified!'); $this->render('core_error.php'); return; } $this->set('pireps', PIREPData::GetAllReportsForPilot($pilotid)); $this->render('pireps_viewall.php'); } /* Stats stuff for charts */ public function statsdaysdata($pilotid) { $data = PIREPData::getIntervalDataByDays(array('p.pilotid'=>$pilotid), 30); $this->create_line_graph('Past 30 days PIREPs', $data); } public function statsmonthsdata($pilotid) { $data = PIREPData::getIntervalDataByMonth(array('p.pilotid'=>$pilotid), 3); $this->create_line_graph('Monthly Flight Stats', $data); } public function statsaircraftdata($pilotid) { $data = StatsData::PilotAircraftFlownCounts($pilotid); if(!$data) $data = array(); include CORE_LIB_PATH.'/php-ofc-library/open-flash-chart.php'; $d = array(); foreach($data as $ac) { OFCharts::add_data_set($ac->aircraft, floatval($ac->hours)); } echo OFCharts::create_pie_graph('Aircraft Flown'); } protected function create_line_graph($title, $data) { if(!$data) { $data = array(); } $bar_values = array(); $bar_titles = array(); foreach($data as $val) { $bar_titles[] = $val->ym; $bar_values[] = floatval($val->total); } OFCharts::add_data_set($bar_titles, $bar_values); echo OFCharts::create_area_graph($title); } public function RecentFrontPage($count = 5) { $this->set('pilots', PilotData::GetLatestPilots($count)); $this->render('frontpage_recentpilots.php'); } } Make sure the templates you are using match up with this repo
  6. Try this In the file schedule_searchform.php, find this <div id="depapttab"> <p>Select your departure airport:</p> <select id="depicao" name="depicao"> <option value="">Select All</option> <?php if(!$depairports) $depairports = array(); foreach($depairports as $airport) { echo '<option value="'.$airport->icao.'">'.$airport->icao .' ('.$airport->name.')</option>'; } ?> </select> <input type="submit" name="submit" value="Find Flights" /> </div> <div id="arrapttab"> <p>Select your arrival airport:</p> <select id="arricao" name="arricao"> <option value="">Select All</option> <?php if(!$depairports) $depairports = array(); foreach($depairports as $airport) { echo '<option value="'.$airport->icao.'">'.$airport->icao .' ('.$airport->name.')</option>'; } ?> </select> <input type="submit" name="submit" value="Find Flights" /> </div> Replace it with this <div id="depapttab"> <p>Select your departure airport:</p> <input type="text" name="depicao" /> <input type="submit" name="submit" value="Find Flights" /> </div> <div id="arrapttab"> <p>Select your arrival airport:</p> <input type="text" name="arricao" /> <input type="submit" name="submit" value="Find Flights" /> </div>
  7. Haven't tested this, but you can try this Download and place the following files in a new folder called lib core/modules/Keys/(lib) https://github.com/Moc/teamspeak3/tree/master/libraries/TeamSpeak3 I assume that's the library you were previously using, I've just linked it differently.
  8. What version of phpVMS are you using? If you're using phpVMS 5.5.x, try replacing that function with this one public static function approve_pirep_post($id) { $pirepid = $id; if($pirepid == '') return; $pirep_details = PIREPData::GetReportDetails($pirepid); # See if it's already been accepted if(intval($pirep_details->accepted) == PIREP_ACCEPTED) return; PIREPData::ChangePIREPStatus($pirepid, PIREP_ACCEPTED); // 1 is accepted LogData::addLog(Auth::$userinfo->pilotid, 'Approved PIREP #' . $pirepid); # Call the event CodonEvent::Dispatch('pirep_accepted', 'PIREPAdmin', $pirep_details); }
  9. No, keep what you've got at the moment as it is a more stable version than the .tpl version for PHP 7.0 at this time. For the foreseeable future, phpVMS is being introduced and yes, it should be able to migrate your current database. In regards to the modules, you'd have to ask Nabeel, but I'm pretty sure they won't work (at least straight out of the box anyway) due to the nature of the new framework (designed differently), and will require at the very least minimal tweaking or a complete recode. v4 will be the most up-to-date version (including PHP 7.0) at the time of its release, so it's probably wise to stay where you are currently and wait for further progress.
  10. Yes, phpVMS version 4 is currently in development and is not ready for installation.
  11. Nice! Finally a version with an up-to-date framework in the works. I've used Laravel in the past (and still do in some side projects) and loved it, so interesting to see how this pans out. Will it be using 5.4? And I'll ask this before you get it a thousand times, will there be a converter from v2/5.5.x?
  12. phpVMS v3 has not officially been released yet and there hasn't been an update on the github repo. in over 4 months, so it's currently on hold. That version there is probably an unfinished version which is not meant to be run yet. If you are looking to install phpVMS at the current time, try this one https://github.com/DavidJClark/phpvms_5.5.x When phpVMS v3 gets released (or gets an official update), I have no idea, but I guess we wait.
  13. web541

    vStatsCenter

    Where are you calling this? Try adapting it to this https://forum.phpvms.net/topic/1062-popupnewsmodule/?do=findComment&comment=127409
  14. As stated above, can you please post the code for your custom form. If you are using the default contact page, then check here https://github.com/DavidJClark/phpvms_5.5.x/blob/master/core/modules/Contact/Contact.php#L76 and change ADMIN_EMAIL to "ceo@url.com" This is not what you are after, but in case you were wondering. https://forum.phpvms.net/topic/1317-request-contact-form-mod/?do=findComment&comment=8116
  15. Can you check that in your database "_customfields" table you have the column 'required'.
  16. Go to your CustomProfileFields inside your admin panel, and add one called "IVAO ID" (without the quotes) Then make a new module called IVAO or something (just put a folder called IVAO in the modules folder), like this: -- core --- modules ---- IVAO ----- IVAO.php Inside IVAO.php put this <?php class IVAO extends CodonModule { public function index() { $pilots = PilotData::getAllPilots(); foreach($pilots as $pilot) { $fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID'); if($fieldvalue != '') { if(strlen($fieldvalue) < 5) { continue; } if (!is_numeric($fieldvalue)) { continue; } echo $fieldvalue.'<br />'; } } } Then you should be able to go to http://yourvaurl.com/index.php/IVAO and see all the ID's on one page. Also, you can put this code on your pilot roster to help so they can see which pilot is who <?php echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID'); ?>
  17. Is this for the same user (the one that has logged in?) If so, try this <?php echo FinanceData::FormatMoney(Auth::$userinfo->totalpay); ?>
  18. This is possible (I would think), but due to the nature of phpVMS it could prove to be a very hard task. If it was the same DB for both va's then that would be easy, just change the info, but for one pilot's table for both (might end up being easier to make them register for both). You'd probably have to change the PilotsData.class.php and the Auth.class.php files (and any others that reference the _pilots table in a raw query, but these are usually in these data classes anyway) in order to connect to another DB first, then do the query it wants.
  19. Change that line to this <td colspan="0" align="left" ><b><?php echo $route->distance . Config::Get('UNITS') ;?></b></td> and see if that works
  20. Yep, I personally wouldn't have that many airports as you lose optimisation, I only have the ones I use connected to the schedules.
  21. I've made this one and it does pretty much what you're after and allows the pilot to select their aircraft when booking instead of booking the one attached to the schedule (which may not be what you're after). It also goes by pilot current location. It's a bit tedious to set up, but it does the job. Others have also contributed their share https://github.com/parkho/FlightBookingSystem.V1.1 well known https://github.com/DavidJClark/phpVMS-ScheduleSearch | https://github.com/DavidJClark/phpVMS-RealScheduleLite kinda old, but does the job http://php-mods.eu/phpvms.php?module=real-booking-system Payware https://www.crazycreatives.com/downloads/category/phpvms-modules/ Payware There's also a few more floating around.
  22. Console says that you don't have the phpvms.css file located in your files. Verify that in lib/css there is a file called phpvms.css. If there's not, re-download phpvms and place it in that directory.
  23. Check your browser console, looks like it might be a jQuery issue.
  24. web541

    vStatsCenter

    Go to core/common/VStatsData.class.php Replace all of public function with public static function and it should continue to work.
  25. Can you try clearing your cache (just incase) and because of the acars map refreshing, can you check if the entry is re-populated into the acars_data table in your database. It seems it is re-registering as the response here http://prs.flyafava.com/action.php/acars/data
×
×
  • Create New...