Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Please contact him directly for his services.
  2. Cool, you should send a pull request to the GitHub account, maybe Nabeel will update the code next time he does a merge.
  3. http://forum.phpvms.net/topic/6962-code-now-hosted-at-github/
  4. You just need to make the same adjustments to the schedule results as you did in the default schedule results.
  5. You have to adjust the tables in the template files to fit your individual template. There are only generic layouts provided with modules.
  6. Refresh that function one time. For some reason the system does not see the file the first time after it is installed, I have not had time to back trace it as to why.
  7. Do other air mail functions work for sending mail? If so, do some of the pilots get the NOTAM? If so, does it stop at the same use each time? If not, are you using a character that is not supported by your settings in mysql?
  8. simpilot

    New PHP

    It must be a older version that I have not encountered. I have not seen any errors in the admin side yet. Just have to work your way thorugh them I guess.
  9. Most likely you need the 2.0 release that can be found here -> https://github.com/DavidJClark/phpVMS-ScreenShotCenter/releases It is a file extension issue between versions -> http://forum.phpvms.net/topic/18860-i-have-a-xxxxxxtpl-file-not-found-error/
  10. simpilot

    New PHP

    I have repaired a few sites where hosts have migrated over to PHP 5.4.x - The latest was hosted on Bluehost - http://virtualamericanusa.com Each one has taken something a little different it seems, especially depending on modules that have been installed. I am finding that the modules everyone has written, myself included, were not written thinking about the pending release of php 5.4 It is just a tedious process to work your way through every page to find all the errors. The main things to change to at least get a page to show can be found at: https://github.com/O...078481e8389523d - after that you just have ot work your way through to find the errors and repair them one by one.
  11. Tom has a robust Hub Stats class here -> https://github.com/t...erritt/HubStats Why not use that and call the airports you want to include in a region and just add them together on the fly? <?php $flights = (HubStats::CountFlights(ABCD) + HubStats::CountFlights(EFGH) + HubStats::CountFlights(IJKL)); ?>
  12. You can also use the built in function StatsData::TopRoutes($airline_code) which also will cache the data for a couple of hours (on release versions of phpVMS) to lighten the load on the system.
  13. I cannot see your site to see if you are still getting the error or not but either the database name, username, or password, or two or more of them must be incorrect. Remember that your individual database user and password is generally different than the one that you use to login to PHPMyAdmin.
  14. Your host has probably upgraded to php 5.4 - Search the forums for strict standards and you will find a number of different solutions, one of which should work for the version you are using.
  15. Good Night....
  16. Add a classes to it then use the class in the sections that you want to; a.news { color: #FF0000; } then <a class="news" href="yourlink">news link</a>
  17. Don't know what to tell you then, if they are not logging in to get the downloads at least then they are not very interested in anything else I guess.
  18. Have you tried replacing the file with a new one since the intrusion? I ran into a few sites that had edits in native phpvms fies.
  19. I use an auto register and login api for the forum and put all downloads, or at least the links to them, in the forum. That at least gets one visit.
  20. simpilot

    Routes

    I am not sure why I even find it necesarry to respond to one of the more arrogant members of this forum but quite frankly how I respond to a thread that I have been named in, is of no matter to you Vanity. You seem to have an issue with most posts I make, most often when it has nothing to do with you. I am going to lock this post now, why, because I can and I am tired of your rhetoric against anyone starting a VA and if they have permission and your need to make comments that have nothing to do with the thread or you in any way.
  21. I found it easier to use the action.php method which goes skinless and just set the map to 100% like I did here -> http://www.virtualac.../map/fullscreen <- this uses the Leaf map instead of the Google map but you can use the same concept, plus you do not have to hack a core file subject to update.
  22. simpilot

    Routes

    The VA world is a small one, always remember that.
  23. You have copied the necessary code into your post <?php echo 'Pilot average landing rate '.TouchdownStatsData::pilot_average('pilot#'); ?> Replace the 'pilot#' with the variable that contains the raw pilot id from the database for the page that you are on, it varies from page to page and is unavailable on some.
  24. Are you filling the variables with the data needed for the form?
  25. There is a section deep in the PilotData.class.php file function that builds the signature that should look something like this depending on the version; # Add the country flag, line it up with the first line, which is the # pilot code/name $country = strtolower($pilot->location); if(file_exists(SITE_ROOT.'/lib/images/countries/'.$country.'.png')) { $flagimg = imagecreatefrompng(SITE_ROOT.'/lib/images/countries/'.$country.'.png'); if(Config::Get('SIGNATURE_USE_CUSTOM_FONT') == false) { $ret = imagecopy($img, $flagimg, strlen($output[0])*$fontwidth, ($yoffset+($stepsize/2)-5.5), 0, 0, 16, 11); } else { # figure out where it would go $ret = imagecopy($img, $flagimg, $flag_bb[4]+5, $flag_bb[5]+2, 0, 0, 16, 11); } } It should calculate the placement automatically but if you have altered the class to change the size it is probably not seeing that and you will have to adjust it manually which may be a little tough with names of different lengths. The section - $flag_bb[4]+5, $flag_bb[5]+2, 0, 0, 16, 11 - is what sets the image location on the background. The settings are explained here -> http://www.php.net/manual/en/function.imagecopy.php
×
×
  • Create New...