Jump to content

ProAvia

Administrators
  • Posts

    1646
  • Joined

  • Last visited

  • Days Won

    71

Everything posted by ProAvia

  1. I really can't tell you which version of PHP you should run. But I can say that I'm running phpVMS 5.5.2 on PHP version 5.6.18. phpVMS 5.5.2 runs fine on PHP 5.6.18 - with a few fixable errors. I'm still in the process of going through everything and attempting to fix any errors with some older modules. I believe it's been mentioned that phpVMS 5.5.2 will NOT run on PHP version 7.x. But, I personally haven't tried it.
  2. phpVMS 5.5.2 When attempting to access the Admin Activity Logs via Admin, Site & Settings, I receive the following: Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3 bytes) in /home/xxxxxx/public_html/xxxxxxxxxx/phpvmsTEST/core/classes/ezdb/ezdb_mysqli.class.php on line 287 I'm using the original file provided with version 5.5.2. Is this something I need to worry about and is there a fix? Thanks for any insight! EDIT: Disregard - I think I found my issue. Search is my friend! ----- walking away, shaking my head ------- Search is my.......
  3. Thanks! Looks like there is BBcode in here - at least some basic ones. I think some of the icons in the editor are BBcode based. Spoiler
  4. Finally had time to test this again - too many "honey-do's" this week in preparation for the holidays. I tried your original files again and it worked this time. No other changes were made. Then tried with your updated FrontSchedulesData.class.php and that also works. Is there an easy way to add pagination to this? Say, after every 12 schedules listed. Thanks!!
  5. Thanks web541 - that was fast! You rock! All search combinations work except when trying to search by aircraft type. Either only by aircraft type or adding the aircraft type to any other search. Searching by aircraft type in /schedules works but not in /FrontSchedules. No entries in error_log. You mention better solutions. Please list - payware and freeware if available.
  6. I guess I'm late to the game.... Had this working perfectly on version 2.x. Install on version 5.5 and got "No routes found." - along with a few errors. Fixed the errors, but still getting "No routes found.". Hoping David (simpilot) or someone else has time to look at it and hopefully provide a fix. TIA!
  7. I may have a slightly newer version than you Ray. At the end of that line, mine states: // Edit this value to set the max LOA Duration I think (as in I'm not positive) you would set it to the number of days - plus 1 day. So if you limit an LOA to 90 days, it will expire on day 91. This provides the pilot a full 90 days of LOA.
  8. I think we'll find out in the next few days! Now that these 2 are fixed, I can test out the other modules I have. Let us know if you fix any also.
  9. phpVMS 5.5.2 - Latest version of ScreenShotCenter (see post one up from this for link) Just in case anyone is getting this error: Deprecated: Non-static method Screenshots::show_random_screenshot() should not be called statically, assuming $this from incompatible context in ... layout.php Here's a possible fix - try calling it like this $allpics = new Screenshots (); $allpics->show_random_screenshot(); Instead of Screenshots::show_random_screenshot(); Thanks to web541 for pointing me in the correct direction. See this post:
  10. Thanks web541 - that works great! First I used your revised call - and that worked to get rid of the error. Then I added your modified '... core/modules/PopUpNews/PopUpNews.php' file - and the error is still gone. The only reason I added your modded php file was to preclude other issues in the future. Now to figure out exactly what your did and why. Then off to see if I can fix basically the same issue in the Screenshots module. Thanks again!! EDIT: Screenshots module fix same way Called as $allpics = new Screenshots (); $allpics->show_random_screenshot(); Instead of Screenshots::show_random_screenshot(); Will post that in the Screenshots thread also in case it helps someone else out.
  11. Thanks for looking Ray! I'm just now getting around to upgrading from version 2.x to 5.5.2 . Quite the challenge - and maybe I'll even learn something... LOL I do know on my live version 2.x phpVMS, that when our host upgraded to php 5.6, we had a ton of errors. Many were fixed (not by me though) by suppressing the error.
  12. Yeah - i could suppress the error, but would rather have a way to fix it. Wanted to fix this one first and possibly use the same fix on other modules as well. I guess worst case would be to fix all the strict standards errors with older - not updated - modules and then suppress all of this type. If there were an easy fix out there, we'd probably know of it by now.
  13. As I'm not familiar with the inner workings of Invision Power Board, I have a few questions.... Is BBcode available here? If not, can the HTML equivalents be used? I do see the icons for Link, Quote and Code. What I'm wondering about is the use of 'spoiler' and a few other ones I use elsewhere from time to time. The 'spoiler' might make it easier to read some posts as anything behind 'spoiler' would be condensed until a user click the 'spoiler' wording. Or is there a way to easily add more formatting options via a WYSIWYG editor? Thanks for any insight!
  14. Thanks for the reply Sava I'll stick just to the PopUpNews module here..... The 'PopUpNewsData.class.php' in core/common already has the 'static' wording - but there is no 'PopUpNewsList ()...' in that file. <?php //simpilotgroup addon module for phpVMS virtual airline system // //simpilotgroup addon modules are licenced under the following license: //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) //To view full icense text visit http://creativecommons.org/licenses/by-nc-sa/3.0/ // //@author David Clark (simpilot) //@copyright Copyright (c) 2009-2012, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ class PopUpNewsData extends CodonData { public static function popupnewsitem($id) { $query = 'SELECT * FROM ' . TABLE_PREFIX .'news WHERE id=' . DB::escape($id) . ' '; return DB::get_row($query); } public static function get_news_list($howmany) { $sql = 'SELECT id, subject, body, postedby, UNIX_TIMESTAMP(postdate) AS postdate FROM ' . TABLE_PREFIX .'news ORDER BY postdate DESC LIMIT '.DB::escape($howmany); return DB::get_results($sql); } } However, the 'PopUpNews.php' in core/modules has the 'PopUpNewsList ()...' item. But when I add 'static' to that line, only my background image and header show - with an error of Fatal error: Using $this when not in object context in /home/xxxxxx/public_html/xxxxxxxxxx/phpvmsTEST2/core/modules/PopUpNews/PopUpNews.php on line 33. Here is the content of that file - without the 'static'. <?php //simpilotgroup addon module for phpVMS virtual airline system // //simpilotgroup addon modules are licenced under the following license: //Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) //To view full icense text visit http://creativecommons.org/licenses/by-nc-sa/3.0/ // //@author David Clark (simpilot) //@copyright Copyright (c) 2009-2012, David Clark //@license http://creativecommons.org/licenses/by-nc-sa/3.0/ class PopUpNews extends CodonModule { public function popupnewsitem($id) { $id = intval($id); if(!is_numeric($id)){header('Location: '.url('/'));} $result = PopUpNewsData::popupnewsitem($id); $this->title = $result->subject; Template::Set('item', $result); Template::Show('popupnews/popupnews_item'); } public function PopUpNewsList($howmany = 5) { $howmany = intval($howmany); if(!is_numeric($howmany)){exit;} $res = PopUpNewsData::get_news_list($howmany); $this->set('news', $res); $this->show('popupnews/popupnews_list'); echo '<div style="text-align: center; font-size: 10px;"><a href="http://www.simpilotgroup.com">PopUpNews &copy simpilotgroup.com</a></div>'; } } I am using phpVMS 5.5.2, skin is 'vairline' and PopUpNews is called in the layout.php as <div id="box"> <h3><font color="#0066FF">FreedomAir NOTFAP's</font></h3> <?php PopUpNews::PopUpNewsList(5); ?> </div> Does all this look correct? Could the issue be related to the skin itself?
  15. Hi Ray Any luck on solving the "this" error? I'm getting it with the PopUpNews module and the Screenshots module. I get the news and random screenshot to show, but the error displays just above each item. Deprecated: Non-static method PopUpNews::PopUpNewsList() should not be called statically, assuming $this from incompatible context in ..... layout.php Deprecated: Non-static method Screenshots::show_random_screenshot() should not be called statically, assuming $this from incompatible context in ... layout.php phpVMS 5.5.2 - latest PopUpNews and Screenshots modules - PHP 5.6.18 Thanks for any insight! Gene
  16. Thanks David! That resolved the issue for me. It WAS occurring by clicking the link from the main site and from using a direct forum link. Both now go directly to the forum.
  17. Like the updated look! I'd guess it includes an update of the forum software too - and better security. Thanks to David and the rest of the team for all you do! I about had a heart attack the other day when the forums were down. I'm in the middle of an upgrade to 5.5.2 from 2.x and will probably be in need of assistance shortly. One issue I had with the old forum which continues into this one - on my Android tablet the forum redirects to: br-update.com/u/4182 . IIRC, someone else has reported this issue also. All works fine in Win7 with IE11 and Chrome. Also no issues with iPhone access. The issue seems related only to Android. Are others on Android experiencing this issue also? Anyone able to rectify it?
  18. I really think it may be better to install the newest version in parallel with the old version. This will give you time to tweak and correct any issues you may (will) experience with the new version - while having a working version (the old version) for your members to use. You hosting company may decide to upgrade and will probably only provide you will a couple weeks notice at best. Do you want to risk having a non-functioning site until you have the necessary time to complete the change over to the new version? How many members might you lose if your site goes down for several weeks while you are scrambling to update and make the site functional again? An additional plus is you will probably be able to get support here easier if you're on the newer version. Just my opinion - now back to my own update/conversion........
  19. It works with P3D, X-Plane and FSX-SE - in addition to FSX and FS9. The user (pilot) has to install a current version of FSUIPC (FS/P3 only) or XPUIPC (XP only) to make it work on their systems. FSUIPC/XPUIPC will interface on the users computer with the sim and kACARS. Your site and your pilots must use the same version of kACARS. And your pilots must set up and run their kACARS to connect correctly with your site.
  20. How about Online Flight Planner? http://onlineflightplanner.org/ It allows various export options (FSX, X-Plane, PMDG, etc) and the user can select a specific AIRAC cycle (from most current all the way back to cycle 0511). It uses Route Finder for the routing, includes WX and fuel also. There's also http://simroutes.com -but it appears to load an error page at present. Either/both are easily integrated into phpVMS by editing and renaming the Route Finder module.
  21. I have been unable to get any events to display other than those of the current month. When viewing months other than the current month, the current month's events displayed - same current month's events no matter what month I selected. After finding a blog by a gentleman named David Walsh (possible original code for the php calendar) and doing a bit of reading of the comments there, I was able to get all events to show in their correct month. I am not a PHP coder. I only edited one existing file in Strider's original package. There may be a more efficient way to achieve the same outcome I was able to attain. There are just a few minor changes/additions to the code in "TourCalendar.tpl". The attached fie contains my edited file. Of course, the calendar display is specific to my site and the format may not match yours - this includes everything between the <style> </style> tags near the top of the file - so don't change that in your file if your calendar display already fits well with your site. Changes which corrected my issue from above are between " /* keep going with days... */ " and " /** QUERY THE DATABASE ..... " TourCalendar.zip
  22. Hi Austin Thanks for the response! I'm quite new to phpVMS, exactly where is the 'Delete Multiple Routes' box? Gene
  23. Our pilots can fly ANY aircraft in our inventory, regardless of pilot rank - but we want to restrict aircraft to specific routes. We have aircraft assigned to specific categories, and assign one or more categories to a specific flight number. This allows our pilots to fly a range of aircraft available for a given route. Ideally, having the aircraft names and/or aircraft category show in the schedule and having a drop down box listing only those aircraft available for a specific flight on the 'File a Flight Report' page is what we are after. Is it possible to assign multiple aircraft types to a given route? For example: Route - KPHX-KDEN, Route number 740, Aircraft - B738, A320, B757. If it is possible, is there a module yet - or exactly how would one go about writing this module? Or, can any existing module(s) be added to/adapted for our purposes? Thanks in advance for any help and direction you can provide! Gene
×
×
  • Create New...