Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. I have not done it but you should have no issue integrating it into the existing templates. For the main gallery display - screenshots_viewer.tpl - I would imagine you would just wrap the img code on line 50 in the jQuery div.
  2. In your local.config.php file adjust the center lat and long to your preference; # Google Map Options Config::Set('MAP_WIDTH', '800px'); Config::Set('MAP_HEIGHT', '600px'); # Valid types are G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP Config::Set('MAP_TYPE', 'G_PHYSICAL_MAP'); Config::Set('MAP_LINE_COLOR', '#ff0000'); Config::Set('MAP_CENTER_LAT', '45.484400'); Config::Set('MAP_CENTER_LNG', '-62.334821'); Config::Set('MAP_ZOOM_LEVEL', 12);
  3. Looking here -> http://www.virtualual.com/index.php/touchdownstats it looks as though the module is working correctly. How are you including it on your front page? It almost looks like you have just added the html from the stats template into the front page template and are not filling the variable. If this is the method you are using you need to fill the variable in your controller (module) file using something like; $this->set->('stats', TouchdownStatsData::get_stats('10')); or just call the function from within the template using something like; <?php MainController::Run('TouchDownStats', 'top_landings', '10'); ?> There are number of other ways to use the module as well listed here -> http://forum.phpvms.net/topic/2989-touchdownstats-10/
  4. I will look at updating the module for that fucntionality
  5. All code in hosted at github, the link is in my signature.
  6. You need to set the time zone for your server in a php.ini file or you can add date_default_timezone_set('America/Los_Angeles'); to your local config. You can find the available time zones in php here -> http://php.net/manual/en/timezones.php You can change the date format for phpvms globaly in the local config file, I am not sure if I used the phpvms default date format in this addon or not, if not you will have to change it inthe template files. You can find the mages here -> https://github.com/DavidJClark/phpVMS-AirMail/tree/master/core/modules/Mail/assets
  7. I am not sure exactly what you are asking. I think you are trying to order the mail items in the inbox from newest to oldest instead of the other way around. If I am right, open /core/common/MailData.class.php and find line 21 ORDER BY date ASC"; and change it to ORDER BY date DESC"; Save the file and it should now order the mail from newest to oldest.
  8. What version are you running? I have run into the same issue with the latest beta. I am looking for the cause, When a pirep is accepted for a pilot the system recalculates the hours and pireps for that pilot correctly, it just seems to be within the maintenance functions somewhere.
  9. The error is almost always caused by introducing white space or characters into a core php file prior to the opening php tag or after the closing tag. Take a look at any of the core files that you have edited and look for white space or a random character in these locations. The error is reporting that it is in Result.php but that may not be correct as the error will carry through a few files before it is displayed sometimes. There are also a number of threads in the forum from previous posters that have had the same problem if you search "Cannot modify header information"
  10. It looks like the system is getting your data as there are PIREPS recorded today and I also see what is left of a live flight for "UFC345 Brent Lowe" towards the bottom of the list under the map. It must be something on the VACentral side I am guessing. Also moving the thread to the VaCentral forum.
  11. There is a function buried in the PilotData.class.php file almost at the end; generateSignature
  12. Drop me an email Joeri, I just intergrated a wordpress install with phpVMS. The backends are seperate but I adapted the phpVMS template I made for them to the wordpress template and you can not really tell that it is two different sites.
  13. Are your PIREPS and such showing up and nothing on the map, or is just the map not showing your flights?
  14. It is within the acarsmap.tpl file <?php /* This is the template for the little map bubble which pops up when you click on a flight Same principle as above, keep the <%=...%> tags intact. The same variables are available to use here as are available above. */ ?> <script type="text/html" id="acars_map_bubble"> <span style="font-size: 10px; text-align:left; width: 100%" align="left"> <a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a><br /> <strong>Flight <%=flight.flightnum%></strong> (<%=flight.depicao%> to <%=flight.arricao%>)<br /> <strong>Status: </strong><%=flight.phasedetail%><br /> <strong>Dist/Time Remain: </strong><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%><br /> </span> </script>
  15. I am pretty sure you should be using "localhost" for your sql server address on FiveDev
  16. Joeri's prices are reasonable and he delivers ontime, which in itself can be priceless.
  17. @MrAmsterdam - I have an update for the flightboard letters, send me an email and I will get the files to you.
  18. I just pushed an update to github. There was an error in the variable order in admin/modules/credits.php when saving a new credit. The only changes to the module were in that file.
  19. Are you putting the entries in the correct places in the form and also adding the http:// to the entry?
  20. That is something that can be integrated into the next version. Right now there is nothing to hook into the user list and start an airmail from there. Great idea though.
  21. @DAL3 Seeing as you started this thread a month ago and you seem to be more intent on bashing than actually trying to find what you are looking for I am going to lock the thread. If your member list is correct you have a self proclaimed ACARS developer within the airline anyway, which leads me to believe even more that you are here only to try and bring down an existing application. May the future bring you success with your VA.
  22. Credits 1.0 phpVMS module to create a credits and partners page for your phpVMS based virtual airline. Released under the following license: Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License Developed by: simpilot - David Clark www.simpilotgroup.com www.david-clark.net Developed on: phpVMS v2.1.934-158 php 5.3.4 mysql 5.0.7 apache 2.2.17 Install Using Simpilotgroup Plugin Manager -Download the package -Upload the package to your site using the plugin manager -Use the auto-install from the plugin manager Install Manually: -Download the package. -Unzip the package and place the files as structured in your root phpVMS install. -Use the credits.sql file to create the tables needed in your sql database using phpmyadmin or similar. -Create a link on your site to access the credits page. <a href="<?php echo url('/credits'); ?>">Credits</a> You can add anyone you would like to credit for helping or being part of your site in the admin panel under Addons->Credits and also add partners suchs as VATSIM and IVAO. The listings will be in alphabetical order on your credits page on your site. Code hosted on github - link in signature.
  23. nope, I was more making a note ot myself to research the "why" for this one.
  24. I just tried this in a test install with a couple of adjustments and it seems to work correctly for me and returns an array of data function function favorite_dep($pilotid) { $query = "SELECT depicao ,COUNT(depicao) AS total FROM ".TABLE_PREFIX."pireps WHERE pilotid = '$pilotid' GROUP BY depicao ORDER BY total DESC"; $total = DB::get_results($query); return $total; } Returned array array 0 => object(stdClass)[57] public 'depicao' => string 'CYEG' (length=4) public 'total' => string '6' (length=1) 1 => object(stdClass)[58] public 'depicao' => string 'CYYZ' (length=4) public 'total' => string '3' (length=1) 2 => object(stdClass)[54] public 'depicao' => string 'CYYC' (length=4) public 'total' => string '3' (length=1) 3 => object(stdClass)[53] public 'depicao' => string 'CYQT' (length=4) public 'total' => string '1' (length=1) 4 => object(stdClass)[52] public 'depicao' => string 'CYHZ' (length=4) public 'total' => string '1' (length=1) 5 => object(stdClass)[51] public 'depicao' => string 'PHOG' (length=4) public 'total' => string '1' (length=1) 6 => object(stdClass)[50] public 'depicao' => string 'CYMM' (length=4) public 'total' => string '1' (length=1) 7 => object(stdClass)[49] public 'depicao' => string 'CYQR' (length=4) public 'total' => string '1' (length=1)
  25. That is odd, we probably should look back through the code and see where and why that is happening.
×
×
  • Create New...