Jump to content

MAT

Members
  • Posts

    72
  • Joined

  • Last visited

Posts posted by MAT

  1. Hi all,

    I have just changed all my country flags but for some reason they are not showing up, they are showing up as all the old ones.

    I have cached my browser, and in the admin center I have gone to maintenance and cached it and its still not working,

    Does anybody know how to fix it?

    Thanks,

    Matthew

  2. <div class="clean-welcome"> <?php $newpilot = PilotData::getLatestPilots(1); ?>
    
    
             Welcome Alaska Adventures Newest Pilot:
                   <?php
                       foreach ($newpilot as $pilot)
                                   {
                                       echo $pilot->firstname.' '.$pilot->lastname.' ('.PilotData::getPilotCode($pilot->code, $pilot->pilotid).')';
                                   }
                   ?>
           </div>

    CSS:

    .clean-welcome{
    	border:solid 1px #349534; 
    	background:#C9FFCA;
    	color:#008000;
    	font-weight:bold;
    	padding:4px;
    	text-align:center;
    }

    There is a error, it appears with

    .clean-welcome{                 border:solid 1px #349534;                  background:#C9FFCA;                 color:#008000;                 font-weight:bold;                 padding:4px;                 text-align:center;         }              Welcome Sky Service Newest Pilot:                 Matthew Talbot (SKY0001)        

    but just text on my site

  3. 	<?php
    
    $usersonline = StatsData::UsersOnline();
    
    $guestsonline = StatsData::GuestsOnline();
    
    
    
    ?>
    
    <h4>Pilots Online</h4>
    
    <?php
    $shown = array();
    foreach($usersonline as $pilot) 
    {
    
    if(in_array($pilot->pilotid, $shown))
    continue;
    else
    $shown[] = $pilot->pilotid; 
    
    echo "<p>";
    echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />';
    echo " {$pilot->firstname} {$pilot->lastname}<br />"; 
    echo "</p>";
    
    }
    
    ?>
    
    <h4>Guests Online</h4>
    
    <p class="txt-red10">Currently
    
    <?php echo count($guestsonline);?>
    
    guest(s) visiting.
    

    would be something like this

    works fine, thanks!smile.gif

×
×
  • Create New...