Jump to content

servetas

Moderators
  • Content count

    1688
  • Joined

  • Last visited

Everything posted by servetas

  1. Pilot Awards System v1.3 Create award categories (General Awards, Tour Awards etc) and add specific awards on each one. Issue a specific award more than once to each pilot. Set a specific comment for each award assignment. Just like the default version, you can include your pilot’s assigned awards to their pilot profiles or their public profiles. Show the latest award issues on any part of your website. Set auto awards settings. Currently, the settings which are offered are: Hours Check, Flights Check, Landing Rates Check and Days of Membership Check. Run the auto awards settings on your own via the admin center or create a cron-job in order to automatically assign the appropriate awards to your pilots. More information about the module can be found here. Also, we have built a live demo website which can be found here. The manual of this module can be found here. You can any time request support for this module via opening a support ticket on our own billing system. For more information, do not hesitate to contact us.
  2. How to change "Bid added" text [SOLVED]

    The "Bid added" is included within your core/modules/Schedules/Schedules.php file. It should be around line 144. ___________________________________________ phpVMS Modules | Web Hosting | Pilot Awards (w/Auto Awards) | Pilot Shop | Real Booking System | Forum System
  3. Adding a different reg to my fleet livery

    As soon as you have the psd files of the livery I believe that you should be able to do the required changes.
  4. Yes of course, Have't you kept the installers of the modules? If no, you will probably have to get into your phpVMS files and database and move them to your new phpVMS installation. _________________________________________ phpVMS Modules | Web Hosting | Pilot Awards (w/Auto Awards) | Pilot Shop | Real Booking System | Forum System
  5. Hmmm, what you request is not that easy because it may require a few work to be done. Open the core/common/PIREPData.class.php file and find this: public static function deleteField($id) { $sql = 'DELETE FROM ' . TABLE_PREFIX . 'pirepfields WHERE fieldid=' . $id; $res = DB::query($sql); if (DB::errno() != 0) return false; return true; //TODO: delete all of the field values! //$sql = 'DELETE FROM '.TABLE_PREFIX.' } after this, add the following part of code: public static function getSumByField($pilotid, $field) { $sql = "SELECT SUM(v.value) AS total FROM ".TABLE_PREFIX."pirepvalues AS v LEFT JOIN ".TABLE_PREFIX."pireps AS p ON p.pirepid=v.pirepid WHERE v.fieldid='$field' AND p.pilotid='$pilotid' AND v.value REGEXP '^[0-9]+$'"; $total = DB::get_row($sql); if(!$total) return 0; return $total->total; } Then within the pilot's center or any other part of your website, you can use the following code to show the total points. Just ensure that the pilot really submits numbers within the points section although I added an extra check within the where statement. <?php echo PIREPData::getSumByField(SET_HERE_THE_PILOT_ID, SET_HERE_THE_FIELD_ID); ?> Do not forget to update the SET_HERE_THE_PILOT_ID and SET_HERE_THE_FIELD_ID values accordingly. I did not test it but it should work. Let me know if it does. ___________________________________________ phpVMS Modules | Web Hosting | Pilot Awards (w/Auto Awards) | Pilot Shop | Real Booking System | Forum System
  6. Schedule Notes in ACARS?

    Have you try to get in touch with the developers of smartCARS? Considering that the community does not have access to the core part of the smartCARS, we are not able to assist you to this.
  7. Access Error

    According to this I can see that parkho has a break on line 64. If you have something that looks almost identical I would suggest you to just remove the break statement. If you are not sure about what do do, paste here lines 70-80 and we will be able to review it. I assume that line 73 has probably a break statement
  8. Mix TPL & PHP modules?

    What do you see after you click on the search button? What is your website url?
  9. Recaptha on php7

    Found this: https://github.com/tutsplus/how-to-integrate-google-no-captcha-recaptcha-on-your-website/blob/master/recaptchalib.php Does your recaptchalib.php look alike? If yes, try to replace this: function ReCaptcha with this: function __contruct
  10. Mix TPL & PHP modules?

    Are you using a different table prefix for your database tables? The module is set to query the phpvms_schedules database table. Does it exist?
  11. Mix TPL & PHP modules?

    Follow the steps below: 1) Open the core/common/FrontSchedulesData.class.php and where "public function" replace with "public static function". 2) Open the core/modules/FrontSchedules/FrontSchedules.php and where ".tpl" replace with ".php". 3) Open the core/templates directory and change the name of the "airport_search.tpl" file to "airport_search.php". They should work correctly afterwards.
  12. Mix TPL & PHP modules?

    Yes they can but you will have to make a few changes in order to make it work correctly. Which module are you trying to install on 5.5?
  13. Code

    This is an English speaking forum plus the fact that I do not speak French yet :D. Please write in English
  14. Code

    Your function has a few errors. First of all. you are saying "SUM(`final_score`) AS final_score" which means that the return will be titled as final_score and then you are doing an if using the title score. In " return ($result->score == '') ? 0 : $result->score; " you will have to replace score with final_score. Also, where are you getting the $pilotid variable in the function from? You should pass it in the function arguments or remove it. Have you added the final_score column in the pireps table?
  15. Listing schedules

    Are you running the above pasted code within your phpVMS website? Where have you placed it?
  16. Benchmark Landing Rate

    Why/where do you want to set it? Do you want to give the awards and penalties automatically according to the landing rate?
  17. Pilot ID in admin pilot list [SOLVED]

    In that case you will have to make a couple of changes. First of all, open your admin/modules/PilotAdmin/PilotAdmin.php file and find this: foreach($allpilots as $row) { $status = ($row->retired==0) ? 'Active' : 'Retired'; $location = '<img src="'.Countries::getCountryImage($row->location).'" alt="'.$row->location.'" />'; $edit = '<a href="'.adminurl('/pilotadmin/viewpilots?action=viewoptions&pilotid='.$row->pilotid).'">Edit</a>'; $tmp = array( 'id' => $row->id, 'cell' => array( # Each column, in order $row->id, $row->firstname, $row->lastname, $row->email, $location, $status, $row->rank, $row->totalflights, $row->totalhours, $row->lastip, $edit, ), ); $json['rows'][] = $tmp; } And replace it with this: foreach($allpilots as $row) { $pilotid = PilotData::getPilotCode($row->code, $row->pilotid); $status = ($row->retired==0) ? 'Active' : 'Retired'; $location = '<img src="'.Countries::getCountryImage($row->location).'" alt="'.$row->location.'" />'; $edit = '<a href="'.adminurl('/pilotadmin/viewpilots?action=viewoptions&pilotid='.$row->pilotid).'">Edit</a>'; $tmp = array( 'id' => $row->id, 'cell' => array( # Each column, in order $row->id, $pilotid, $row->firstname, $row->lastname, $row->email, $location, $status, $row->rank, $row->totalflights, $row->totalhours, $row->lastip, $edit, ), ); $json['rows'][] = $tmp; } Then open your admin/templates/pilots_list.tpl, find this: $("#grid").jqGrid({ url: '<?php echo adminaction('/pilotadmin/getpilotsjson');?>', datatype: 'json', mtype: 'GET', colNames: ['','First', 'Last', 'Email', 'Location', 'Status', 'Rank', 'Flights', 'Hours', 'IP', 'Edit'], colModel : [ {index: 'id', name: 'id', hidden: true, search: false }, {index: 'firstname', name : 'firstname',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}}, {index: 'lastname', name : 'lastname', sortable : true, align: 'left', searchoptions:{sopt:['in']}}, {index: 'email', name : 'email', sortable : true, align: 'left',searchoptions:{sopt:['li']}}, {index: 'location', name : 'location', sortable : true, align: 'center',searchoptions:{sopt:['eq','ne']}}, {index: 'status', name : 'status', sortable : true, align: 'center',searchoptions:{sopt:['in']}}, {index: 'rank', name : 'rank', sortable : true, align: 'center', searchoptions:{sopt:['eq','ne']}}, {index: 'totalflights', name : 'totalflights', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'totalhours', name : 'totalhours', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'lastip', name : 'lastip', sortable : true, align: 'center', searchoptions:{sopt:['in']}}, {index: '', name : '', sortable : true, align: 'center', search: false} ], pager: '#pager', rowNum: 25, sortname: 'lastname', sortorder: 'asc', viewrecords: true, autowidth: true, height: '100%' }); and replace it with this: $("#grid").jqGrid({ url: '<?php echo adminaction('/pilotadmin/getpilotsjson');?>', datatype: 'json', mtype: 'GET', colNames: ['','Pilot ID', 'First', 'Last', 'Email', 'Location', 'Status', 'Rank', 'Flights', 'Hours', 'IP', 'Edit'], colModel : [ {index: 'id', name: 'id', hidden: true, search: false }, {index: 'pilotid', name : 'pilotid',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}}, {index: 'firstname', name : 'firstname',sortable : true, align: 'left', search: 'true', searchoptions:{sopt:['in']}}, {index: 'lastname', name : 'lastname', sortable : true, align: 'left', searchoptions:{sopt:['in']}}, {index: 'email', name : 'email', sortable : true, align: 'left',searchoptions:{sopt:['li']}}, {index: 'location', name : 'location', sortable : true, align: 'center',searchoptions:{sopt:['eq','ne']}}, {index: 'status', name : 'status', sortable : true, align: 'center',searchoptions:{sopt:['in']}}, {index: 'rank', name : 'rank', sortable : true, align: 'center', searchoptions:{sopt:['eq','ne']}}, {index: 'totalflights', name : 'totalflights', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'totalhours', name : 'totalhours', sortable : true, align: 'center',searchoptions:{sopt:['lt','gt']}}, {index: 'lastip', name : 'lastip', sortable : true, align: 'center', searchoptions:{sopt:['in']}}, {index: '', name : '', sortable : true, align: 'center', search: false} ], pager: '#pager', rowNum: 25, sortname: 'lastname', sortorder: 'asc', viewrecords: true, autowidth: true, height: '100%' }); Do not forget to keep a backup of the files that you should edit to ensure that you will be able to "come back" in case something breaks out.
  18. Pilot ID in admin pilot list [SOLVED]

    First of all, which phpVMS version are you using? v2 or v5? As far as I know, v5 already includes that. Please let us know and we should be able to give you the most practical solution.
  19. Live Map iFrame Not Working

    I checked the console log and I can see that error: Load denied by X-Frame-Options: http://fsxccvirtual.com/index.php/acars does not permit cross-origin framing. Check this for more information: https://stackoverflow.com/questions/38699221/load-denied-by-x-frame-options-does-not-permit-framing I believe that it has to do with your web hosting provider's settings.
  20. Live Map iFrame Not Working

    What is the page that you have added the iframe?
  21. Schedule export problem [SOLVED]

    I do not believe that this is the issue but can you try the following solution? Open your admin/modules/Import/Import.php, on lines 305-306 you should have something like this: $line = "{$s->code},{$s->flightnum},{$s->depicao},{$s->arricao},"."{$s->route},{$s->registration},{$s->flightlevel},{$s->distance}," . "{$s->deptime},{$s->arrtime},{$s->flighttime},{$s->notes},"."{$s->price},{$s->flighttype},{$s->daysofweek},{$s->enabled},{$s->week1},{$s->week2},{$s->week3},{$s->week4}"; As you can see, I have remove all the spaces between all the elements and especially the {$s->daysofweek}. Could you please attach your Import.php file? The most practical way is running a mysql command through phpMyAdmin as soon as you import your schedules that will automatically select all the days of the week. UPDATE phpvms_schedules SET daysofweek='0123456', week1='0123456', week2='0123456', week3='0123456', week4='0123456' WHERE 1; Just do not forget to replace "phpvms_" with your own database tables prefix if you are using a different one.
  22. Non Flown Flights by PHP-Mods

    Version 1.1

    11 downloads

    This module is going to create a simple list (based on the default schedules list) which will include the flights which have not been flown yet but a pilot. This is based on the schedule's departure and arrival airport ICAO codes. How to Install? Download the module from the link you will find below. Copy and upload the files, same as the structure of your phpVMS website. If you want to link your VA's pilots to this module, use this part of code: www.yousite.com/index.php/NonFlownFlt -or- <?php echo url('/NonFlownFlt'); ?> Please note that this module is only accessible to the users who have logged in on your phpVMS website. Download This module has been uploaded on GitHub and it can be downloaded via here. We would suggest you to use the Github url as it includes all of the rest changes made to the module. Support Support will be offered by this forum. If you have any question/suggestion or request do not hesitate to let us know. I am not going to answer any personal messages requesting support for this module. License Registered Under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License Please do not remove the copyright notice as it is part of the Creative Commons License which module is licensed under. Have Fun!
  23. Rules and Regulations by PHP-Mods

    Version 1.1

    14 downloads

    You can add rules categories and add new rules to these categories. After that you may remove the Registration for from the public and just redirect your users to this page. The user has to accept the rules in order to proceed with his registration on your virtual airline. This module was developed by php-mods and it is registered under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. How to Install? Copy and upload the files same as the structure as your phpvms files. Run R&RInstallSql - this is going to install the database tables. Delete R&RInstallSql folder. (IMPORTANT) If you want to link your website's visitors/users to this module, use this: www.yoursite.com/index.php/RuleRegs -or- <?php echo url('/RuleRegs'); ?> Download The module has been uploaded on Github and you can download it here. We would suggest you to use the Github url as it includes all of the rest changes made to the module. Support will be offered by this forum. If you have any questions do not hesitate to contact us.
  24. Pilot Career Page by PHP-Mods

    Version 1.1

    19 downloads

    This module is going to show your pilot ranks and awards on phpVMS. It was developed by php-mods and it is registered under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. How to Install? Copy and upload the files same as the structure as your phpvms files. If you want to link your website's visitors/users to this module, use this: www.yoursite.com/index.php/career -or- <?php echo url('/career'); ?> Download The module has been uploaded on Github and you can download it here. We would suggest you to use the Github url as it includes all of the rest changes made to the module. Support will be offered by this forum. If you have any questions do not hesitate to contact us. PS: For those you are using Pilot Awards System (by PHP-Mods), this module needs some customization in order to work in collaboration with your module.
  25. Version 1.2

    12 downloads

    Add or edit your faq categories. Show them in public and help your pilots solve their questions about your virtual airline etc. How to Install? Copy and upload the files same as the structure as your phpvms files. If you want to link your website's visitors/users to this module, use this: www.yoursite.com/index.php/FAQ -or- <?php echo url('/FAQ'); ?> More information about the module can be found here. Support will be offered by this forum. If you have any questions do not hesitate to contact us. For more information, do not hesitate to contact us.
×