-
Posts
205 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by ahughes3
-
Live flight board now showing same pilot each flight.
ahughes3 replied to ahughes3's topic in Support Forum
Update: - I have noticed that when there is only one person with a live flight, the "live flight" board shows the correct info. However, as soon as there are two or more pilots flying that's when the problem occurs. The pilot named on the live flights is not even necessarily a pilot who is actually flying either. I can't see anything wrong with the code and nothing has changed on my server so I'm still stumped. Anyone have any ideas at all? -
Look in the code snippets section and you'll find some "live flight boards".
-
Hmm don't think so as its a hosted piece of software, however you should be able to take it from FSUIPC4 if you have the SDK. Smartcars uses this to get their data as far as I know.
-
Live flight board now showing same pilot each flight.
ahughes3 replied to ahughes3's topic in Support Forum
Thanks Vangelis, but your changes throw up an error on line 2. Not sure what the error is because it looks ok to me. Also, the table coding is one of three tables that go on the page but I didn't paste the other tables as they are working just fine. Although, could something in those tables be affecting the first table? What's really odd is that the whole thing was working great for a while and then just randomly stopped working. Anyways, posted the whole page code below to see if that helps. Thanks again for your help. <!-- Start of live flights table --> <div class="col-md-12 page-content"> <h2>Live Flights</h2> <div class="stats-table"> <table> <tr> <th>Pilot</th> <th>Flight</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Status</th> </tr> <?php $results=A CARSData::GetACARSData(); if (count($results)> 0) { foreach($results as $flight) { ?> <tr> <?php $count=1 0; $pireps=P IREPData::getRecentReportsByCount($count); ?> <?php if($flight->phasedetail == "Boarding") { echo "<img style='padding-left:3px;' src=''>"; } elseif($flight->phasedetail == "Arrived") { echo "<img style='padding-left:3px;' src=''>"; } elseif($flight->phasedetail == "On Approach") { echo "<img style='padding-left:3px;' src=''>"; } ?> <?php foreach ($pireps as $pirep) { $pilotinfo=P ilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); } ?> <td> <?php echo '<a href="'.SITE_URL. '/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a>';?></td> <td> <?php echo $flight->flightnum;?></td> <td> <?php echo $flight->depname;?></td> <td> <?php echo $flight->arrname;?></td> <td> <?php echo $flight->aircraftname;?></td> <td> <?php if($flight->phasedetail != 'Paused') { echo $flight->phasedetail; } else { echo "Cruise"; }?></font> </td> </tr> <?php } } else { ?> <tr> <td width="20%" align="center" colspan="6" style="padding: 5px; font-size: 13px; font-weight: bold; color: #3399FF;">No Flights in Progress!</td> </tr> <?php } ?> </table> </div> </div> <!-- Start of recent flights table --> <div class="col-md-12 page-content"> <h2>Recent Flights</h2> <div class="stats-table"> <table> <tr> <th>Flight</th> <th>Pilot</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Duration</th> <th>V/S</th> <th>Info</th> </tr> <?php $count=1 0; $pireps=P IREPData::getRecentReportsByCount($count); ?> <?php if (count($results)> 0); if (count($pireps) > 0) { foreach ($results as $flight); foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); $acrid = OperationsData::getAircraftByReg($pirep->registration); $results = ACARSData::GetACARSData(); $fcode = substr($flight->flightnum, 0, 3); echo ' <tr>'; echo ' <td><a href="'.SITE_URL.'/index.php/pireps/viewreport/'.$pirep->pirepid.'">'.$pirep->code.$pirep->flightnum.'</a></td>'; echo ' <td><a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a></td>'; echo ' <td>'.$pirep->depicao.'</td>'; echo ' <td>'.$pirep->arricao.'</td>'; echo ' <td>'.$pirep->aircraft.'</td>'; echo ' <td>'.$pirep->flighttime.'</td>'; echo ' <td>'.$pirep->landingrate.' ft/m</td>'; if($pirep->accepted == PIREP_ACCEPTED) echo ' <td><span class="label label-important"><font color="green">Accepted</font></span></td>'; elseif($pirep->accepted == PIREP_REJECTED) echo ' <td><span class="label label-important"><font color="red">Rejected</font></span></td>'; elseif($pirep->accepted == PIREP_PENDING) echo ' <td><span class="label label-warning"><font color="orange">Pending</font></span></td>'; elseif($pirep->accepted == PIREP_INPROGRESS) echo ' <td>On Progress</td>'; echo '</tr>'; } } else { echo ' <tr> <td>There are no recent Flights!</td> </tr>'; } ?> </table> </div> <!-- End of recent flights table --> </div> <!-- Start of booked flights table --> <div class="col-md-12 page-content"> <h2>Booked Flights</h2> <div class="stats-table"> <?php MainController::Run( 'FrontBids', 'RecentFrontPage', 10); ?> </div> </div> -
Hi all, hoping someone can help me shed light on an issue that has arisen on my VA site. I have a flight boards page showing, Live Flights, Recent Flights and Booked Flights. All has been working fine until a few days ago I noticed that the Live Flights showed three flights all being done by the same person. When we look on the Live Map, we can see that this is in fact three different pilots. The strange thing is, nothing has been changed on the website, pages or anything, it just started happening. So I thought I'd post my code for the live table and see if anyone else has had either a similar problem, can see a problem with the code or can suggest steps to try and resolve it. Thanks in advance. <!-- Start of live flights table --> <div class="col-md-12 page-content"> <h2>Live Flights</h2> <div class="stats-table"> <table> <tr> <th>Pilot</th> <th>Flight</th> <th>Departure</th> <th>Arrival</th> <th>Aircraft</th> <th>Status</th> </tr> <?php $results = ACARSData::GetACARSData(); if (count($results) > 0) { foreach($results as $flight) { ?> <tr> <?php $count = 10; $pireps = PIREPData::getRecentReportsByCount($count); ?> <?php if($flight->phasedetail == "Boarding") { echo "<img style='padding-left:3px;' src=''>"; } elseif($flight->phasedetail == "Arrived") { echo "<img style='padding-left:3px;' src=''>"; } elseif($flight->phasedetail == "On Approach") { echo "<img style='padding-left:3px;' src=''>"; } ?> <?php foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); } ?> <td><?php echo'<a href="'.SITE_URL.'/index.php/profile/view/'.$pilotinfo->pilotid.'">'.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</a>';?></td> <td><?php echo $flight->flightnum;?></td> <td><?php echo $flight->depname;?></td> <td><?php echo $flight->arrname;?></td> <td><?php echo $flight->aircraftname;?></td> <td><?php if($flight->phasedetail != 'Paused') { echo $flight->phasedetail; } else { echo "Cruise"; }?></font></td> </tr> <?php } } else { ?> <tr><td width="20%" align="center" colspan="6" style="padding: 5px; font-size: 13px; font-weight: bold; color: #3399FF;">No Flights in Progress!</td></tr> <?php } ?> </table> </div> </div>
-
Whilst not strictly the same as your issue, this was how I fixed my issue with email. My issue - Some emails seem to send ok and then other times they wouldn't. Solution - I found that if I removed the {pilot last_name} from the initial template, the message wouldn't send. If I left it as is, and just entered my content it worked fine.
-
I have just finished designing my VA skin so if you want some help I am more than happy to support you. Have you already got a site set up and want the skin changed from the default one, or are you looking for an existing skin to be redesigned?
-
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
Thanks for the comment Strider. One discussion however doesn't mean that I can't handle criticism. I once changed a plug but that doesn't make me an electrician. -
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
Thank you James142 -
Ok sorted it, not sure quite what was going on but there was a bit of a delay and then the emails were arriving in my spam box on sky. For some reason they weren't forwarding to my email software. Deleted the local.config re-downloaded it from the live server, tried the settings again and they worked. Thanks as always for the advice Vangelis.
-
As far as I can see, I have these details set up. Sky emails use smtp.tools.sky.com which is what I have entered, the rest are just my personal details which are again correct. Is there anything else that could be stopping the emails from sending do you think?
-
I am getting an issue where none of the emails I send are being sent. I have put my name and email address into the local config file but whatever I send just doesn't arrive. I've checked on the documentation part of this site, can't find anything there and also nothing under tutorials. Also searched the forums and found one similar but not the same as my issue. Anyone help me understand the process used to send the emails in phpvms so I can fault find somehow? Thanks
-
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
I'm not going to continue this discussion on the forum, just because it's a waste of other's time reading it. Feel free to message me directly if you'd like to understand my frustration at your comments in more detail. -
Awesome, thanks
-
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
Joeri - Indeed, I was hoping to have finished it all over the last weekend but we had so many new pilots sign up and all wanting to learn ATC & flying that I lost all the time I had set aside. I'm hoping to have it done in the couple of days so it shouldn't be latin for long Thanks for the good wishes. -
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
Ok, I now get what you're referring to and I have to say firstly you've over exaggerated the issue a bit. The scrolling does not take you half way down the page, it is much more subtle than that entirely, almost negligible. I have tried it on four different devices from pc, ipad, mobile and the tv and the scrolling is minimal and smooth. I also have to say, that if you read my original post, I wasn't asking for a critique on the website I was merely stating that we are back up and running for information purposes. I didn't really find your comment useful or relevant and consider it nit picking and we're never short of folks who want to do that. In fact it did more to waste my valuable time than anything. -
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
Doesn't do that for me. Works as normal, I scroll a bit, the page moves a bit. -
If I create a module to go with a template, at the moment I am placing it in core/modules but I am conscious that if there is an update to phpvms these will be overwritten. If I create a module folder in my skins folder, would that work or does it not check in the same way as it does for skins?
-
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
On what? Our website? -
Thanks Vangelis as always, you came up trumps. I dropped the .php and changed the template name, now it works a treat. Sometimes you just can't see what's staring you in the face
-
I have created a module called "Vatspy.php" inside a folder called "Vatspy" the code of the file is below: <?php class Vatspy extends CodonModule //Name can be any names. { public function index() { $this->render('vat-spy.php'); } } ?> I have then created a template page called "vat-spy.php" which has the following code: <!-- Flightboards Tables --> <h3 class="classic-title"><span>Flight Boards</span></h3> <!-- Start Content --> <div class="call-action call-action-boxed call-action-style2 no-descripton clearfix"> <div class="row blog-page"> <!-- Start Blog Posts --> <div class="col-md-12 blog-box"> <!-- Start Post --> <div class="blog-post image-post"> <!-- Post Thumb --> <div class="post-head"> <a class="lightbox" href="<?php echo SITE_URL; ?>/lib/skins/margo-full-width/images/tools/test1.jpg" title="This is an image title"><img alt="" src="<?php echo SITE_URL; ?>/lib/skins/margo-full-width/images/tools/test1.jpg" /> </a> </div> <!-- Post Content --> <div class="post-content"> <h2> <a href="#">Image Box With Nice Lightbox</a></h2> <ul class="post-meta"> <li> By <a href="#">iThemesLab</a></li> <li> December 30, 2013</li> <li> <a href="#">WordPress</a>, <a href="#">Graphic</a></li> <li> <a href="#">4 Comments</a></li> </ul> <p> Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.</p> <a class="main-button" href="#">Read More</a> </div> </div> <!-- End Post --> </div> <!-- End Blog Posts --> </div> </div> <!-- End Content --> I want to basically call the template as a page from the nav menu so I have set up a link on my navbar that looks like: <li><a href="<?php echo url('/Vatspy.php'); ?>">Vatspy</a></li> When I click on the link it then brings up the "VATSPY.PHP" module does not exist. What I am trying to do is to create a page with details on Vatspy and just have it load as a page from the navbar. I do not want to create a page using the admin centre because as and when phpvms gets updated I will lose all those pages I'm assuming? Plus coding in the editor on phpvms is poor. So can anyone spot my obvious mistake? Because I can't, but then that's not saying much!
-
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
Not sure what you're on about Tom, are you referring to my website or something else? I get what you're saying about contacting them, I might do that when I get a bit of free time. -
Virgin Atlantic Virtual - Back up and running
ahughes3 replied to ahughes3's topic in Virtual Airlines Discussion
Thanks Chase Strider thanks for the heads up. I'm aware that some airlines are funny about virtual airlines using their name but I'll cross that bridge when I come to it. There are at least four other well established virtual airlines using Virgin as their base airline so I'm not too worried at the moment. 12 pilots in four days, not a bad rebirth eh -
Virgin Atlantic Virtual - Back up and running
ahughes3 posted a topic in Virtual Airlines Discussion
Hello All, I just thought I would do a quick note to let everyone know that Virgin Atlantic Virtual is back up and running. We have been transferring our VA Site from wordpress to a PHPVMS based site with custom skin. We have already recruited 12 new pilots in the last couple of days and would welcome anyone from the flight sim community, new or experienced to sign up and join us. The website for the VA is www.virginatlanticvirtual.co.uk (not.com)! We are still putting final touches to the website porting all of our old site's content across such as liveries, charts etc but we're getting there. The operations system itself is fully functional so you can register, book flights, track flights and file pireps as normal. We are also recruiting for new staff members to help continue the growth of the VA. In particular we would welcome staff with the following experience: Youtube and Twitch recording expertise to support our youtube channel and help create a promo video ATC savvy players who can support our popular multiplayer session (London Heathrow + ATC) Knowledge of adding routes, fleet, finances to PHPVMS just to help us at busy times Hub Managers for US(KJFK) & Asia(OMDB) to support international players Generally experienced pilots who want to get more involved in running an airline If you are looking for a change or new opportunity then please do get in touch through the website or on our teamspeak server. IP 5.39.102.41:29865. As a VA we can provide the following benefits to pilots: Website with flight operations, useful information, liveries, downloads etc (site should be fully finished in a few days time) Facebook, Youtube, Twitter Forum for sharing information about planes, scenery, events Virgin Liveries Routes across the world incorporating Virgin Atlantic, Little Red, Virgin Australia, Virgin America The full Virgin Fleet with correct tail numbers and each planes unique name Multiplayer session (London Heathrow + ATC) through Steam. Private multiplayer session available for events & training Events per month and possibly per week depending on support Flight training - Learn ILS approaches, SIDs, STARs, Route planning, Fuel planning Train to fly on VATSIM Go take a look and sign up while you're there Go on, go do it now.......whilst it's fresh in your mind! -
Your best bet would be to download a free phpvms skin that someone else has already created and use it to give you an idea of how to construct your site's skin. Saves a lot of time and trouble.