Jump to content

ahughes3

Members
  • Posts

    205
  • Joined

  • Last visited

Posts posted by ahughes3

  1. 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.

    :)

  2. 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?

  3. 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>
    

  4. 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>
    

  5. 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.

    :)

  6. 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. :)

  7. try putting these settings in your local.config

    # Email Settings
    Config::Set('EMAIL_FROM_NAME', 'Name to be displayed');
    Config::Set('EMAIL_FROM_ADDRESS', 'from@email.com');
    Config::Set('EMAIL_USE_SMTP', true);
    # Add multiple SMTP servers by separating them with ;
    Config::Set('EMAIL_SMTP_SERVERS', 'yourmailserver');
    Config::Set('EMAIL_SMTP_PORT', '25');
    Config::Set('EMAIL_SMTP_USE_AUTH', false);
    Config::Set('EMAIL_SMTP_USER', 'fullusernameofemail');
    Config::Set('EMAIL_SMTP_PASS', 'passwordofemail');
    

    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?

  8. 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

  9. Yes, I scroll a small amount and it takes over and I end up half way down the page.

    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. <_<

  10. 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! <_<

  11. Scrolljacking <_< - just google that term and you'll see why it's bad practice (and so widely hated).

    Also if it were me I'd make an effort to contact Virgin and try to form a relationship now. It's only a matter of time before Virgin contact you, and when they do it won't be because they want to be friends.

    Good luck though ^_^

    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.

  12. 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!

×
×
  • Create New...