Jump to content

ACVA_CEO

Members
  • Posts

    44
  • Joined

  • Last visited

Posts posted by ACVA_CEO

  1. actually i'm moving from one server to another....I figured I have so much with them I should probably do this there too....and of course it's the new server messing up.

    They are going to move me to shared hosting and hopefully that will fix the problem...if not I have your suggestions to try.

    Thanks

    Chris

  2. Hey all,

    I am having trouble with the pages made through the admin panel. When first viewed, they show up fine as /index.php/pages/executivestaff , but the next time it will show as /index.php/pages/pages/executivestaff, next time /pages/pages/pages and so on. Of course the only time it shows is the first time, and the only way to reset it is by clicking on home.

    If you want to see what I'm talking about it's here: www.flyaircanadava.com . I'm just starting so most links don't work or have easy db errors, but the page above should work to show errors.

    Thanks

    Chris

    P.S.--How do you mark a topic as solved?

  3. Ok...good. That's what I've been doing (pilots_list under skin). Everything else shows up fine except for the vatsim id. Here is a the code from the page.

    <h3><?php echo $title?></h3>
    
    <?php
    if(!$allpilots)
    {
    	echo 'There are no pilots!';
    	return;
    }
    ?>
    <table width="945" border="1" class="tablesorter" id="tabledlist">
    <thead>
    <tr>
    <th>Pilot ID</th>
    <th width="25%">Name</th>
    <th width="19%">Rank</th>
    <th width="15%">Flights</th>
    <th width="17%">Hours</th>
       <th width="24%">Vatsim ID</th>
    </tr>
    </thead>
    <tbody>
    <?php
    foreach($allpilots as $pilot)
    {
    /* 
    	To include a custom field, use the following example:
    
    
    
    	For instance, if you added a field called "IVAO Callsign":
    
    		echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign');		
     */
    
     // To skip a retired pilot, uncomment the next line:
     if($pilot->retired == 1) { continue; }
    ?>
    <tr>
    <td width="7%" nowrap><div align="center"><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">
      <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a></div></td>
    <td>
    	<div align="center"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" 
    		alt="<?php echo Countries::getCountryName($pilot->location);?>" />
    
    	  <?php echo $pilot->firstname.' '.$pilot->lastname?>
         </div></td>
    <td><div align="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></div></td>
    <td><div align="center"><?php echo $pilot->totalflights?></div></td>
    <td><div align="center"><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></div></td>
    <td><div align="center"><?php echo PilotData::GetFieldValue($pilot->pilotid, 'Vatsim_ID');?></div></td>
       <?php
    }
    ?>
    </tbody>
    </table>
    

  4. Hello,

    I am trying to get my phpvms working and I am having troubles with changing skins. What happens is you can select the new skin (ObessBlue) and then try to save it and it goes back to the original skin. I was looking through other settings and came across this in the template Diffs section:

    Fatal error: Call to undefined method SplFileInfo::getBaseName() in /var/www/vhosts/flyaircanadava.com/httpdocs/phpvms/admin/modules/TemplateDiffs/TemplateDiffs.php on line 38

    could this error be causing the issue with the templates? Here is the code below:

    $filename = $file->getBaseName();

    Any help would be appreciated.

    Chris

×
×
  • Create New...