Jump to content

piper338

Members
  • Posts

    152
  • Joined

  • Last visited

Posts posted by piper338

  1. Could someone help me out please I am trying to get the vatsim id to be displayed here http://flyvva.org/index.php/pilots

    The custom field is this Vatsim ID

    and here is the .tpl I have

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

  2. I tried re uploading and reinstalling, still no joy. just another error in addition.

    Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

    Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0

  3. Just tried to update to this version. I get the following error when I try to go to the admin section.

    An Error Was Encountered

    phpVMS has not been installed yet! Goto install/install.php to start!

    Everything else seems to work.  I ran the /install/update.php

  4. Hi guys I'm getting the following erros on the route map page with version 2.0.840

    Warning: Invalid argument supplied for foreach() in /home1/flyvvaor/public_html/core/modules/RouteMap/RouteMap.php on line 56

    Warning: Division by zero in /home1/flyvvaor/public_html/core/modules/RouteMap/RouteMap.php on line 80

    Warning: Division by zero in /home1/flyvvaor/public_html/core/modules/RouteMap/RouteMap.php on line 81

    Any ideas?

    Thanks.

    Chad C.

  5. Hi, once I get my current live website stable, I would like to create a development site to work on a few things.  Is it possible to run my dev site with the same database as the live site?  Is it a bad idea to do so?

  6. Hum, I'll give that a try the div layouts are still kinda confusing to me even haha cause I've never made a site with that much background so to get it to look right I have to make a bunch of wraps I'm sure there was a better way of doing it, but I'm just a furloughed pilot, and a newbie to this stuff. haha

    BTW Tom,  While i was in IE I looked at your site, and the nav isn't there in IE just FYI.

    Chad C.

×
×
  • Create New...