Jump to content

ln-asm

Members
  • Posts

    26
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

Contact Methods

  • Skype
    ln-asm

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ln-asm's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In Rare

Recent Badges

6

Reputation

  1. Are you sure the MySQLi extension is installed?
  2. From what I could find by doing a search, it seems that most others with this issue have wrong content-type. Could be an idea to look into
  3. Thanks ToiletDuck See the post above yours flyalaska - it wasn't there earlier
  4. I might be completely blind, but how do you add an airline? I can't see any register or submit links anywhere? (On mobile device). Nice initiative tho
  5. Hey guys, I'm recoding our VA's website these days, and I'm trying to get rid of the latest flight map but not quite sure what to replace it with.. Is there anyone who has done something similar, or just have any ideas in general on what else one could do with the space? Thanks Anders
  6. Looks like you've already got an answer in the other thread you asked: http://forum.phpvms.net/topic/21388-sim-brief-for-phpvms/page__st__80#entry121250
  7. From the Virtual Norwegian Staff, we would like to thank every single one of our members for all the time you are putting into our amazing hobby. Since the reboot of our virtual airline back in 2009, we have flown a total of 90.000 flights as of tonight! Our next goal will be 100 000 flights, which we hope to reach by the end of the year. Visit us at www.virtualnorwegian.net
  8. You can add the code where ever you want it to be displayed. For anyone using this code: be aware, Vatsim is rather strict when it comes to downloading data from their servers, and with this code, every metar will be downloaded every time someone accesses the page. If you have quite some traffic to your site, they'll easily block your server's access to download from Vatsim, so you might want to consider downloading and save the data on your server, and then have a script check if your local file is older than x minutes, and if it is, redownload. It's not too difficult to set up, and all you need can be found by a simple search (I don't have access to my FTP at the moment so I can't post my code) Have a read in the Vatsim forums as well: http://forums.vatsim.net/viewtopic.php?f=68&t=65859 Anders
  9. ln-asm

    Editing Templates

    A quick search and I think I found what you're looking for: http://forum.phpvms.net/page/index.html/_/skinning-and-customization-guides/
  10. Joeri, not exactly. - "What is the oldest virtual airline that exists today?" - "Another curiosity. What was the first Virtual Airline to use phpVMS??" Tried to do a search on it, but couldn't really find anything else than what flyalaska has posted already. Lynx says they're second second oldest, so if that's true, there's one more that'd be cool to find Anders
  11. That's what happens in the default phpVMS setup, but if he creates his own script, no flights needs to be lost We (Virtual Norwegian) run a script on a daily basis to send pirep reminders, delete pilots etc without losing any of the pireps. Tho we ended up deleting 80,000 of them on our own because it took way to long to accept new pireps.. Great idea with the module by the way. Would be a lot easier than sending emails back and forth to be deleted from the system like we've been doing for resignations Anders
  12. Try: ORDER BY deptime ASC That should do the trick
  13. I just found out that if I use the flightPath.setMap(map); before the mouseover/mouseout events, the flightpaths are actually drawn correctly on the map...it's in the mouseover/out events it won't work properly. Any ideas on how I could make this work properly? Thanks! Anders
  14. Hello everybody I'm currently trying to create a simple new live map and the map itself is more or less good to go, but I'd like to draw a flight path from the departure airport -> current position of the aircraft -> arrival airport when you take the mouse over a marker. I have all the information needed, but for some reason the flight path won't be drawn correctly. If I have 2 or more aircraft on the map, it will only draw the path of one of the aircraft, regardless of which one you hover. I don't really know Javascript too well, so I really hope someone in here will be able to help out This is the code I have at this point: var planes = [ ['NAX932B', 59.32, 11.95, 0, 183, 60.1939, 11.1004, 55.6179, 12.656, '25000', '310', 'NAX106 - Anders Moen', 'LN-NOO', 'ENGM', 'EKCH', '106', 'Climbing', '00:42'] ]; // planes 0 = flight number, 1 = latitude, 2 = longitude, 3 = counter, 4 = heading, 5 = dep airport latitude, 6 = dep airport longitude, 7 = arr airport latitude, 8 = arr airport longitude, 9 = altitude, 10 = speed, 11 = pilot, 12 = aircraft, 13 = dep ICAO, 14 = arr ICAO, 15 = clean pilot ID, 16 = phase of flight, 17 = EET for (var i = 0; i < locations.length; i++) { var planes = locations[i]; var hdg = planes[4]; var image = new google.maps.MarkerImage("http://www.virtualnorwegian.net/img/livemap/"+hdg+".png",null,new google.maps.Point(0,0),new google.maps.Point(15, 15),new google.maps.Size(30, 30)); var contentString = planes[0]; var infowindow = new google.maps.InfoWindow({content: contentString}); var quickinfowindow = new google.maps.InfoWindow({content: contentString}); var myLatLng = new google.maps.LatLng(planes[1], planes[2]); var lat1 = planes[5]; var lat2 = planes[1]; var lat3 = planes[7]; var lng1 = planes[6]; var lng2 = planes[2]; var lng3 = planes[8]; // Aircraft on map var marker = new google.maps.Marker({ position: myLatLng, map: map, icon: image, optimized: false, internalid: planes[15], zIndex: planes[3], rotation: planes[4], mouseovertxt: '<b>'+planes[11]+'</b><br />'+planes[0]+'-'+planes[13]+'-'+planes[14]+'<br />Status: '+planes[16]+'<br />EET: '+planes[17] }); // Dep->plane->arr var flightPlanCoordinates = [ new google.maps.LatLng(lat1, lng1), new google.maps.LatLng(lat2, lng2), new google.maps.LatLng(lat3, lng3) ]; flightPath = new google.maps.Polyline({ path: flightPlanCoordinates, geodesic: true, strokeColor: "#c3524f", strokeOpacity: 1.0, strokeWeight: 2 }); // Mouseover google.maps.event.addListener(marker, 'mouseover', function () { quickinfowindow.setContent(this.mouseovertxt); quickinfowindow.open(map, this); flightPath.setMap(map); }); // Mouseout google.maps.event.addListener(marker, 'mouseout', function () { quickinfowindow.close(); flightPath.setMap(null); }); } Like I wrote, everything here works fine, except the flight path when there are 2 or more aircraft on the map. I have searched and searched, and I've seen other people write that you need to clear the flightPlanCoordinates with flightPlanCoordinates = []; but this has not given me any other results. Any ideas? Thanks! Anders
  15. That'd be absolutely amazing if you could. Our VA would really love to try to implement this somehow in our systems
×
×
  • Create New...