Jump to content

servetas

Moderators
  • Posts

    1726
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by servetas

  1. Change the brackets of line 156 from $pirep->flightnum to $flight->flightnum.
  2. http://forum.phpvms.net/topic/22739-fatal-error-class-db-not-found-in-customersf54aircanadavaorghttpdwwwcorecommonsettingsdataclassphp-on-line-28/page__hl__%2Bfatal+%2Berror%3A+%2Bclass+%2B%26%2339%3Bdb%26%2339%3B+%2Bfound http://forum.phpvms.net/topic/23408-fatal-error-class-db/page__hl__%2Bfatal+%2Berror%3A+%2Bclass+%2B%26%2339%3Bdb%26%2339%3B+%2Bfound http://forum.phpvms.net/topic/23336-solved-error-on-installation-of-version-21935-build-number-936/page__hl__%2Bfatal+%2Berror%3A+%2Bclass+%2B%26%2339%3Bdb%26%2339%3B+%2Bfound http://forum.phpvms.net/topic/22099-error-on-install-attempt/page__hl__%2Bfatal+%2Berror%3A+%2Bclass+%2B%26%2339%3Bdb%26%2339%3B+%2Bfound http://forum.phpvms.net/topic/22075-problem-with-the-installation/page__hl__%2Bfatal+%2Berror%3A+%2Bclass+%2B%26%2339%3Bdb%26%2339%3B+%2Bfound http://forum.phpvms.net/topic/21988-help-website-problem-solved/page__hl__%2Bfatal+%2Berror%3A+%2Bclass+%2B%26%2339%3Bdb%26%2339%3B+%2Bfound http://forum.phpvms.net/topic/21780-error-instalation-phpvms-solved/page__hl__%2Bfatal+%2Berror%3A+%2Bclass+%2B%26%2339%3Bdb%26%2339%3B+%2Bfound http://forum.phpvms.net/topic/21460-error-while-installing/page__hl__%2Bfatal+%2Berror%3A+%2Bclass+%2B%26%2339%3Bdb%26%2339%3B+%2Bfound Search, search, search
  3. <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <?php if(!$pilot) { echo '<h3>This pilot does not exist!</h3>'; return; } ?> <h3>Profile For <?php echo $pilot->firstname . ' ' . $pilot->lastname?></h3> <table> <tr> <td align="center" valign="top"> <?php if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) { echo 'No avatar'; } else { echo '<img src="'.SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png'.'" alt="No Avatar" /> '; } ?> <br /><br /> <img src="<?php echo $pilot->rankimage?>" alt="" /> </td> <td valign="top"> <ul> <li><strong>Pilot ID: </strong><?php echo $pilotcode ?></li> <li><strong>Rank: </strong><?php echo $pilot->rank;?></li> <li><strong>Total Flights: </strong><?php echo $pilot->totalflights?></li> <li><strong>Total Hours: </strong><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></li> <li><strong>Location: </strong> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo Countries::getCountryName($pilot->location);?> </li> <?php // Show the public fields if($allfields) { foreach($allfields as $field) { echo "<li><strong>$field->title: </strong>$field->value</li>"; } } ?> </ul> <p> <strong>Awards</strong> <?php if(is_array($allawards)) { ?> <ul> <?php foreach($allawards as $award) {?> <li> <img src="<?php echo $award->image; ?>" alt="<?php echo $award->name; ?>" /><?php echo $award->name; ?></li> <?php } ?> </ul> <?php } ?> </p> </td> </tr> </table> <!-- Google Chart Implementation - OFC Replacement - simpilot --> <img src="<?php echo $chart_url ?>" alt="Pirep Chart" /> What about that?
  4. Changes the file's extensions from .tpl to .php. I hope that it will work.
  5. Have you edited the pilot center/profile page? You should be able to see them as soon as you are using the default templates as I remember. What is your website url?
  6. Yes, all these are known errors which come up when you use the old phpVMS version on a server which has PHP 5.5 installed. Try downloading phpvms from here: https://github.com/DavidJClark/phpvms_5.5.x/archive/master.zip If you server uses PHP 5.5, the above phpVMS version will work correctly. Alternatively you can switch to PHP 5.3 if 1&1 hosting allows that but I would not suggest that if you are going to install a new phpVMS system.
  7. For each issue you have to open a new thread in order to keep the questions categorized and grouped. Post your question in a new thread and describe the problem more giving examples too.
  8. This is an English speaking forum. Please use English instead.
  9. Regarding the captcha check this out: http://forum.phpvms.net/topic/23412-website-recapcha/
  10. Have you updated the php version too? The latest version of phpVMS works with php 5.5.
  11. I do not think so. What is the installed php version on your server?
  12. If you are starting now, I would suggest directly installing the latest phpVMS version which is compatible with the latest php versions. You can find it here: https://github.com/D...rk/phpvms_5.5.x I do not know if the errors are due to the old version but I suggest using the latest version. Give it a try and let us know if the error persist.
  13. Which phpVMS version are you using? Where did you download it from?
  14. Replace this: public static function get_settings() { $query = "SELECT * FROM ".TABLE_PREFIX."autopirep_settings"; return DB::get_row($query); } with this one: static function get_settings() { $query = "SELECT * FROM ".TABLE_PREFIX."autopirep_settings"; return DB::get_row($query); }
  15. Can you give it a try? static function get_settings() { $query = "SELECT * FROM ".TABLE_PREFIX."autopirep_settings"; return DB::get_row($query); }
  16. Or a more direct snippet. +1 for your code <?php $url = "http://www.websiteurl.net/index.php/charter"; $site_title = "Charter Flights"; if((Auth::$userinfo->totalhours + Auth::$userinfo->transferhours)>=10) { Echo "<a href=$url>$site_title</a>" ; } ?>
  17. Unzip the airports.zip file, inside it there is an airports.sql file. Open the file and go to lines 29, 30, 48 and 696 and replace `airports` with your `phpvms_tableprefix_airports`. After that, open your phpmyadmin, locate your phpVMS database and import this file.
  18. Hello Omer, 1. Open your core folder. Inside it, you will find the local.config.php file. Copy and paste the following: Config::Set('ACARS_LIVE_TIME', 15); Config::Set('ACARS_DEBUG', false); Check the file if the above two lines are already included. The default value is 720 which means that the flights will remain line for 720 minutes = 12 hours. Update 720 to anything you want. 2. All these settings can be updated from local.config.php file. If you do not find some settings, open app.config.php file. This file includes all the available phpVMS settings. Copy the setting you want to update from the app.config.php file (if it is not already included in the local.config.php file) and paste it into the local.config.php file. Do make any changes into your app.config.php file as this will file is updated whenever you update your phpVMS while the settings set on local.config.php file are not replaced. George
  19. The last screenshot you posted is the frontpage you would like to have? In that case, where should the official video be placed?
  20. No, I would need the code for the current flights in orderto check the variable you are using inorder toparse the data for the current flights section.
  21. Can you post the part of code for the current flights section?
  22. Have you tried downloading the latest phpVMS version from github? https://github.com/DavidJClark/phpVMS-Credits
  23. Hello. http://forum.phpvms.net/index.php?app=core&module=search&do=search&fromMainBar=1
  24. Basically my mistake, I referred you to the wrong file. Can you check admin/modules/Ruleregs/Ruleregs.php? Change the line 11 of this file.
×
×
  • Create New...