Jump to content

Laura

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by Laura

  1. I'm looking for someone who's willing to create a design, just the way i want it to be, i got some ideas, but i'm just not able to get it done :o

    I don't know about pricing, but i guess "sky's the limit" :lol:

    good work = good money ?

    If someone's interested i guess skype would be the best way to talk things out/explain what i want ?

  2. Hi :D

    I deleted one of my PIREP's and then recalcuted the hours via the Maintenance page.

    I "lost" the hours, but it didn't update the "number of flights" - i still have 5 - should be 4.

    Did i forget to update something to show the correct number of flights ?

  3. I'm not sure why, but i don't quite get it :unsure:

    This is what my .tpl says, beginning from "if aircraftrank > pilotrank"

    Doesn't it say -> if the aircraftrank is higher than your rank then continue (ignore the rank) ?

    if($aircraftrank > $pilotrank)
    {
    continue;
    }
    		 }	
     $route->daysofweek = str_replace('7', '0', $route->daysofweek);
    
     if(strpos($route->daysofweek, date('w')) === false)
    		 continue;
     if(Auth::LoggedIn())
     {
    		 $search = array(
    				 'p.pilotid' => Auth::$userinfo->pilotid,
    				 'p.accepted' => PIREP_ACCEPTED
    		 );
    
    		 $reports = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, PIREP_ACCEPTED);
    
    		 if(is_object($reports))
    		 {
    				 # IF the arrival airport doesn't match the departure airport
    				 if($reports->arricao != $route->depicao)
    				 {
    						 continue;
    				 }
    		 }
    		 if(!$reports)
    		 {
    				 if (Auth::$userinfo->hub != $route->depicao)
    				 {
    				 continue;
    				 }
    		 }
     }
    					 ?>
    						 <a id="<?php echo $route->id; ?>" class="addbid"
    								 href="<?php echo url('/schedules/addbid');?>"><strong>Book Flight</strong></a>
    <?php }?>
     </td>
    </tr>
    <?php
    /* END OF ONE TABLE ROW */
    }}
    ?>
    </tbody>
    </table>
    <hr>
    

    But then your lines

    if($aircraftrank > $pilotrank)
    								 {
    										 echo 'Sorry rank too low!';
    								 }
    						 else
    								 {	
    

    say if the aircraftrank is higher than your rank, show "Sorry rank too low"

    If not, then go on ?

    I tried putting in your code, but i messed up somewhere as i only get a syntax error - "unexpected end blabla" :lol:

  4. I don't know if that's still an issue, but i found this thread 'cause i had the same problem, the map only showed me the first page of the schedule.

    It's the following setting in your local.config

    # Number of routes to show in the route map
    Config::Set('ROUTE_MAP_SHOW_NUMBER', 25);

  5. Anything can be done with a custom version. The aircraft selection was added to free due to user requests.

    So it's possibe to just let pilots change the aircraft according to their ranks ?

  6. I'd like to view the current flights on the frontpage in a box like the "Recent Pilots" & "Recent Pireps" Boxes, shown as "Flight number - Dep - Arr."

    I guess i have to get the code from the /acars page and simply exclude the map and all the stats (name, status, speed, dist/time remaining) i don't want to show .. ?

    If yes, where to get that code from ?

    And if no, where's my mistake ?

  7. I know this is not developed anymore, but maybe this was answered before :rolleyes:

    Thing is, the Real Schedule shows me flight's wich i shouldn't be able to bid on because of the aircraft used (you would need a higher rank to fly the 777)

    Thanks :D

    As this is solved (not an RealScheduleLite issue) i'm wondering why my position after purchasing a jumpseat ticket is not updated.

    The default booking page and Front Schedules still show me at the airport i was before buying the jumpseat ticket :D

  8. I'm having the same problem, the rank keeps getting ignored, meaning any aircraft is bookable :unsure:

    I had a look at Kyle's Code for the schedule_results.tpl but that actually confuses me more than it helps, i got no idea where to put it :lol:

    I've edited the schedule_results.tpl before - i'm using Front Schedule.

    I'd appreciate any help or suggestion how to actually make the ranks work :rolleyes:

    <?php
    if(!$allroutes)
    {
    echo '<p align="center">No routes have been found!</p>';
    return;
    }
    ?>
    <table id="tabledlist" class="tablesorter">
    <thead>
    <tr>
    <th>Flight Info</th>
    <th>Options</th>
    </tr>
    </thead>
    <tbody>
    <?php
    foreach($allroutes as $route)
    {
    
    
    
    /* THIS BEGINS ONE TABLE ROW */
    ?>
    <tr>
    <td>
     <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?>
      <?php echo '('.$route->depicao.' - '.$route->arricao.')'?>
     </a>
     <br />
    
     <strong>Departure: </strong><?php echo $route->deptime;?>         <strong>Arrival: </strong><?php echo $route->arrtime;?><br />
     <strong>Equipment: </strong><?php echo $route->aircraft; ?> (<?php echo $route->registration;?>)  <strong>Distance: </strong><?php echo $route->distance . Config::Get('UNITS');?>
     <br />
     <strong>Days Flown: </strong><?php echo Util::GetDaysCompact($route->daysofweek); ?><br />
     <?php echo ($route->route=='') ? '' : '<strong>Route: </strong>'.$route->route.'<br />' ?>
     <?php echo ($route->notes=='') ? '' : '<strong>Notes: </strong>'.html_entity_decode($route->notes).'<br />' ?>
     <?php
     # Note: this will only show if the above code to
     # skip the schedule is commented out
     if($route->bidid != 0)
     {
      echo 'This route has been bid on';
     }
     ?>
    </td>
    <td nowrap>
    <?php if(!Auth::LoggedIn()) {echo 'Restricted Access';}
    else {?>
    <a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a><br/>
    		    <?php   if(Auth::LoggedIn())
    				    {
    						    if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn())
    				    {
    				    if($route->ranklevel > Auth::$userinfo->rankid)
    				    {
    				    continue;
    				    }
    		    }	  
        $route->daysofweek = str_replace('7', '0', $route->daysofweek);
    
        if(strpos($route->daysofweek, date('w')) === false)
    		    continue;
        if(Auth::LoggedIn())
        {
    		    $search = array(
    				    'p.pilotid' => Auth::$userinfo->pilotid,
    				    'p.accepted' => PIREP_ACCEPTED
    		    );
    
    		    $reports = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, PIREP_ACCEPTED);
    
    		    if(is_object($reports))
    		    {
    				    # IF the arrival airport doesn't match the departure airport
    				    if($reports->arricao != $route->depicao)
    				    {
    						    continue;
    				    }
    		    }
    		    if(!$reports)
    		    {
    				    if (Auth::$userinfo->hub != $route->depicao)
    				    {
    				    continue;
    				    }
    		    }
        }
    					 ?>
    						    <a id="<?php echo $route->id; ?>" class="addbid"
    								    href="<?php echo url('/schedules/addbid');?>"><strong>Book Flight</strong></a>
    <?php }?>
        </td>
    </tr>
    <?php
    /* END OF ONE TABLE ROW */
    }}
    ?>
    </tbody>
    </table>
    <hr>
    

  9. Actually, i got the same question.

    I now adapted the Front Schedule so Pilots can't bid on flights if they're not at the departure airport.

    Hljxjdd.jpg

    Now, what i wanna do is to put in another box to book a jumpseat flight - to wichever airport.

    But, RealSchedule Lite would only let you buy a jumpseat ticket to airports where an aircraft is available - so this is a function i gotta disable - right ?

    Where to start - core/common/RealScheduleLiteData.class.php ?

  10. I've looked through the forums, and i found someone asking a question about his fleet page - one of the answering posts brought up the question if he'd made the page by creating a module ...

    I'm still trying to get into this whole PHPVms thing so my question is, what would be the best way to create your own Fleet Page ?

×
×
  • Create New...