Jump to content

Jeff

Members
  • Posts

    1307
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Jeff

  1. Looking at the Information page of a FedEx flight that was done, I noticed that this is not showing correctly:

    Taking Off with 222846 passengers on board

    This should say 222846 lbs of cargo on board shouldn't it?

    I have the flight scheduled as "C" not "P" and I am using Custom kAcars.

    Thanks - Jeff

  2. The map will change back once the visible routes are shortened. The map itself automatically changes to a globe in order for it to show the longer routes (ie. from Middle East to Toronto) while still showing shorter routes.

  3. If you just want it to be hidden from view altogether, do this:

    Remove this code from pirep_viewreport.tpl

    <td width="50%" valign="top" align="right">
    <table class="balancesheet" cellpadding="0" cellspacing="0" width="100%">
    
    <tr class="balancesheet_header">
    	<td align="" colspan="2">Flight Details</td>
    </tr>
    <tr>
    	<td align="right">Gross Revenue: <br /> 
    		(<?php echo $pirep->load;?> load / <?php echo FinanceData::FormatMoney($pirep->price);?> per unit  <br />
    	<td align="right" valign="top"><?php echo FinanceData::FormatMoney($pirep->load * $pirep->price);?></td>
    </tr>
    <tr>
    	<td align="right">Fuel Cost: <br />
    		(<?php echo $pirep->fuelused;?> fuel used @ <?php echo $pirep->fuelunitcost?> / unit)<br />
    	<td align="right" valign="top"><?php echo FinanceData::FormatMoney($pirep->fuelused * $pirep->fuelunitcost);?></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    And remove this link from the profile_main.tpl

    <li><a href="<?php echo url('/finances');?>">View VA Finances</a></li>
    

    Then no one will know you have any finances.

  4. Remove this:

    <dt>Select Airline: *</dt>
    <dd>
    	<select name="code" id="code">
    	<?php
    	foreach($allairlines as $airline)
    	{
    		echo '<option value="'.$airline->code.'">'.$airline->code.' - '.$airline->name.'</option>';
    	}
    	?>
    	</select>
    </dd>
    

    Put this in its place:

    <input type="hidden" name="code" value="CFC" />

    By doing this will remove the option on the page and automatically set all new registered members as CFC****

  5. You can also check in your core/modules/schedules.php file to see if the following code is correct.

    CodonEvent::Dispatch('bid_preadd', 'Schedules', $routeid);
    
    	/* Block any other bids if they've already made a bid
    	 */
    	if(Config::Get('DISABLE_BIDS_ON_BID') == true)
    	{
    		$bids = SchedulesData::getBids(Auth::$userinfo->pilotid);
    
    		# They've got somethin goin on
    		if(count($bids) > 0)
    		{
    			echo 'Bid exists!';
    			return;
    		}
    	}
    
    	$ret = SchedulesData::AddBid(Auth::$userinfo->pilotid, $routeid);
    	CodonEvent::Dispatch('bid_added', 'Schedules', $routeid);
    
    	if($ret == true)
    	{
    		echo 'Bid added';
    	}
    	else
    	{
    		echo 'Already in bids!';
    	}
    }
    
    

    What I did (because I fully customized my schedules and schedule_results templates) is added a couple of images that pilots click on instead of the original "Add To Bid" text. To do that, change this (in modules.schedules.php)

    	$ret = SchedulesData::AddBid(Auth::$userinfo->pilotid, $routeid);
    	CodonEvent::Dispatch('bid_added', 'Schedules', $routeid);
    
    	if($ret == true)
    	{
    		echo 'Bid added';      <<<<<<CHANGE THIS
    	}
    	else
    	{
    		echo 'Already in bids!';         <<<<<<<<CHANGE THIS
    	}
    }
    
    

    To this:

    $ret = SchedulesData::AddBid(Auth::$userinfo->pilotid, $routeid);
    	CodonEvent::Dispatch('bid_added', 'Schedules', $routeid);
    
    	if($ret == true)
    	{
    		echo '<img src="http://www.yoursite.com/images/added.png" alt="Bid Added"/>';
    	}
    	else
    	{
    		echo '<img src="http://www.yoursite.com/images/added.png" alt="Bid Added"/>';
    	}
    }
    

    ...and in your schedule_results.tpl, change:

    <?php 
    	# Don't allow overlapping bids and a bid exists
    	if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
    	{
    	?>
    		<a id="<?php echo $route->id; ?>" class="addbid" 
    			href="<?php echo actionurl('/schedules/addbid');?>">Add to Bid</a>     <<<<<<<<CHANGE THIS
    	<?php
    	}
    	else
    	{
    		if(Auth::LoggedIn())
    		{
    		 ?>
    			<a id="<?php echo $route->id; ?>" class="addbid" 
    				href="<?php echo url('/schedules/addbid');?>">Add to Bid</a>       <<<<<<<CHANGE THIS
    
    

    To this:

    <?php 
    	# Don't allow overlapping bids and a bid exists
    	if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0)
    	{
    	?>
    		<a id="<?php echo $route->id; ?>" class="addbid" 
    			href="<?php echo actionurl('/schedules/addbid');?>"><img src="http://www.yoursite.com/images/bidflight.png" alt="Bid Flight" /></a>     <<<<<<<<TO THIS
    	<?php
    	}
    	else
    	{
    		if(Auth::LoggedIn())
    		{
    		 ?>
    			<a id="<?php echo $route->id; ?>" class="addbid" 
    				href="<?php echo url('/schedules/addbid');?>"><img src="http://www.yoursite.com/images/bidflight.png" alt="Bid Flight" /></a>       <<<<<<<TO THIS
    
    

    hope you can get it sorted out.

×
×
  • Create New...