Jump to content

Jeff

Members
  • Posts

    1307
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jeff

  1. Just curious Jeff, how are you getting your schedules done so quickly, and what do you use to do them?
  2. I was just wanting to do a different site for like a tour/charter site, but I haven't been able to figure out how to set it up using the sub-domain.
  3. Jeff

    Acars Map

    The acars map is not functional with fsPassengers unfortunately.
  4. Keith, when you are scheduling different airlines, just make sure the flights are for that airline only. ie: AA454, DL159, B6554 etc. As far as I am aware of, my site (One World Virtual) and Jeffrey's (Phoenixva) are using this way to schedule. You can also schedule your fleet the same way. When you add a new airline, it will show up on the registration page so they can choose which airline they want to fly for. Just recently, I had this conversation with Nabeel, and he said you cannot have multiple sites run from the same database (I believe that is what you are trying to accomplish) but I am trying to figure out if there is a way to use the sub domain for this.
  5. I'd have to agree with Conor. Looking at what other people have done to their site, just brings up more and more possibilities to make phpVMS grow more.
  6. When trying to delete sent messages, I get this error: This is my line 248 in the TemplateSet.class.php file: trigger_error('The template file "'.$tpl_path.'" doesn\'t exist'); But looking in the templates folder, the mail_deletefolder.tpl does exist in there. What's the solution?
  7. Yep that works, thanks again Jeff. All I need to do now is skin it...
  8. Parse error: syntax error, unexpected $end in /home/oneworld/public_html/lib/skins/crystal-II/frontpage_main.tpl on line 162 Here is the whole code for that page <div id="mainbox"> <h3>Welcome To One World Virtual</h3> <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('News', 'ShowNewsFront', 5); ?> <?php $flights = PIREPData::getRecentReportsByCount(15); $string = ""; foreach($flights as $flight) { $string = $string.$flight->depicao.'+-+'.$flight->arricao.',+'; } ?> <table> <tr> <th>LAST 15 FLIGHT LEGS</th> </tr> <tr> <td><p align="center"><img src="http://www.gcmap.com/map?P=<?php echo $string ?>&MS=bm&MR=240&MX=690x360&PM=pemr:diamond7:red%2b%22%25I%22:red&PC=%230000ff" /><br /> Maps generated by the <a href="http://www.gcmap.com/">Great Circle Mapper</a> - copyright © <a href="http://www.kls2.com/~karl/">Karl L. Swartz</a>.</p></td> </tr> </table> <?php $count = 5; $pireps = PIREPData::getRecentReportsByCount($count); ?> <table> <thead> <tr> <th>Flight #</th> <th>Departure</th> <th>Arrival</th> <th>Duration</th> <th>Pilot</th> <th>Landing Rate</th> </tr> </thead> <tbody> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); echo "<tr>"; echo "<td>'.$pirep->code.$pirep->flighnum.'</td>"; echo "<td>'.$pirep->depicao.'</td>"; echo "<td>'.$pirep->arricao.'</td>"; echo "<td>'.$pirep->flighttime.'</td>"; echo "<td>'.$pilotid.' '.$pilotinfo->firstname.' '.$pilotinfo->lastname.'</td>"; echo "<td>'.$pirep->landingrate.'</td>"; echo "</tr>"; } } else { echo "<tr><td>There are no recent flights!</td></tr>"; ?> </tbody> </table> </div> </div> <div id="sidebar"> <h3>Pilot Center</h3> <?php /* Quick example of how to see if they're logged in or not Only show this login form if they're logged in */ if(Auth::LoggedIn() == false) { ?> <form name="loginform" action="<?php echo url('/login'); ?>" method="post"> <p>Log in to your pilot center or <a href="<?php echo url('/registration'); ?>">register</a><br /> <input type="text" name="email" value="Email/Pilot ID" onClick="this.value=''" /> </p> <p> <input type="password" name="password" value="Password" /> </p> <p> <input type="hidden" name="remember" value="on" /> <input type="hidden" name="redir" value="index.php/profile" /> <input type="hidden" name="action" value="login" /> <input type="submit" name="submit" value="Log In" /> </p> </form> <p> <?php } /* End the Auth::LoggedIn() if */ else /* else - they're logged in, so show some info about the pilot, and a few links */ { /* Auth::$userinfo has the information about the user currently logged in We will use this next line - this gets their full pilot id, formatted properly */ $pilotid = PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); ?> <strong>Pilot ID: </strong> <?php echo $pilotid ; ?> <strong>Rank: </strong><?php echo Auth::$userinfo->rank;?><br /> <strong>Total Flights: </strong><?php echo Auth::$userinfo->totalflights?>, <strong>Total Hours: </strong><?php echo Auth::$userinfo->totalhours;?> <br /><?php } /* End the else */ ?> </p> <p> <?php MainController::Run('Mail', 'checkmail'); ?> </p> <h3>Recent Reports</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> <h3>Newest Pilots</h3> <p> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> </p> <h3>Airline Stats</h3> <p><strong>Total Schedules: </strong><?php echo StatsData::totalschedules(); ?></p> <p><strong>Total Aircraft: </strong><?php echo StatsData::TotalAircraftInFleet(); ?></p> <p><strong>Total Pilots: <?php echo StatsData::PilotCount(); ?></strong></p> <p><strong>Miles Flown: </strong><?php echo StatsData::TotalMilesFlown(); ?></p> <p><strong>Total Flights Flown: </strong><?php echo StatsData::TotalFlights(); ?></p> <p><strong>Total Hours Flown: </strong><?php echo StatsData::TotalHours(); ?></p> <p><strong>Passengers Carried: </strong><?php echo StatsData::TotalPaxCarried(); ?></p> <p><strong>Fuel Burned (lbs.): </strong><?php echo StatsData::TotalFuelBurned(); ?></p> <p><strong>Avg Landing Rate: </strong><?php echo ''.round(TouchdownStatsData::airline_average('airline'), 2); ?></p> <p><strong>Total Flights Today: </strong><?php echo StatsData::totalflightstoday(); ?></p> <p><strong>Total Cargo Carried: </strong><?php echo StatsData::TotalCargoCarried(); ?> <h3>Users Online</h3> <?php foreach($usersonline as $pilot) { echo "<p>"; echo '<img src="'.Countries::getCountryImage($pilot->location).'" alt="'.Countries::getCountryName($pilot->location).'" />'; echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname; echo "</p>"; } ?> <br /> Have <?php echo count($usersonline);?> Pilots Online. <h3 class="style3">Guests Online </h3> <p class="txt-red10"> Have <?php echo count($guestsonline);?> Guests Online.</div> </div>
  9. Ray, can you open your profile_stats.tpl and see if there is a <div class="mcright"> at the very top of the page. If not, add it and also add another </div> at the very end of the code (very bottom)
  10. Parse error: syntax error, unexpected T_ECHO, expecting ',' or ';' in /home/oneworld/public_html/lib/skins/crystal-II/frontpage_main.tpl on line 61
  11. Any news on the debugging report Nabeel?
  12. I think you are wanting an on-time scoring system right? Would be nice to have.
  13. Jeff, I'm trying to create a table to place under the map on my home page that shows the last 5 flights flown. kind of like the one on this page The one that says latest arrivals.
  14. I'm trying to show a table of the 5 recent flights flown, and keep running into a brick wall here. Can someone please post the code to show the last 5 flight. Flight Number - Departure Airport - Arrival Airport - Flight Time - Pilot - Landing %
  15. what happens when you do a check install? www.yoursite.com/install/checkinstall.php It sounds like maybe some files aren't there, or are corrupt
  16. I never heard of a login screen on install. But if you are getting a page where it asks for your database, username and password, maybe this will help. Click Here
  17. Jeff

    Pax Status

    David, I got it fixed for you. Check your PM
  18. Jeff

    Obsess Blue

    I fixed it for you. You are good to go.
  19. Jeff

    Pax Status

    David, if you placed that code at the very end of StatsData.class.php AFTER HERE: /** * Return the total number of schedules in the system * * @return int $airline_code Total number * */ public static function TotalSchedules($airline_code='') { $key = 'total_schedules'; if($airline_code != '') { $key .= '_'.$airline_code; } $total = CodonCache::read($key); if($total === false) { $params = array( 'table' => TABLE_PREFIX.'schedules', 'fields' => 'COUNT(`id`) as `total`', ); if(!empty($airline_code)) { $params['where'] = array('code' => $airline_code); $params['group'] = 'code'; } $sql = DB::build_select($params); $results = DB::get_results($sql); if(!$results) { $total = 0; } else { $total = $results[0]->total; } CodonCache::write($key, $total, '15minute'); } return $total; } } <<<THIS IS THE ONE YOU MOVE you need to remove the extra } from that code to the very end of the code you just pasted. That's probably why that error is coming up.
  20. I just installed it last night. It works fine, but very unhappy about members not being able to upload images...will be uninstalling once something else if found.
  21. Yep, works fine. And also I'm not using the ObsessBlue for it. Thanx TAV
  22. Jeff

    Space

    Yeah that's definitely weird. It looks like a css issue, but not sure why it would only be that one page and not the others.
  23. Thanks Jason, uploading it now.
  24. Jeff

    kACARS_Free 1.0.0.8

    Jeff, If I decide to start offering this to my members, and want to link the download, do I need to have the download link go to your site or can I just install it on my site and have them download it there. I just want to ask before I get yelled at for sharing someone else's stuff again.
×
×
  • Create New...