Jump to content

ProAvia

Administrators
  • Posts

    1639
  • Joined

  • Last visited

  • Days Won

    70

Everything posted by ProAvia

  1. I was waiting a few days to test it out before posting back here. Change $selected = is_null($selected) ? date('H') : $selected; //current hour to $selected = date('H'); //current hour and change $selected = is_null($selected) ? date('i') : $selected; //current minute to $selected = date('i'); //current minute I also moved the echo statements to the end of the code area. Here's the entire section of the schedule_briefing.php file..... <td> <?php date_default_timezone_set('UTC'); {$r = range(0, 23); // range of hours $selected = date('H'); //current hour //$selected = is_null($selected) ? date('H') : $selected; //current hour $select = "<select name=deph id=dephour>\n"; foreach ($r as $hour) { if(strlen($hour) <2) { $hour = str_pad($hour, 2, "0", STR_PAD_LEFT); } $select .= "<option value=\"$hour\""; $select .= ($hour==$selected) ? ' selected="selected"' : ''; $select .= ">$hour</option>\n"; } $select .= '</select>';} {$rminutes = range(0, 59); //range of minutes $selected = date('i'); //current minute //$selected = is_null($selected) ? date('i') : $selected; //current minute $selectminutes = "<select name=depm id=depmin>\n"; foreach ($rminutes as $minutes) { if(strlen($minutes) <2) { $minutes = str_pad($minutes, 2, "0", STR_PAD_LEFT); } $selectminutes .= "<option value=\"$minutes\""; $selectminutes .= ($minutes==$selected) ? ' selected="selected"' : ''; $selectminutes .= ">$minutes</option>\n"; } $selectminutes .= '</select>';} echo $select; echo "&nbsp;"; echo $selectminutes; ?> </td> I don't know why it works or if it will cause other issues down the line. The time is now correct and the simBrief OFP uses this time in its report. Hoping someone can explain what the sections I deleted/changed are supposed to do.
  2. Thanks Mark! That took care of it. I must have looked right past that setting at least a half dozen times. I also see a default setting in acarsmap.js of 12000 -- but will leave that one be.
  3. The saga continues...... With the following code, the hours still display correctly, but the minutes box also now displays the hour. <td> <?php date_default_timezone_set('UTC'); $r = range(0, 23); // range of hours $selected = is_null($selected) ? date('H') : $selected; //current hour $select = "<select name=deph id=dephour>\n"; foreach ($r as $hour) { if(strlen($hour) <2) { $hour = str_pad($hour, 2, "0", STR_PAD_LEFT); } $select .= "<option value=\"$hour\""; $select .= ($hour==$selected) ? ' selected="selected"' : ''; $select .= ">$hour</option>\n"; } $select .= '</select>'; echo $select; echo "&nbsp;"; $rminutes = range(0, 59); //range of minutes $selected = is_null($selected) ? date('i') : $selected; //current minute $selectminutes = "<select name=depm id=depmin>\n"; foreach ($rminutes as $minutes) { if(strlen($minutes) <2) { $minutes = str_pad($minutes, 2, "0", STR_PAD_LEFT); } $selectminutes .= "<option value=\"$minutes\""; $selectminutes .= ($minutes==$selected) ? ' selected="selected"' : ''; $selectminutes .= ">$minutes</option>\n"; } $selectminutes .= '</select>'; echo $selectminutes; ?> </td> If I move the entire minutes section to above the hour section, minutes displays in the first box and in the second box. Seems - in either case (hour section first or minutes section first) - that the later section will only display what's in the first section. The time send to simBrief is as listed in the hour and minutes boxes. Anyone have any ideas? The generation of the simBrief package works great, it's just this time issue. Also, once it's working correctly, I'd like to increment the returned minutes time by 30 (add 30 minutes).
  4. When clicking on an aircraft in the ACARS map, the nav fixes and route will display (if a route is available). After about 5-7 seconds, the nav fixes disappear (the red route line remains). Is there a way to set the display time longer for the nav fixes? TIA!
  5. I'm having an issue with the minutes box. The hours displays correctly, but the minutes box displays the number 01, regardless of the actual minute time. Both dropdown boxes display the range as listed below. <?php $r = range(1, 24); $selected = is_null($selected) ? date('H') : $selected; $select = "<select name=deph id=dephour>\n"; foreach ($r as $hour) { if(strlen($hour) <2) { $hour = str_pad($hour, 2, "0", STR_PAD_LEFT); } $select .= "<option value=\"$hour\""; $select .= ($hour==$selected) ? ' selected="selected"' : ''; $select .= ">$hour</option>\n"; } $select .= '</select>'; echo $select; echo":"; $rminutes = range(1, 60); $selected = is_null($selected) ? date('i') : $selected; $selectminutes = "<select name=depm id=dephour>\n"; foreach ($rminutes as $minutes) { if(strlen($minutes) <2) { $minutes = str_pad($minutes, 2, "0", STR_PAD_LEFT); } $selectminutes .= "<option value=\"$minutes\""; $selectminutes .= ($hour==$selected) ? ' selected="selected"' : ''; $selectminutes .= ">$minutes</option>\n"; } $selectminutes .= '</select>'; echo $selectminutes; ?> While not 100% sure, I don't think the current minute is being pulled. I did do some research and this line looks correct. $selected = is_null($selected) ? date('i') : $selected; Yes, I know the ranges should be hours (0, 23) and minutes (0, 59). But am using the default code to try to remedy my issue. Any help is greatly appreciated. TIA!
  6. ProAvia

    kACARS Free v1.0.1.4

    Only if you're requiring all users to update to 1.0.1.4 If you wish to allow users to use 1.0.1.1 or 1.0.1.4, just change the "forceOut" line from 1 to 0 $forceOut = 0; // Force disconnect is wrong version 0=no 1=yes This will allow any version of kACARS_Free to connect. And may prove less confusing to those who aren't using P3D v4.
  7. Hi David Yes, family always comes first and foremost! Thank you for your many years of tireless work in this community. Have you given any consideration in how support for your payware modules may be provided in the future? Would it be possible to provide that here on this forum through PM only? What will happen to your payware modules once the Simpilot site is shuttered? Thanks again for your many years of commitment to our hobby!
  8. Hoping that many/most of the present freeware modules are included in version 4, as was stated in the teaser for the now defunct version 3. Or at least an easy fix to existing modules to work with the Laravel framework. It would be a shame to lose many of the existing modules many of us are using.
  9. Seems that you are correct in that the security certificate for https has expired. Loading just now, I see the https has reverted to http - that's totally fine with me.
  10. Is anyone else getting an https warning on their Android device? Or a "Cannot Verify Server Identity" on iOS? Does this have to do with the transfer of hosting from Simpilot to Nabeel?
  11. Thanks for the update gents! I wish I was handy with Laravel. Unfortunately, I had a hard enough time updating my site form 2.1 to 5.5.2 . With the help of the fine people here, I did succeed. I am willing to help beta test it though, when you get closer to full testing. As for the forums, have you given any thought to phpBB 3.2? Free and quite a number of extensions too.
  12. Just thinking out loud here - With the announcement that SimPIlot is closing down his site and http://www.simpilotgroup.com/ ...................... What becomes of VA Central, version 3 of phpVMS and this support forum? It was my understanding that SimPilot was involved in keeping all of this functioning. I do see that Nabeel is working on version 4 of phpVMS. Who will be responsible for VA Central and this sites web hosting after SimPilot closes? I see the front page no longer shows anything about version 3 and appears to have reverted back to the original page (prior to version 3 announcement).
  13. ProAvia

    Ranks

    I added a custom page via admin panel, News & Content, Pages. In that page, I added an html table with headings for hours, rank (name and image), and privileges of that rank.
  14. phpVMS 3 isn't released yet. The most current stable version is phpVMS 5.5.2 by simpliot - which is an update of version 2.x made to work with php 5.
  15. I've noticed that if you scroll down - sometimes a long ways - the information is usually there. Not all of the info is complete though. If you can't find the info you're looking for, just ask in the forums and someone will usually help or point you in the correct direction. There is a wealth of knowledge in the membership here. As for the version numbering - I believe version 2.1.x is probably the oldest. Version 5.5 came next and seems to be named/numbered to indicate it works with php version 5 or 5.5. Lastly, version 3 is the newest, as yet unreleased, version.
  16. Make sure the URL for your site is correct. I believe it should point to your phpVMS folder. So, if your site URL is http://www.MyVA.com and phpVMS is installed in .../MyVA/phpvms - you need to use http://www.MyVA.com/phpvms Be sure there are no trailing spaces or slashes in the URL.
  17. How about this? Works via a cron job to copy the pilot table from one DB to another. https://www.sitekickr.com/blog/replicate-copy-database-table-php/ I personally haven't tried it. Found it via a Google search: https://www.google.com/#q=can+i+setup+a+cron+job+to+copy+a+database+table+to+another+location&spf=117
  18. I'm getting an "Access Denied" message and a pop up to download some Turbo Booster to my Android tablet. This is after converting Russian to English. Of course, I'm not goijg to download any of that stuff. If you are wishing to share your code with the community, please upload to one of the well know sites such as Github. This will also allow you to easily update your code and share with the community. Thanks!
  19. As a single, log in on one and automatically be able to fully access the other - sadly, no. I do have mine set up using the same username and password (I can't control if they use the same password, but do strongly suggest it), on both phpBB and phpVMS. It's kind of a pain to set up their access initially as we don't allow auto-registrations. But if they stay signed in to both, they can transition seamlessly from one to the other via on-site links on both entities. Using TAV1702's options are certainly worth a look see.
  20. ProAvia

    Errors

    Post what line 2031 says. What format is the avatar you are uploading (file extension)?
  21. I think the time used in phpVMS has something to do with where your hosting company is located. I'm not sure if it can be changed. But - you can display a clock with whatever time zone you choose. One place to get a free one is http://www.clocklink.com/
  22. In .../core/common/ PilotData.class.php - look for public static function generate Signature around line 895. A few lines below that you will see the 3 entries you wish to change Total Flights, Total Hours Total Earnings. Back up your original file first, then change only those 3 items. You can then re-generate signatures in the admin panel.
  23. Thanks for the reply On the first error, I think it's showing when a guest attempts to access something in Profile. The times shown in the error log are times members don't appear to be on the site. Since I recently updated to 5.5.2, it may take a bit to single out the issue as a bunch of modules were updated at one time. For the second, the profile_stats.php file is called when you go to access 'My Stats' from the 'My Career' page. http://www.freedomair.us/phpvms
  24. I don't believe this 2 issues are related....... I show this error in the 'error_log' file PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Profile' does not have a method 'phpvms' in /home/rocke2/public_html/freedomair/phpvms/core/classes/MainController.class.php on line 218 I can't figure out how or why this is being called. What is this error actually telling me? I can't get any charts to display in the defaulit phpVMS 5.5.2 file '....\templates\profile_stats.php' - even if I put the file in my skins folder. Any help is much appreciated. Thanks! Contents of profile_stats.php
×
×
  • Create New...