1 hour ago, CarlosEduardo2409 said:
Can you pass me your entire code from StatsData.class.php?
This is it, https://pastebin.com/BDwdyi4c
1 hour ago, CarlosEduardo2409 said:
Can you pass me your entire code from StatsData.class.php?
This is it, https://pastebin.com/BDwdyi4c
14 minutes ago, BuckkEntertainment said:
This is it, https://pastebin.com/BDwdyi4c
Ok, try to use this: https://pastebin.com/rKKceD9j
39 minutes ago, CarlosEduardo2409 said:
Ok, try to use this: https://pastebin.com/rKKceD9j
That worked! Thank you.
I am the owner of php-skins.com and taking someones work and turning into freeware is illegal
10 hours ago, vbegin7 said:
I am the owner of php-skins.com and taking someones work and turning into freeware is illegal
Hello , it’s nice to meet you, but as I said, Elaskin did not have anything paid.
12 hours ago, CarlosEduardo2409 said:
Hello , it’s nice to meet you, but as I said, Elaskin did not have anything paid.
me and @shakamonkey88 already figured that out sorry,
Thanks
7 hours ago, vbegin7 said:
me and @shakamonkey88 already figured that out sorry,
Thanks
All right, no problem, I know these things are accurate.
Thanks
Hello!
Just a quick question are we allowed to remove the Favicon and logo in the top left to one that represents our airline, and if we are allowed to do you mind briefly showing me where the image file is located so I can change it.
Thanks,
Raaj Patel
10 hours ago, RaajPatel said:
Hello!
Just a quick question are we allowed to remove the Favicon and logo in the top left to one that represents our airline, and if we are allowed to do you mind briefly showing me where the image file is located so I can change it.
Thanks,
Raaj Patel
It is totally allowed to remove Favicon and Logo, I advise you to leave some credit for Colorlib, the creator of the admin template, can be in the footer.
Hi I have got it working ok but a couple of things how do i add a button for tools and the pilot profile on the dashboard i cannot see a link for pilots or profile page, the only one is to edit your profile ?
great work by the way looks awesome !!!
Wazza
Hey,
Is there tpl version?
8 hours ago, Relja12 said:
Hey,
Is there tpl version?
You don’t need a tpl version - it is built for phpVMS 5.5x
On 6/22/2018 at 3:38 AM, CarlosEduardo2409 said:
Can you pass me your entire code from StatsData.class.php?
I have the problem as well, could you please help with the code? Thanks a million!!!
I see a loading sign in the middle after changed to ela skin.
Hi!
I am having a problem w/ ElaSkin
Fatal error: Call to undefined method StatsData::TotalPilotMiles() in /home/bosnaxxa/crew.bosnaxx-air.com/lib/skins/ela/profile\_main.php on line 70
31 minutes ago, Qshad said:
Hi!
I am having a problem w/ ElaSkin
Fatal error: Call to undefined method StatsData::TotalPilotMiles() in /home/bosnaxxa/crew.bosnaxx-air.com/lib/skins/ela/profile_main.php on line 70
Hello !
You will need to add TotalPilotMiles to the StatsData.class.php file. For this you must do:
2. After opening StatsData.class.php file, add the following code:
public static function TotalPilotMiles($pilotid) { $key = 'total\_miles'; $key .= '\_'.$pilotid; $total = CodonCache::read($key); if($total === false) { $total = 0; $sql = "SELECT \* FROM ".TABLE\_PREFIX."pireps WHERE pilotid='$pilotid' AND accepted=1"; $results = DB::get\_results($sql); if($results) { foreach($results as $result) { $total += $result-\>distance; } } CodonCache::write($key, $total, '15minute'); } return $total; }
Like this: https://prnt.sc/qo9ari
I hope it helped you!
demo isnt working.
14 hours ago, CarlosEduardo2409 said:
Hello !
You will need to add TotalPilotMiles to the StatsData.class.php file. For this you must do:
- Go to core/common/StatsData.class.php
2. After opening StatsData.class.php file, add the following code:
public static function TotalPilotMiles($pilotid) { $key = ‘total_miles’; $key .= ‘_’.$pilotid; $total = CodonCache::read($key); if($total === false) { $total = 0; $sql = "SELECT * FROM ".TABLE_PREFIX.“pireps WHERE pilotid=‘$pilotid’ AND accepted=1”; $results = DB::get_results($sql); if($results) { foreach($results as $result) { $total += $result->distance; } } CodonCache::write($key, $total, ‘15minute’); } return $total; }
Like this: https://prnt.sc/qo9ari
I hope it helped you!
Hey! Yes you helped me!
But unfortunately partly.
There is only a loading screen. Nothing is loading. Infinite Loading Screen.
4 hours ago, Qshad said:
Hey! Yes you helped me!
But unfortunately partly.
There is only a loading screen. Nothing is loading. Infinite Loading Screen.
Make sure you have the AirMail and TouchdownStats modules correctly installed. If they are installed, hit Ctrl + U on your site dashboard and on the page that opened (which will be the code of your page), see if you have any errors.
I am knowing about the demo site, I will see if I can host a new site somewhere.
On 6/11/2018 at 6:19 PM, CarlosEduardo2409 said:
Hi ,
So for fix this you need to go core/common and open StatsData.class.php
After open, you need to paste this code:
<?php public static function TotalPilotMiles($pilotid) { $key = ‘total_miles’; $key .= ‘_’.$pilotid; $total = CodonCache::read($key); if($total === false) { $total = 0; $sql = "SELECT * FROM ".TABLE_PREFIX.“pireps WHERE pilotid=‘$pilotid’ AND accepted=1”; $results = DB::get_results($sql); if($results) { foreach($results as $result) { $total += $result->distance; } } CodonCache::write($key, $total, ‘15minute’); } return $total; }
Sorry for not coding, nothing I’m finding the function.
tried that, but for me the page keeps the same ![]()