Jump to content

in2tech

Members
  • Posts

    292
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by in2tech

  1. Yeah that was the code I was talking about earlier that I thought might be causing a problem. So you had it set to 3 and changed it to 4? When I look at your site it is still some 3 digit pilot ID's like AKA100 etc... and it is not ordered properly. Did you change it on a test server?
  2. Mine works now with the original code I posted. Apparently when I was refreshing the page I was not selecting the correct column to sort ( or not selecting one at all and letting it use the default), as soon as I selected the Pilot ID column, it ordered it correctly, even by the airline codes. I will say though I have 4 places in all my pilot ID's and flyalaska only has 3 in some of this lower numbers, so not sure if his will work. Further detail:
  3. Can you show me and flyalaska the code you are using to get it to work please?
  4. I think the default number is set to 4. I think! Someone might also mention this in the phpVMS3 area to see if they can avoid this in the new version.
  5. Yeah I changed the id's on my test server and it did not work for me either. However you do need the matching id in the script and the table for it to work correctly. Epic Fail...sorry It doesn't have anything to do with the pilot length code does it. I saw somewhere when searching you can change the pilot id from like 4 to 3 or I guess 4 to 6, or whatever number of places you want. That's not it, is it? Sorry I tried. If I do figure it out, I'll let you know! Or if you figure it out, or someone, let us know how you did it? SBA1030 SBA1040 Not sorting correctly with the other pilot ID's...
  6. Please make a BACKUP before trying any of my suggestions! At the beginning of your table, right below the DataTable script what do you have? Since you are using #plist , if I am not mistaken you should have: <table class="plist"> Here is mine for pireps_viewall.php ( Of course I do not have over 1,000 pilots on my test server but I am going to try and see if I can change the number higher somehow) Of course it is not BOLD I just did that to show you the matching code! This also lets you change the drop down number selections. BTW, thanks to web541for helping me out originally. I also have this code on the top of each page because I am lazy, to activate the code: <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css"/> <script type="text/javascript" src="https://cdn.datatables.net/v/bs/jq-2.2.3/dt-1.10.12/datatables.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#pireps').dataTable({ "sPaginationType": "full_numbers", "lengthMenu": [ [15, 30, 60, -1], [15, 30, 60, "All"] ] }); }); </script> <table id="pireps" class="table"> It works in the data tables example, under the salary ( not exactly like mine ). I can't imagine the AKA prefix would make a difference, but not sure. https://www.datatables.net BTW, if you get it working there is also code where you can select which column to sort by default. It looks like yours is by Pilot ID! I know that also messed me up one time. Somehow I had my table sorting by default in a column I did not want it too.
  7. flyalaska, Are you using the DataTables pagination or some other pagination? The DataTables code should work. Can you show us what you are using in your code?
  8. I know there there is an option in phpVMS 5.5 to make pilots Active, Inactive, Retired, or Banned. Is there a way to Hide Pilots? I know a lot of admins have rules where pilots have to fly their first flight in 7, 14, 30, etc... first flight, and they hate having those 0 flights on the Pilot Roster. And have 30, 60, and 90 for inactive. But since you already went through the process of approving them, maybe they could not make the 7 day rule and they return not too far in the distant future ready to fly often. Or maybe you have someone fly 30 flights in a month and not come back for 6 month's, you want their data, but not them on the Pilot Roster, unless they are flying every 30 days or whatever your rule is. Is there a way to have on the Registration Form a Reactivate My Account, which would have their original Pilot ID, Name, Email Address, etc.. and all their info, and even make it to where the pilot can reactivate the account themselves or an admin has to do it. Thus removing them from public view on the roster, with their 0 flights, until they soon return ( hopefully ) ready to fly often on your virtual airline. Maybe even have a Group for these Pilots like now, but ONLY hide them from public view. Why make them register again if you have their data already? And the option would be: Did not fly their first flight in 7 days, hide them (from roster public view) and deactivate, NOT delete their account, for X amount of days! Hope I explained this properly.
  9. Try this: <td align="center"><img src="<?php echo RanksData::getRankImage($pilot->rank);?>" alt="<?php echo $pilot->rank;?>" /></td>
  10. I am trying to learn the basic's of CodeIgniter and keep having pretty much the same error on any of the tutorials. I have tried the Static Pages and the News tutorial and I a getting the same error? I can't figure it out, and I don't understand what the user on the CodeIgniter forums is referring too as the error and how to fix it Hoping someone here can help me out. Here is the link to the Static Pages Tutorial: https://www.codeigniter.com/user_guide/tutorial/static_pages.html This is the main error in the controller Pages.php file: An uncaught Exception was encountered Type: ParseError Message: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file Filename: /Applications/MAMP/htdocs/CI/application/controllers/Pages.php Line Number: 12 Backtrace: File: /Applications/MAMP/htdocs/CI/index.php Line: 315 Function: require_once And this is the code it is referring too: public function view($page = 'home') And here is the entire controller Pages.php code: <?php class Pages extends CI_Controller { public function view($page = 'home') { } } public function view($page = 'home') { if ( ! file_exists(APPPATH.'views/pages/'.$page.'.php')) { // Whoops, we don't have a page for that! show_404(); } $data['title'] = ucfirst($page); // Capitalize the first letter $this->load->view('templates/header', $data); $this->load->view('pages/'.$page, $data); $this->load->view('templates/footer', $data); } Any help is much appreciated! Updated #1 - I think I figured it out...I think...I'll get back to you! Updated #2 - I got it working...yeah. I'm actually glad I figured it out myself!
  11. Here is a whole discussion on pagination. Once you get it working it can be used in many places where you need pagination, schedules, pilot roster, etc... Took me awhile to figure it out.
  12. in2tech

    VAForum 2

    TAV1702, I posted in an area about wanting to get involved with the new version of phpVMS 3, or helping and learning to create modules for the new system. Looks like you and have a little bit of knowledge and would like to learn more. I am right one this? Anyway, I asked about a community area to help, learn, etc... about learning PHP and what new standards are used in the new version. I mean I see so many things like Code Igniter, I think it is called, and others, that I am just confused. Maybe someone can guide us towards the right areas. And I hope I am not wrong about you wanting to learn, etc... Maybe we can learn something by trying to modify this open source VA Forum. I really don't know. Not even sure if I can really grasp the concept of PHP, but I think I can eventually If so disregard this! Thanks, DJ
  13. I really like the new forums a lot. I think Dave has been wanting to update the forums for some time. I just want to thank Nabeel , David, all the mods and admins on phpVMS and the community here that helps answer my questions. Once again love the fresh new look. Hopefully other NEW things will come in the future
  14. in2tech

    VAForum 2

    Like I said as I learn more about php I am mainly focusing on the styling of the VAForum2 I think is the last version? So until I come up with my own css, for the time being if you have an HTML or Bootstrap site with buttons already defined in the css, which most do now a days, the VAForum2 will take your css and apply it towards the forum, and replace the text like "Edit Post", etc... and apply a nice styled button to spice it up a bit. I really like the look myself, but to each his own. I also have created, moved, edited, whatever you want to call it the administration functions to be at the top with the Main Index, and they are also there on every page for an admin, not just the first page. Now having said that, I am trying to get the breadcrumb to be below the Main Navigation and right now it is above it and looks kind of weird Here is a screenshot with one of my templates. I have tried it on 2 so far, and the main one I worked on looks fine, and the other just needs some adjustments, because the default css styling is a bit different. But doing it this way mean's that you don't have to upload any buttons and make links to them. Just use the styling that comes with your template to customize it to suit your needs. Still needs some work as I want to make some buttons smaller than others and such. But the main code will be there for everyone to change themselves. Kind of cool I thought: See the breadcrumb code above the main navigation and I am trying to get it below that, and above the board topics Next item on the agenda is to make images that show, post and New post and the images change to alert you that new topics have been posted. I have no idea where to begin on this at this time, but I will eventually figure it out Any help with that is appreciated. Also, adding a Search feature at some point, which may be way above my pay grade at this time Ohh well...let me know what you think so far? And Thanks Tom and SimPilot for the original code.
  15. Save $100.00 Off each package until October 31, 2016! Choose from a complete package or contact us for individual services such as Pilot Center, etc... The first and ONLY the first customer to choose the presently being worked on first Turn Key Solution will receive an extra $100.00 Off! Only one customer and the first is to receive this offer. First come, first serve. You MUST purchase a template license for the Turn Key Solution! You must contact me here on the forums for this offer only so I can keep up with the first customer to accept this offer for the first TURN KEY SOLUTION! A deposit is required on all work! A portfolio of some of my work is on my site! Check our site for all offers and use the contact form to contact me! Daryl
  16. in2tech

    VAForum 2

    Is this VAForum basically an open source project? Meaning that if I make small changes, although it may just be styling for now, that it can be redistributed as long as credit is given to the original authors, and it is available for free for everyone? And how would one go about making images that show the status of a topic like a regular forum, where it is one image with no post and a different image to show new post have been made in a category? One more question since I am trying to learn to code in php. Is a general php forum completely different than the phpVMS forum code because of the structure of core, common, modules, and template structure? I am guessing it is! Thanks for your help,
  17. web541 and flyalaska, Yes the API key for maps. That's exactly what I did! Got the api key and entered it in the core_htmlhead.php file like above. Otherwise it would not work at all correct? And it will not work unless I press the menu links several times or refresh the page several times. phpVMS 5.5 and won't work hardly at all on the default crystal skin! Console errors: Failed to load resource: the server responded with a status of 404 (Not Found) ReferenceError: Can't find variable: google and repeats....
  18. Apparently starting around July 2016 you have to get a code to use Google Maps on your NEW phpVMS installation. I did that, but I have to refresh the page many times before the map shows up. I DO NOT have to do this on my old site that did not require the new code at this time. On that site the map shows up immediately when I click the menu link for the acars map. Any ideas?
  19. Thanks Sava awesome... I always wondered if you could do this... Again, Thanks
  20. Alright besides the No Routes Passed on the schedule results page (what a pain), I having it working on most pages, and now I am trying to get it working on a page with multiple tables. There is a Datatable code for this but I can not get it to work yet on the phpVMS site, except for the test pagination page on my phpVMS site, that it is working on with multiple tables perfectly. On my test pagination page I have 3 tables and they work independently of each other. Meaning I can sort each one separately and also search each one independently of each other, but I can not get it to work on my actual phpVMS page. Here is the datatable code for multiple tables on one page: <script> $(document).ready(function() { $('table.table').DataTable(); } ); </script> <table class="table"> All 3 tables have the same class and work perfectly. Just can not figure out why the page I am working on does not work yet. I even tried a table ID and than a table class like: <script> $(document).ready(function() { $('#fleet.table').DataTable(); } ); </script> <table id="fleet" class="table"> And this did not work. There is another table on the page, but I gave it a separate table ID as not to confuse the Datatable code. Confused again, Thanks for your help! Does anyone have this working with multiple tables on the same page?
  21. Your code caused this: http://screencast.com/t/9UZs7HH2HBa Any ideas? I mean I can click on the individual number like 2, 5, but the 10, 20, 50 is a no go. I actually want to change them to like 5,10,20, etc.... You have it working better than I did And I see code here on the dataTables page: https://datatables.n...tion/lengthMenu But i am not sure how to implement it! Thanks! Got it working! Thank you so much web541, I really appreciate it, more than you know! Now to get that pesky Route Passed stuff working This is what I used off the site and modified it: <script type="text/javascript"> $(document).ready(function() { $('.table').dataTable({ "sPaginationType": "full_numbers", "lengthMenu": [ [5, 10, 15, -1], [5, 10, 15, "All"] ] }); }); </script> I think your code was just missing a bracket, I think Here it is working: http://screencast.com/t/x18iKQki And you can have different options on different pages....awesome! http://screencast.com/t/sk67zEHK5U Once again, many thanks! Now to get it to work on the schedules results page as this is where it shines, as there are so many schedules on sites. And the searching for airports and other options is awesome. Darn No Routes Passed, always causing a problem. Have to get it working! http://screencast.com/t/FSkhYjgGT
  22. web541, Where do I place this code? In the jquery.dataTables.js or in my code on the page? And if in the jQuery.dataTables.js which line is it. I have looked every where in that code! <script type="text/javascript"> $(document).ready(function() { $('.table').dataTable( { "sPaginationType": "full_numbers" } ); } ); </script> Thanks, brand new to this! I am also having trouble with the No Routes Passed on the schedule_results page. And I am using this for the pagination css and it's causing the No Routes Passed, on the schedules page, works on the pilot list and view all pireps. Works on the schedules results but no styling: http://screencast.com/t/AAgPFyoa0q When I get the styling too work, there is the No Routes Passed code on the Schedule Results page: http://screencast.com/t/M4vXDiTazi71 These are the 2 links I got off of the DataTables website: <link rel="stylesheet" type="text/css" href="https://cdn.datatabl...trap.min.css"/> <script type="text/javascript" src="https://cdn.datatabl...n.js"></script> Image of the links: http://screencast.com/t/NDuAe8mCsO https://datatables.n.../bootstrap.html Thanks!
  23. Does anyone know how to change the Pagination Numbers in the Datatable database files? The drop down number: 10 20 50 http://screencast.com/t/u9jjkK0j6TMp Thanks!
  24. It turns out that his jQuery I think it was code needed to be updated. And in the mean time, I just used the accordion that came with the template and modified it to work with his template. Thanks everyone for your help!
  25. I have this code that came with the module and the path is not working to make the accordion work. Any ideas? <!-- Javascript --> <script type="text/javascript" src="<?php echo fileurl('/lib/js/acarsmap.js');?>"></script> <script type="text/javascript" src="<?php echo fileurl('/core/modules/AptInfo/js/tabslides.js');?>"></script> <script type="text/javascript"> function initialize() { var mapDiv = document.getElementById('map-canvas'); var map = new google.maps.Map(mapDiv, { center: new google.maps.LatLng(<?php echo $airport->lat; ?> , <?php echo $airport->lng; ?> ), zoom: 14, mapTypeId: google.maps.MapTypeId.SATELLITE }); } google.maps.event.addDomListener(window, 'load', initialize); </script> I have double checked the path's and they are correct. Just can't figure it out! Thanks for your help!
×
×
  • Create New...