
Kyle
Moderators-
Posts
2282 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by Kyle
-
I'm not sure, but I can work this out by putting an external database in the code soon.
-
I'm going to upload this module to gitHub this morning. Update: Sorry guys, I'm still trying to figure out how to use Github.
-
Depending on your hosting's limits, how busy is your site. Once your hosting starts emailing you saying that you might have to move up a plan. But I think you should be okay for a while, but I can't tell what's your hosting's limits are like. Shared Hosting has some serious limits to per database, ours at Sun Country Virtual we're at 11MB right now and we have a limit up to 1GB. The SCX staff team already has laid out a plan for a VPS or Dedicated. (IMO, it's always better to be prepared) Now's that a new stuff I learnt today...the first day phpVMS and vaCentral was down, I was logging into my site and it was still loading, and I thought what the heck is going on.
-
What the! What kind of queries are going though the database? With phpVMS, there isn't too much queries unless they were executed. It's hard to tell what going on with the queries.Do you have any add-ons you use? BTW, who's host you with and are you on shared?
-
Go to your admin panel, Profile Fields, Add A New Field Title your field, set show in registration to yes and then it will show up. But when approving the pilots, you would have to manually put the transfer hours into the default transfer hours. I wouldn't even want to go into the core and make major changes to the registration.
-
Thanks Manuel.
-
itrobb, $mystring = ACARSData::GetACARSData($aircraft->registration); There is no class on getting the aircraft by registration. You would have to create a new data class to pull the aircraft info by registration. Maybe you might want to create a new data class file so it won't get overwritten in updates. Title the file something like ACARSAircraftData.class.php And then you would have to create a WHERE function with the aircraft registration. NOT TESTED public static function GetACARSDataByAircraft($registration, $cutofftime = '') { //cutoff time in days if (empty($cutofftime)) { // Go from minutes to hours $cutofftime = Config::Get('ACARS_LIVE_TIME'); //$cutofftime = $cutofftime / 60; } $sql = 'SELECT a.*, c.name as aircraftname, c.registration, p.code, p.pilotid as pilotid, p.firstname, p.lastname, dep.name as depname, dep.lat AS deplat, dep.lng AS deplng, arr.name as arrname, arr.lat AS arrlat, arr.lng AS arrlng FROM ' . TABLE_PREFIX . 'acarsdata a LEFT JOIN ' . TABLE_PREFIX . 'aircraft c ON a.`aircraft`= c.`registration` LEFT JOIN ' . TABLE_PREFIX . 'pilots p ON a.`pilotid`= p.`pilotid` LEFT JOIN ' . TABLE_PREFIX . 'airports AS dep ON dep.icao = a.depicao LEFT JOIN ' . TABLE_PREFIX . 'airports AS arr ON arr.icao = a.arricao WHERE a.aircraft = '.$registration.' '; //$sql .= DB::build_where($params); if ($cutofftime !== 0) { $sql .= 'WHERE DATE_SUB(NOW(), INTERVAL ' . $cutofftime . ' MINUTE) <= a.`lastupdate`'; } return DB::get_results($sql); DB::debug(); } Once you done that. then change the $string code that your trying to do. $mystring = ACARSAircraftData::GetACARSDataByAircraft($aircraft->registration); Give this a go and see. The code wasn't tested.
-
Nabeel's working on bringing the stable version back to the downloads. So, to clear it up, download the same file you did, and reupload the "install" folder into your root directory.
-
Wow, that doesn't look good. I better start doing an full site inspection so mine won't be hit. Just silly that those hackers/attackers are taking our hobbies away... Take your time Nabeel, Your doing a good job for bringing everything back up!
-
I gotta say, it looks very nice! You done an well job on it! But the navigation could need some work, it doesn't seem to blend into the background enough, but other than that, it's all good!
-
Thank you for your comment Jeff.
-
Reupload the install folder and put the folder into the root of your VMS Install. And do what the debugging instructions says. Hope that clears up!
-
Thanks Mark!
-
Sun Country Virtual was founded in January 18th, 2012 by a small staff group. After two long months of development with the website and custom ACARS providing highly detailed flight reports. Sun Country Virtual is ready to open it's doors to all new pilots, experienced pilots & hardern pilots on March 20st, 2012! Sneak A Peak of the website features! Highly Detailed Flight reports with various of line graphs and position reporting! Custom ACARS with detailed flight logging from push back to arrival to gate, pilot to pilot chat, schedules search features & web browser to our website. Staff's Custom made Pilot Status Bdges with providing your flight info if you are flying on ACARS! Forums where you can share topics, and discuss with other pilots! Operations Our flight schedules are almost updated to reflect to the current real world SCX Airlines! We also have Canada & Alaska Operations, so you won't be limited on what flights you want to fly! We also have VATSIM events as well, so VATSIM pilots can join the event! Monthly Greased Landings Contest! (Coming Soon!) Monthly Screenshot Contest! (Coming Soon!) So why not join us at http://suncountryvirtual.net!
-
All you got to do is create an index.html, type things up and upload it to your site.
-
Good to be back Nabeel. Hope the rest will go okay!
-
What's your website's php version? Seems weird that you added the extension of .php5 and it works. Tells me that your running PHP 4
-
Thanks Jeff for using my modules. Yes, if you think there's a module that is useful for the VA, please do let me know.
-
Sorry, I made a silly mistake. Try this and put in the php file. //PILOT INFO $pilotfirstname = $pilotinfo->firstname; $pilotlastname= $pilotinfo->lastname; $email = $pilotinfo->email; //PIREP INFO (This all goes into the email, we will need to add those into the TPL) $code = $pirepdata->code; $flightnum = $pirepdata->flightnum; $depicao = $pirepdata->depicao; $arricao = $pirepdata->arricao; $aircraft = $pirepdata->aircraft; $flighttime = $pirepdata->flighttime; $landingrate = $pirepdata->landingrate; $source = $pirepdata->source; $comment = $comment; $email = $pilotinfo->email; $sub = 'PIREP Report - '.$code.''.$flightnum; $message = Template::Get('email_pirep_info.tpl', true); Util::SendEmail($email, $sub, $message);
-
Okay, replace the code that you are using from me with this.. (NOT TESTED) //PILOT INFO $pilotfirstname = $pilotinfo->firstname; $pilotlastname= $pilotinfo->lastname; $email = $pilotinfo->email; //PIREP INFO (This all goes into the email, we will need to add those into the TPL) $code = $pirepdata['code']; $flightnum = $pirepdata['flightnum']; $depicao = $pirepdata['depicao']; $arricao = $pirepdata['arricao']; $aircraft = $pirepdata['aircraft']; $flighttime = $pirepdata['flighttime']; $landingrate = $pirepdata['landingrate']; $source = $pirepdata['source']; $comment = $comment; $sub = 'PIREP Report - '.$code.''.$flightnum; $message = Template::Get('email_pirep_info.tpl', true); Util::SendEmail($email, $sub, $message); AND Create a tpl file called email_pirep_info.tpl and place in your core/templates. The forums won't let me upload tpl files. And copy this code and paste into email_pirep_info.tpl... <p>Dear <?php echo $pilotfirstname .' '. $pilotlastname; ?>, </p> <p>Here is your submitted flight report enclosed for your review.</p> <p><b>Flight Number:</b><?php echo $code.''.$flightnum;?> </p> <p><b>Departure:</b><?php echo $depicao;?> </p> <p><b>Arrival:</b><?php echo $arricao;?> </p> <p><b>Aircraft:</b><?php echo $aircraft;?> </p> <p><b>Flight Time:</b><?php echo $flighttime;?> </p> <p><b>Landing Rate:</b><?php echo $landingrate;?> </p> <p><b>Filed By:</b><?php echo $source;?> </p> <p><b>Comments:</b><?php echo $comment;?> </p> And that should work for you. Please test it cause there's no one flying yet and to test it at my VA, lol. I know the code is not so great, but that's a start, lol. Cheers!
-
You can create a tpl file and we would have to change the code to make the info of pirep to be parsed. I'll write up a new code and attach a tpl file. Give me a few.
-
It's the Microsoft Excel Zero values disappearing. (not sure) But if you want to make your flight an everyday services, just leave the daysofweek blank and it'll automatically mark every day of week in the import.
-
# Send an email to the pilot who submitted that PIREP $sub = "Your flight report - {$pirepdata['depicao']} - {$pirepdata['arricao']}"; $message = "You have filed a PIREP ({$pirepdata['code']}{$pirepdata['flightnum']})" ."({$pilotinfo->firstname} {$pilotinfo->lastname})\n\n" ."{$pirepdata['code']}{$pirepdata['flightnum']}: {$pirepdata['depicao']} to {$pirepdata['arricao']}\n" ."Aircraft: {$pirepdata['aircraft']}\n" . "Flight Time: {$pirepdata['flighttime']}\n" ."Landing Rate: {$pirepdata['landingrate']}\n"."Filed using: {$pirepdata['source']}\n\n" ."Comment: {$comment}\n\n"; $email = $pilotinfo->email; Util::SendEmail($email, $sub, $message); } Mark, this would be the code [NOT TESTED], give this a try and see what happens. Add after the line of code that you posted. first post.
-
Very Well Done itrobb, but there's one problem. When I go to your ACARS Map, the map isn't working for me on Chrome or Firefox. Something you might want to take a look. Other than that, well done!
-
First Post, I don't know... Second Post, I'm not sure if it's your CSS, you will need to add or change your CSS. <style type="text/css"> A:link {text-decoration: none} A:visited {text-decoration: none} A:active {text-decoration: none} A:hover {text-decoration: underline; color: red;} </style>