Jump to content

ahughes3

Members
  • Posts

    205
  • Joined

  • Last visited

Everything posted by ahughes3

  1. I have searched through the phpvms files for a couple of hours now but I still can't find anything that relates to changing the width of the live flight map. The code I have in the main template file is: style="width:<?php echo Config::Get('MAP_WIDTH');?>; I am trying to work out where the "map_width" setting is coming from, but had no luck so far. Anyone know where to find it?
  2. Thanks as always Vangelis for the offer of support. My flightboards page is there in it's entirety. I'm not worried about others using it as I got it from snippets that I tweaked. It is definitely doing something in relation to the number of live flights. When it's one it works fine, as soon as there are two or more it chooses a pilot (maybe at random) and sets all live flights to that pilot. So there are three tables on that code, Live Flights, then Recent Flights and then Booked Flights.
  3. 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?
  4. Look in the code snippets section and you'll find some "live flight boards".
  5. 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.
  6. 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>
  7. 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>
  8. 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.
  9. 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?
  10. 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.
  11. 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.
  12. 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?
  13. 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
  14. 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.
  15. 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.
  16. 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.
  17. Doesn't do that for me. Works as normal, I scroll a bit, the page moves a bit.
  18. 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?
  19. 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
  20. 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!
  21. 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.
  22. 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
×
×
  • Create New...