-
Posts
656 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by James142
-
That part slipped my mind
-
You need to replace <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> with <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&libraries=weather"></script> in your core_htmlhead.tpl file. I'm not sure if it will work with phpVMS but that's how I do it with my website. Kindest Regards, James
-
Out of interest, was the licence expensive or reasonably priced?
-
Maybe try <?php echo Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname; ?> Kindest Regards, James.
-
My bad haha Glad its working.
-
Nothing wrong with a little competition
-
Try putting this into your profile.php file $this->set('pireps', PIREPData::GetLastReports(Auth::$userinfo->pilotid, '10')); Then in your profile_main.tpl file, add this table: <table align="center" border="0" width="100%"> <thead> <tr border="0"> <th align="center">Flight</th> <th align="center">Depart</th> <th align="center">Arrival</th> <th align="center">Time</th> <th align="center">Landing Rate</th> </tr> </thead> <tbody> <?php if(count($pireps) > 0) { foreach($pireps as $flight) { echo '<tr><th>'.$flight->flightnum.'</th> <th>'.$flight->depicao.'</th> <th>'.$flight->arricao.'</th> <th>'.date(DATE_FORMAT, strtotime($flight->submitdate)).'</th> <th>'.$flight->landingrate.'</th> </tr>'; } else { echo "<tr><td>There are no recent flights!</td></tr>"; } ?> </tbody> </table> This hasn't being tested so I am not 100% certain if it will work or not. Hope this help! Kindest Regards, James
-
Is the google maps javascript version your using API v3? I believe that the weather option is only available in V3
-
Try replacing the pilots.php file (core/modules/pilots.php) with following code: <?php /** * phpVMS - Virtual Airline Administration Software * Copyright (c) 2008 Nabeel Shahzad * For more information, visit www.phpvms.net * Forums: http://www.phpvms.net/forum * Documentation: http://www.phpvms.net/docs * * phpVMS is licenced under the following license: * Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) * View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ * * @author Nabeel Shahzad * @copyright Copyright (c) 2008, Nabeel Shahzad * @link http://www.phpvms.net * @license http://creativecommons.org/licenses/by-nc-sa/3.0/ */ class Pilots extends CodonModule { public function index() { $this->set('allpilots', PilotData::getAllPilots()); $this->render('pilots_list.tpl'); } public function reports($pilotid='') { if($pilotid == '') { $this->set('message', 'No pilot specified!'); $this->render('core_error.tpl'); return; } $this->set('pireps', PIREPData::GetAllReportsForPilot($pilotid)); $this->render('pireps_viewall.tpl'); } /* Stats stuff for charts */ public function statsdaysdata($pilotid) { $data = PIREPData::getIntervalDataByDays(array('p.pilotid'=>$pilotid), 30); $this->create_line_graph('Past 30 days PIREPs', $data); } public function statsmonthsdata($pilotid) { $data = PIREPData::getIntervalDataByMonth(array('p.pilotid'=>$pilotid), 3); $this->create_line_graph('Monthly Flight Stats', $data); } public function statsaircraftdata($pilotid) { $data = StatsData::PilotAircraftFlownCounts($pilotid); if(!$data) $data = array(); include CORE_LIB_PATH.'/php-ofc-library/open-flash-chart.php'; $d = array(); foreach($data as $ac) { OFCharts::add_data_set($ac->aircraft, floatval($ac->hours)); } echo OFCharts::create_pie_graph('Aircraft Flown'); } protected function create_line_graph($title, $data) { if(!$data) { $data = array(); } $bar_values = array(); $bar_titles = array(); foreach($data as $val) { $bar_titles[] = $val->ym; $bar_values[] = floatval($val->total); } OFCharts::add_data_set($bar_titles, $bar_values); echo OFCharts::create_area_graph($title); } public function RecentFrontPage($count = 5) { $this->set('Pilots', PilotData::GetLatestPilots($count)); $this->render('frontpage_recentpilots.tpl'); } } Kindest Regards, James
-
So you create the routes by hand?
-
The first image is amazing! Love the blurr effect on it Keep it up! Its better than what I could have done and I've tried editing fs photos for years. Regards, James
-
Well it was 4 months ago.. lol
-
I was working with Microsoft for a week about 4 months ago, and much like what Joeri and Flightguy123 said, W8is mainly for tablets and window's phones right now.
-
Its the same price if you want to develop apps for windows phone. Except its not yearly, its a once off payment of $99. Its still way too much though
-
Go to the search bar on the top right of the forum and search "simpilot realschedulelite" Regards, James
-
Dont start. Didn't you give your staff page layout somewhere on the forums a while ago..
-
Are you asking why the images are not showing? If so, have you changed the image links to your own website URL? You need to change: <img src="http://yourwebsite.com/images/activeicon.png" alt="Active" /> And <img src="http://yourwebsite.com/images/inactiveicon.png" alt="Inactive" /> to your images. Kindest Regards, James
-
Im sure it would be worth the time it takes to make these changes if it puts a stop to the theft.
-
If your getting your flight info from flightaware.com, are you sure you are aloud to sell on information you need to purchase from them? Regards, James
-
Go to your first post > edit > use full editor
-
http://forum.phpvms.net/topic/6895-logout-issue-and-a-login-issue/page__hl__%2Bmodify+%2Bheader+%2Binformation__fromsearch__1 Hope it helps
-
Glad you got it working
-
its in your core-head.tpl file. But instead of removing custom.js, make sure you don't have a jquery.js file somewhere in your design template as its already included in the core-head.tpl file.