
Alex
Members-
Posts
145 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Alex
-
It is broken for me too, maybe it is the geonames server that is down? Is there another server we can fetch the data? it can be changed in the local config file.
-
Thanks Stuart, mine was almost but not quite the same, but it's working now. Your a star
-
If thats the case i'm wondering if its the operationsdata.class.php that would need the order_by, i'm sure there must be an easier way!
-
I want to sort my airlines aircraft in ascending order when the pilot comes to choose his aircraft for submission of a pirep. I have tried two ways so far. in local config i did this. /* Sort the aircraft by order*/ Config::Set('AIRCRAFT_ORDER_BY', 'name ASC'); That doesn't appear to work. I also went into my mysql db and went into operations changing the alter table order from "id" to "name", but that doesnt seems to work either. My php code on the pirep submit tpl is as follows, i wonder if someone could point me in the correct direction. <div align="center"> <select name="aircraft" id="aircraft"> <option value="">Select the aircraft of this flight</option> <?php foreach($allaircraft as $aircraft) { $sel = ($_POST['aircraft'] == $aircraft->name || $bid->registration == $aircraft->registration)?'selected':''; echo '<option value="'.$aircraft->id.'" '.$sel.'>'.$aircraft->name.' - '.$aircraft->registration.'</option>'; } ?> </select> </div> Thanks
-
I can grab vertical speed on touchdown from the sim so thats no prob, i'm assuming each aircraft type has the ideal vs at the point of landing. I will do some further research, thanls. Alex
-
I am currently creating an ACARS system for FlightGear a free open source flightsim. i'm interested on how "landingrate" is calculated. Can anyone enlighten me?
-
why not just convert your images to one type?
-
is there a way to prevent access to the index page. specifically the downloads. i tried to add .zip tothe htaccess file and that worked, but then when legitimate pilots tried to d/l the got the 404 error?
-
how can i restrict access to my downloads page only to logged in pilots. i tried this <?php if(!Auth::LoggedIn()) { ?> <li><a href="<?php echo SITE_URL ?>/index.php/registration"><strong>Register</strong></a></li> <li><a href="<?php echo url('/login'); ?>"><strong>Pilot Log In</strong></a></li> <?php } else { ?> <li><a href="<?php echo SITE_URL ?>/index.php/downloads"><strong>Downloads</strong></a></li> <?php but that doesnt work
-
there are some discrepancies in the nav files which causes these errors
-
Thanks Dave, It was the capitalisation of Charts.php that was missing i had charts.php Works now, very fast response thanks
-
Hi, Im trying to create a seperate page where a pilot can click on a world map on hotspots for the airports so it brings up a page with all the charts for that airport. Here is the process as i understand it. Create a module "Charts" <?php class charts extends CodonModule { public function index() { Template::Show('charts.tpl'); } } ?> I have created my charts.tpl which is in my skins folder and obviously each airport needs its own template where i will display the chart links. When i do this i get the module "charts" does not exists.error Is there anything else i need to change. I have checked the file exists in core/modules/charts and it is there. Thanks in advance Alex
-
<td><div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' ); if( $fieldvalue != '' ) { echo '<a href="http://www.vataware.com/pilot.cfm?cid=' . $fieldvalue . '" target="_blank">' . $fieldvalue . '</a></a>' ; } else { echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="" /></a>' ; } ?> </div></td> That works a treat, thanks Mark...
-
Actually, what do i need to change to just have the pilot cid shown linking to the VATAWARE stats? i have tried all the methods but can't get it to show. Mark your way works fine but rather than images just the id number is what im after.
-
so would that be something like: <a href="http://www.vataware.com/flight.cfm?id=<?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?>"</a>
-
Once this is done this way, is there a way to make the id a link? to say a pilots vataware stats? currently the only options are text/drop down or text area?
-
I have been hammered by them over the last few weeks. heres just a quick snapshot of the ones i have deleted
-
Nice, but you have a spelling mistake on the page. Schedule multiple airctraft, send notices to other members Alex
-
how would i go about doing that?
-
you say that your not sure this would be the best way? but is there an alternative?
-
Caling all ACARS afficianadoes!! The flight simulator i use is FlightGear, an open source flight sim sharing many similarities and processes with Xplane. I'm trying to create an ACARS system similar to the KACARS or XACARS. Within Flightgear i can specify the sim to output to a telnet socket. as shown here. I create a protocol file to output the information i want to collect from the program a snippet is here. (iits an xml file) <?xml version="1.0"?> <PropertyList> <generic> <output> <binary_mode>false</binary_mode> <var_separator> </var_separator> <line_separator>\n</line_separator> <preamble>register FlightGear</preamble> <chunk> <type>string</type> <format>put</format> </chunk> <chunk> <name>lat</name> <type>float</type> <node>/position/latitude-deg</node> <format>lat %f</format> </chunk> <chunk> <name>lon</name> <type>float</type> <node>/position/longitude-deg</node> <format>lon %f</format> </chunk> <chunk> <name>alt</name> <type>int</type> <node>/position/altitude-ft</node> <format>alt %d</format> </chunk> <chunk> <name>ground speed</name> <type>int</type> <node>/velocities/groundspeed-kt</node> <format>gnd %d</format> </chunk> <chunk> <name>heading</name> <type>int</type> <node>/orientation/heading-deg</node> <format>hdg %d</format> <factor>10</factor> </chunk> I was hoping someone with better knowledge than i with PHP and creating an ACARS system would be able to assist? It would be a great benefit to me if possible. Cheers Alex
-
Thats got it, thanks Dave, blank line at the top was the culprit. Cheers