Jump to content

servetas

Moderators
  • Posts

    1726
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by servetas

  1. Unfortunately there is not any default function except if you add an if statement inside the schedule_results.tpl foreach and show only schedules from the last pilot's location. The thing is that you will have to get into consideration the fact that sometimes the schedules are not rounded. I believe that rejecting a pirep if it was not flown from the last pilot's location is too bureaucratic. If you search the forum there are some freeware and payware modules too. Freeware: http://forum.phpvms.net/topic/2791-realschedulelite-beta-10-deprecated/ Freeware: http://forum.phpvms.net/topic/8315-flightbookingsystem-v10/ Payware: http://php-mods.eu/site/index.php/real-booking-system/
  2. I do not think that you can do so. phpVMS is a standalone CMS system just like Wordpress and Joomla. It is not something easy to be done especially if you do not have an extended knowledge. What do you want to keep from your previous wordpress site?
  3. Have you tried to use the html code of the special letters instead of just typing them into your editor? For example, instead of á, you can use "á" (without the ""). More html codes can be found here.
  4. Which server are you using for the lookup of the airports?
  5. This has to do with your file manager. I would suggest using FileZilla in order to update the files of your website.
  6. Open your core/local.config.php and find this: Config::Set('PILOT_AUTO_RETIRE', true); Config::Set('PILOT_INACTIVE_TIME', 80); Set the PILOT_AUTO_RETIRE to false or change the number of the days.
  7. Open your core/common/StatsData.class.php file and find this: public static function PilotCount($airline_code='') { $key = 'pilot_count'; if($airline_code != '') { $key .= '_'.$airline_code; } $total = CodonCache::read($key); if($total === false) { $params = array( 'table' => TABLE_PREFIX.'pilots', 'fields' => 'COUNT(*) as `total`', ); if(!empty($airline_code)) { $params['where']['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; } after this, paste the following part of code: public static function ActivePilotCount($airline_code='') { $key = 'active_pilot_count'; if($airline_code != '') { $key .= '_'.$airline_code; } $total = CodonCache::read($key); if($total === false) { $params = array( 'table' => TABLE_PREFIX.'pilots', 'fields' => 'COUNT(*) as `total`', ); if(!empty($airline_code)) { $params['where']['code'] = $airline_code; $params['group'] = 'code'; } $params['where']['retired'] = 0; $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; } After that, you will be able to show the number of the current active pilots of your virtual airline using this: <?php echo StatsData::ActivePilotCount(); ?>
  8. Which script are you using?
  9. You are getting these errors because of your server's php version. phpVMS is compatible with PHP 5.3. Please bare in mind that in the past it has been reported that phpVMS does not work correctly with free web hosting providers.
  10. Strict standard error have to do with your server's php version. phpVMS works without any problems in PHP version 5.3. Alternatively, you can use simpilot's beta version which solves this kind of errors.
  11. Add this anywhere on your local.config.php file: Config::Set('PILOT_ORDER_BY', 'p.joindate ASC');
  12. As i can see, you have added a lot of airports in your database. That's why the page load is low.
  13. You may search the forum before you post a question. You will have to delete local.config.php file.
  14. Unfortunately, there is not any default solution to do something like this. You will just have to add different schedules and set the according to your scheduling system.
  15. There is no need to post a topic more than once... You can alternatively just bump the previous one. PS: Locking the topic. Use this instead
  16. There is not any specific table cause everything is being calculated in the background using an algorithm. You can check the tips and tricks on your vacenter profile page: PS:Moving the thread to the vacentral support forum.
  17. You can remove the following line: MainController::Run('Activity', 'Frontpage', 20);
  18. As you can see, a part of code is twice in the file. Check below: <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <div id="mainbox"> <?php // Show the News module, call the function ShowNewsFront // This is in the modules/Frontpage folder MainController::Run('News', 'ShowNewsFront', 5); // Show the activity feed MainController::Run('Activity', 'Frontpage', 20); ?> </div> <div id="sidebar"> <h3>Vôos Recentes</h3> <?php MainController::Run('PIREPS', 'RecentFrontPage', 5); ?> <h3>Novos Pilotos</h3> <?php MainController::Run('Pilots', 'RecentFrontPage', 5); ?> <h3>Usuários onlines</h3> <p><i>Houve <?php echo count($usersonline)?> usuário(s), e <?php echo count($guestsonline);?> visitante(s) online(s) nos últimos <?php echo Config::Get('USERS_ONLINE_TIME')?> minutos.</i></p> <?php /* $usersonline also has the list of users - really simple example Or if you're not on the frontpage: $usersonline = StatsData::UsersOnline(); foreach($usersonline as $pilot) { echo "{$pilot->firstname} {$pilot->lastname}<br />"; } */ ?> </div>
  19. If you do not paste your frontpage file here, we will not be able to help you.
  20. I have moved the thread to Paid Services board.
  21. Personally i do not know what causes the problem if i do not see it. Could you please send me your cpanel login details via PM in order to check it? If I find the solution, i will post it here.
  22. servetas

    Map

    Check this: http://www.crazycreatives.com/downloads/airline-route-map/
  23. Can you give us your website url?
×
×
  • Create New...