Jump to content

web541

Members
  • Posts

    700
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by web541

  1. I have made a TPL version of this skin for whoever wants it. No guarantees that it will work for you (as this was originally made for 5.5.x), but it does include some changes in order to work with older versions of phpvms (e.g. registration page) Ocean_Blue_TPL.zip
  2. Try this <?php if(Auth::LoggedIn()) { if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>'; } ?>
  3. Go into your admin/action.php and find this line error_reporting(E_ALL ^ E_NOTICE); and replace it with this ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
  4. http://forum.phpvms.net/topic/7436-solvedacars-live-map-not-refreshing/#entry49386
  5. I believe what you are talking about it this <?php MainController::Run('Events', 'index'); ?> For the front page and have a look at this for your admin permissions as they are not directly editable http://forum.phpvms.net/topic/21078-restrict-access-to-add-on-manager-pilot-groups/
  6. Have a look at this http://forum.phpvms.net/topic/21225-how-to-have-two-language-on-a-phpvms-website/
  7. You can check this http://forum.phpvms.net/topic/20629-most-common-fixes-phpvms-installation/ But also check your php version, by the looks of things you probably need this https://github.com/DavidJClark/phpvms_5.5.x
  8. Simple mistake. If you need any more assistance, let us know
  9. Did you upload them to your public_html folder? What are the permissions set to? (right click on the files). Is your domain purchased through fivedev or another hosting or provider?
  10. Make sure that all of your files have gone during the process and you have downloaded a fresh copy. Also make sure that every single file has uploaded. By the sound of things, not every file has been uploaded. Make sure you upload them all to your public_html folder
  11. Go into core/local.config.php and make sure that nothing is in there. Usually there is just a <?php at the top, just delete it and it should direct you to the install page
  12. Oh, I meant only put the link through index.php, the form itself should be going through action.php so in your sidebar, put <li><span class="file"> <a href="<?php echo SITE_URL?>/admin/index.php/pilotranking/addaward">Add Award</a> </span></li> And in the form itself put <h3><?php echo $title?></h3> <form id="form" action="<?php echo SITE_URL?>/admin/action.php/pilotranking/awards" method="post"> <dl> <dt>Award Name</dt> <dd><input name="name" type="text" value="<?php echo $award->name;?>" /></dd> <dt>Description</dt> <dd><input name="descrip" type="text" value="<?php echo $award->descrip;?>" /></dd> <dt>Image URL</dt> <dd><input name="image" type="text" value="<?php echo $award->image;?>" /> <p>Enter the full URL, or path from root to the image</p> </dd> <dt></dt> <dd><input type="hidden" name="awardid" value="<?php echo $award->awardid;?>" /> <input type="hidden" name="action" value="<?php echo $action;?>"> <input type="submit" name="submit" value="<?php echo $title;?>" /></dd> </dl> </form>
  13. Ok, again multiple options to choose from. -> phpVMS Utilises jqModal.js for the popup boxes and again requires those ajax calls to function properly 1. You could try and convert the pop up code into a bootstrap modal 2. [What I did] In the sidebar_awards.tpl/php you will see something like this <li><span class="file"> <a id="dialog" class="jqModal" href="<?php echo SITE_URL?>/admin/action.php/pilotranking/addaward">Add Award</a> </span></li> But instead of rendering it through the jqmodal, I just rendered it through index.php without it popping up like this <li><span class="file"> <a href="<?php echo SITE_URL?>/admin/index.php/pilotranking/addaward">Add Award</a> </span></li> You may encounter some pages where once you submit the form, it will duplicate at the bottom or top, but it still submits properly. And also, if the tablesorter grids do not show up or work with the newer version of jquery, you could try going here and updating lib/js/jqgrid/jquery.jqGrid.min.js to the latest version.
  14. You could do 1 of two things which worked for me (I only tried 2 though) 1. Rewrite all the ajax functions to work with an up-to-date jQuery library 2. At the start of each page that you need those ajax calls (e.g. pilots, pireps, schedules, etc.) the best way around that is to put this before any of your code at the very top of the page <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> Then this at the very bottom after all your code <script type="text/javascript"> jQuery.noConflict(true) </script> So for me, this worked with your code <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <div class="airlinelist"> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-bar-chart-o fa-fw"></i> VGroupVirtual Staff Mail</h3> </div> <div class="panel-body"> <h3>Pending Pilots</h3> <?php if(!$allpilots) { echo '<p>There are no pilots!</p>'; return; } ?> <table id="tabledlist" class="table tablesorter"> <thead> <tr> <th>Pilot Name</th> <th>Email Address</th> <th>Location</th> <th>Hub</th> <th>Options</th> </tr> </thead> <tbody> <?php foreach($allpilots as $pilot) { ?> <tr> <td><a href="<?php echo SITE_URL?>/admin/index.php/pilotadmin/viewpilots?action=viewoptions&pilotid=<?php echo $pilot->pilotid;?>"><?php echo $pilot->firstname . ' ' . $pilot->lastname; ?></a></td> <td align="center"><?php echo $pilot->email; ?></td> <td align="center"><?php echo $pilot->location; ?></td> <td align="center"><?php echo $pilot->hub; ?></td> <td align="center" width="1%" nowrap> <button href="<?php echo SITE_URL?>/admin/action.php/pilotadmin/pendingpilots" action="approvepilot" class="btn btn-danger" id="<?php echo $pilot->pilotid;?>">Accept</button> <button href="<?php echo SITE_URL?>/admin/action.php/pilotadmin/pendingpilots" action="rejectpilot" id="<?php echo $pilot->pilotid;?>" class="btn btn-danger ajaxcall {button:{icons:{primary:'ui-icon-circle-close'}}}">Reject</button> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <script type="text/javascript"> jQuery.noConflict(true) </script> Remember to keep jQuery 1.8.3 referenced in your core_htmlhead.tpl/.php file And just FYI, if you're using bootstrap dropdowns in your core_navigation file then you may find that they don't work with the fix above, instead what I did was use this (as it only restores $) <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script type='text/javascript'> jQuery.noConflict(false); </script> At the very top of the core_navigation file and that seemed to fix those issues entirely.
  15. I have made some "trial" code (may or may not work for you) here http://forum.phpvms....nt/#entry122673 and it doesn't allow you to change the flight number in the admin panel, but instead allows pilots to select their aircraft before booking their flight. You can find out more what it does two posts up from the one above. Unfortunately, you still have to assign aircraft when uploading the schedule so it only filters out one aircraft type, however I can modify it for you to show all aircraft in your fleet before booking but it's really up to you. Please Note: As of this point, it doesn't work with smartcars as it uses a different method of getting the aircraft from your database through it's own custom module
  16. web541

    acars map

    Ok, I did it for you You have the following errors NetworkError: A network error occurred. TypeError: $ is not a function http://abs-virtual.com/lib/js/phpvms.js Line 27 TypeError: $ is undefined http://abs-virtual.com/lib/js/acarsmap.js Line 36 You have included the Google Maps API multiple times on this page. This may cause unexpected errors. https://maps.googleapis.com/maps/api/js?libraries=weather&sensor=false Line 84 Do you remember changing anything to do with the acars page (template file, acars.js, etc.) You could try going into your core_htmlhead file and find this line <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> And replace it with this one from your acarsmap.tpl/php (I assume that's where it is) then delete it from that file. <script src="https://maps.googleapis.com/maps/api/js?libraries=weather&sensor=false" type="text/javascript"> </script>
  17. web541

    acars map

    Go into your firefox error console and see if there are any errors and post them here.
  18. I assume this is for an admin skin, As per my discoveries here http://forum.phpvms.net/topic/23055-vacentral-pireps-to-export-wont-display-when-inside-another-div/#entry122172 Any version of jquery above 1.8.3 breaks the Ajax functions required to run phpvms. So I'd change your jquery version back. this will give you a "jQuery 1.9.1 or higher is required for Bootstrap" however the function will still work. If they don't, then you can have your newest version of jQuery placed upin the skin as normal and for the pages such as pilots, schedules and PIREPS, and at the end of the page do a jQuery.noconflict(true) And that should reset the global variable for phpVMS everywhere else but those pages.
  19. Ok, The following are "trial" files for those who want to give this a go, bearing in mind that this may screw up your phpVMS installation if something goes wrong, but I've tested it on two different installations and it seemed to work for me. Please remember to backup your files first before adding these files in as the majority are core files which are needed to run your virtual airline. I cannot guarantee that this module will work 100% with your installation. I have tested this with kACARS_Free and the file PIREP does work as it shows the aircraft booked in the admin panel (PIREPS section). If you are using smartCARS, since it is a payware addon and their code may be (most likely) different to the default one (kACARS module) then it probably won't show your aircraft in the client itself. I could modify the module, but since it is payware, I wouldn't be able to distribute it, much like vaCentral and the live map issue. EDIT: Going by the sticky (any updates will show up here) https://github.com/w...1/FltbookSystem Fltbook SystemPHP.zip Fltbook SystemTPL.zip
  20. I know where you are coming from, basically I'm in the process of designing a module which basically allows you to do the same thing. I'm building on Parkho's FlightBookingSystem module as it searches the schedules really well and gives the option for pilot location/jumpseating. I'm going to keep that in for now and have it so that you can choose which airline each aircraft is appended to, then when you upload schedules, you will only have to put one registration (e.g. N320VA) [it is a B738] in the aircraft column and then I'll get that information on the pilots side but getting which airline that aircraft is appended to and also every other aircraft with the original aircraft's airline and ICAO code (in this case, B738) then allow the pilots to book their own aircraft out of the full list. bear in mind that to avoid confusion, with this you may want to think about adding the ICAO with the each airline. e.g. set one registration as B738AAL and select the airline of AAL- American Airlines then in your excel spreadsheet set the "aircraft column" to B738AAL. If you decide to do that, then I can hide that particular aircraft ICAO off the pilots side so they cannot book it. ^^Starting Point, although I do like Parkho's ideas, so I might add them in later. -- and with that, if a pilot uses ACARS to file the PIREP, as long as the aircraft on the bid is the one they want to fly, the accepting of the PIREP shouldn't matter as long as their registration has carried over. (I think)
  21. Nightmare yes, impossible no. It is possible, I've got the airline-to-aircraft appending working so far and I've got the form which lets the pilot choose the aircraft based on airline and the aircraft type on the schedule itself. I'm only stuck with the part where you have to get the data from the users form through a function to the briefing and then add the bid, unless I just recode the briefing/bidding functions entirely adding variables here and there which is possible.
  22. I've been messing with some code and adding a few functions here and there, I'd be happy to post what I've got soon once I clean it up a little bit as a starting point for someone, but does anyone have any ideas on how we could post the aircraft registration to the schedule? Would I have to modify the addbid function? @parkho, I've been extending your FlightBookingSystem Module if you don't mind (good front end search)?
  23. Try removing the / from Template::show('/'); class spiel4 extends CodonModule { public function index() { Template::Show('spiel4/poker.tpl'); } public function pageone() { Template::Show('spiel4/card_results.tpl'); } public function pagetwo() { Template::Show('spiel4/card_new_game.tpl'); } } --> Just realised,try changing your form action to this in your case <?php echo SITE_URL; ?>/index.php/spiel4/page_one">
  24. Hi Brendan, I believe this is not possible unless you edit some of the phpVMS core files. Just for an option, you could add a column in your sql database and then call it in a form on your schedules_results page to only show aircraft with that airline. That should allow you to create another function somewhere. Or you could create your own module which does the same function.Or if you just want to select an aircraft our of your fleet without checking the airline, you could maybe modify the book flight function. I might have a crack at it later. I'm sure there's a better way to do this.
  25. If you want to sort by Pilot ID, then check out this post http://forum.phpvms.net/topic/4736-can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/ Just copy that code and replace everything in your core/modules/Pilots/Pilots.php
×
×
  • Create New...