Did you try to clear the cache through the maintenance options? Some of the phpVMS statistics are being cached for a specific period of time in order to reduce the server load.
if(Auth::$userinfo->totalflights >= 10) {
//place here the download link
} else { echo 'You have to fly at least 10 flights to download.';}
Can you check this? It should work if I have not missed anything.
I believe that this is due to the number of airports you have added on your system. You can either increase the memory limit through your server's settings or remove the airports which are not needed (probably you should have thousands of them ).
If you do not post any more data about your website, none of us will be able to assist you. Please let us know your website url, the css you used for your topbanner, the url of topbanner and any other data you believe that will help us.
There is not any function to export pilots through your admin center. You can do so using phpmyadmin but you will have to check if there are any changes.
It seems that you are using a wrong variable on your foreach. Can you try using this instead?
<ul style="margin-top:10px; margin-left:3px;width:100%;" class="list-group">
<?php
foreach($pilots as $allpilot) {
?>
<li class="list-group-item"><img src="<?php echo Countries::getCountryImage($pilot->location);?>"
alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><font color="#2f2f2f"><?php echo $pilot->firstname.' '.$pilot->lastname ?></font></a></li>
<?php
}
?>
</ul>
Use this instead:
<?php echo $userinfo->pilotid+PILOTID_OFFSET; ?>
Although, i do not know if it will be working with your login form. Just test it yourself and let us know.
Open your core/templates/pilot_center.tpl (or .php) find this:
<?php echo $pilotcode; ?>
and replace with this:
<?php echo $userinfo->pilotid; ?>
This is only if you are using the default phpVMS template. Otherwise you will have to edit your template instead.
I think that on phpVMS you can just login with your number on the login forum in order to login. For example, I am GRW001 but I am logging in with just "1" (without ""). Have you tried it?
The templates are using wrong values on their foreach functions. It is $allpilots instead of $pilot_list, $allairlines instead of $airline_list, $allhubs instead of $hub_list and $countries instead of $country_list. I hope this solves the problem.
In the past, it has been reported that phpVMS does not work correcly in free web hosting providers. These errors have been also reported on free web hosting providers.