Hi. I noticed in the 2.0 release that even though “USE TRANSFER HOURS IN RANK CALCULATION” is true, it is not using my transfer hours in the rank calculation. Thanks!
You need to add this line to your “local.config.php” file:
Config::Set(‘TRANSFER_HOURS_IN_RANKS’, true);
already there
Did you do a recalculate in the ranks section of the admin panel?
Man, can’t beleive I didn’t think of that! It does show the proper rank, but on my profile page, it shows only the hours I’ve logged with my va, not transfer hours.
Actually, it should show all hours; at least, mine does. ???
Yes, something is wrong with it because it uses the transfer hours in the rank, but not in total hours
Yes, something is wrong with it because it uses the transfer hours in the rank, but not in total hours
Can you give some examples/number?
Do you mean the VA total hours? It will only count pirep hours, not transfer
Hours logged with the VA - 4.43 hours
Transfer hours - 232 hours
Shows the correct rank of Senior Captain, says I have only 4.43 hours on my Profile page, but says I have 236.43 hours under the hours column in the roster.
So it should say the 4.43? That’s an error on my template:;
http://bugs.phpvms.net/browser/trunk/core/templates/pilots_list.tpl#L48
Line 48:
It’s:
<td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td>
Make it:
<td><?php echo $pilot->totalhours; ?></td>
Sorry, I didn’t say what I wanted. I want it to say the total hours, including transfer hours, on the profile page, just like on the roster.
Nabeel, is it at all possible to add a “transfer flights” option as well, to keep the amount of flights set to old stats. The same way the “transfer hours” works…I might have asked this already, sorry.
Perhaps in the next version, yes
My ranks works normally until today, i recently joined vaCentral, does is got something to do with it…It all worked fine, just changed to true under local config, but now i found local config again setted to false, does vacentral do simething to that ?
After reseting ranks via admin panel, all ok