flyalaska Posted September 14, 2016 Report Share Posted September 14, 2016 (edited) Thank you for looking at my skin. blueIce is for php skins only and was tested with SimPilots 5.5.2 Whats all included: - Styled Tables- - Pre installed Modules (template files only) - Font Awesome Icons - Pop up Login and Logout - Custom Private and Public Profiles - Paginating Tables Modules Needed: You will need to install a few modules for this template to work. (Module Zips included) AirMail 3 All Awards Ranks Touchdown Stats My Downloads Join This template is for phpVMS php versions only! (5.5.x) Download Here! Very detailed instructions is included in the download zip. Edited March 22, 2020 by flyalaska 2 Quote Link to comment Share on other sites More sharing options...
YusufBudi Posted September 16, 2016 Report Share Posted September 16, 2016 (edited) Great skin..!! If you get errors : - home: Fatal error: Call to undefined method TouchdownStatsData::get_landingstats_currentmonth() in/home/yusufbudi1234/public_html/flyid.net/lib/skins/blueIce/frontpage_main.php on line 139 See this thread and jump to post#106. Just insert this on the TouchdownstatsData.class.php public static function get_stats_by_cur_month($howmany) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND MONTH(submitdate)=MONTH(now()) AND YEAR(submitdate)=YEAR(now()) ORDER BY landingrate DESC LIMIT $howmany"; return DB::get_results($query); } and change the frontpage_main.php line 139 to $lstats = TouchdownStatsData::get_stats_by_cur_month(5); - My Profile : Fatal error: Call to undefined method StatsData::TotalPilotMiles() in/home/yusufbudi1234/public_html/flyid.net/lib/skins/blueIce/profile_main.php on line 57 Solved, as posted by Servetas here post #2 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; } - Edit : Just found the solution. URL : http://flyid.net PHPVMS ver : 5.5.2 PHP ver : 5.5.37 Edited September 17, 2016 by YusufBudi Quote Link to comment Share on other sites More sharing options...
flyalaska Posted September 16, 2016 Author Report Share Posted September 16, 2016 Remove the code from both profiles of the total miles code <?php echo StatsData::TotalPilotMiles($pilot->pilotid); ?> replace it with -- for now. Quote Link to comment Share on other sites More sharing options...
flyalaska Posted September 17, 2016 Author Report Share Posted September 17, 2016 I just for got to include the Module update. I will have included this evening. Sorry about that. Quote Link to comment Share on other sites More sharing options...
omarmerhabi Posted September 18, 2016 Report Share Posted September 18, 2016 Hi! So I downloaded the skin and did everything the instructions said, but I got this. Quote Link to comment Share on other sites More sharing options...
flyalaska Posted September 19, 2016 Author Report Share Posted September 19, 2016 You are not on phpvms 5.5 (php version) Quote Link to comment Share on other sites More sharing options...
mattsmith Posted September 19, 2016 Report Share Posted September 19, 2016 How do you change the blue colour? Quote Link to comment Share on other sites More sharing options...
flyalaska Posted September 19, 2016 Author Report Share Posted September 19, 2016 css 1 Quote Link to comment Share on other sites More sharing options...
omarmerhabi Posted September 19, 2016 Report Share Posted September 19, 2016 You are not on phpvms 5.5 (php version) Actually, I am Quote Link to comment Share on other sites More sharing options...
flyalaska Posted September 20, 2016 Author Report Share Posted September 20, 2016 Thats a error you get when you put a php template on a tpl version. Whats your url and what php version are you on )hosting)? What exact phpvms are you on? Quote Link to comment Share on other sites More sharing options...
ercio Posted September 29, 2016 Report Share Posted September 29, 2016 (edited) i have the same error as OMAR, running on php 5.6 so how can i change to be always on php version as u said the error is bcuz it is tpl on php PS: fixed ( delete phpvms old version and installed 5.5) Edited September 29, 2016 by ercio Quote Link to comment Share on other sites More sharing options...
ercio Posted September 29, 2016 Report Share Posted September 29, 2016 (edited) www.capeairvirtual.com Average Landing Warning: Invalid argument supplied for foreach() in /home/ercio/capeairvirtual.com/core/common/TouchdownStatsData.class.php on line 90 how to change the main picture , and google maps not working Edited September 30, 2016 by ercio Quote Link to comment Share on other sites More sharing options...
flyalaska Posted September 30, 2016 Author Report Share Posted September 30, 2016 (edited) You need google map API to show the map. The error should fix itself when a flight is completed with an landing rate You will also need the data class for it to work. Didn't have it in your skins version. To change the image, change the url of the header image in the css file. You need this in your core/common/TouchdownStatsData.clas public static function get_stats_by_cur_month($howmany) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND MONTH(submitdate)=MONTH(now()) AND YEAR(submitdate)=YEAR(now()) ORDER BY landingrate DESC LIMIT $howmany"; return DB::get_results($query); } Edited September 30, 2016 by flyalaska Quote Link to comment Share on other sites More sharing options...
DesComm Posted October 1, 2016 Report Share Posted October 1, 2016 (edited) Same error as Omar, currently running - no login is shown, missing header.php and footer.php - Sly Blue is OK! Notice: The template file "....../httpdocs//lib/skins/blueIce_skin/header.php" doesn't exist in ........./httpdocs/core/classes/TemplateSet.class.php on line 231 <p> Edited October 1, 2016 by DesComm Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 1, 2016 Author Report Share Posted October 1, 2016 Same error as Omar, currently running - no login is shown, missing header.php and footer.php - Sly Blue is OK! Notice: The template file "....../httpdocs//lib/skins/blueIce_skin/header.php" doesn't exist in ........./httpdocs/core/classes/TemplateSet.class.php on line 231 <p> Im at work right now. I will chat with you on skype tonight. Quote Link to comment Share on other sites More sharing options...
ercio Posted October 5, 2016 Report Share Posted October 5, 2016 for some reason the main picture wont change at all Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 5, 2016 Author Report Share Posted October 5, 2016 Whats your URL? Quote Link to comment Share on other sites More sharing options...
ercio Posted October 5, 2016 Report Share Posted October 5, 2016 www.capeairvirtual.com I try to change the path also or may be I a on the wrong spot . can you post the right location to change it Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 5, 2016 Author Report Share Posted October 5, 2016 I see the default header has changed on my end, Clear your browsers cache. Quote Link to comment Share on other sites More sharing options...
ercio Posted October 5, 2016 Report Share Posted October 5, 2016 almost perfect !!! one more thing what is the size of the main pic? thanks flyalaska Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 5, 2016 Author Report Share Posted October 5, 2016 almost perfect !!! one more thing what is the size of the main pic? thanks flyalaska 1194x400 Quote Link to comment Share on other sites More sharing options...
lapw123 Posted October 22, 2016 Report Share Posted October 22, 2016 hey flyalaska i have this error on line 90 i tried to add the line you talk about where are im supose to add it which line Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 22, 2016 Author Report Share Posted October 22, 2016 hey flyalaska i have this error on line 90 i tried to add the line you talk about where are im supose to add it which line You didn't post the error? Quote Link to comment Share on other sites More sharing options...
lapw123 Posted October 24, 2016 Report Share Posted October 24, 2016 (edited) here is the failure i hope you could help me Samuel Nygga's Statistics Name Samuel Nygga Hours 0.00 Pilot ID FSN0001 Flights 0 Hub KJFK Distance Flown Fatal error: Call to undefined method StatsData::TotalPilotMiles() inD:\xmapp\xampp\htdocs\lib\skins\blueIce\profile_main.phpon line 57 Edited October 24, 2016 by lapw123 Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 24, 2016 Author Report Share Posted October 24, 2016 Open your core/common/StatsData.class.php file and before the last closing bracket (}) add this: 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; } Quote Link to comment Share on other sites More sharing options...
lapw123 Posted October 24, 2016 Report Share Posted October 24, 2016 (edited) thanks alot just a last thing how can i use aircharts to get charts insted of airnav since my va is not based in us Edited October 24, 2016 by lapw123 Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted October 25, 2016 Report Share Posted October 25, 2016 (edited) Hey chief, love this template. One thing, I am integrating a forum in to match my site as close to 100% as I can. The blue bars that I thought were images are not (the ones with the top yellow borders). Can you point me in the right spot css wise to figure out how to use that on my forum? In the mean time I am going to keep digging. I love to help my self when I can and hate asking. Take care man and thanks for the share. Great job on a awesome template. Ray **EDIT** Well by gumpus it is an image. Nicely done! Edited October 25, 2016 by TAV1702 Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 25, 2016 Author Report Share Posted October 25, 2016 thanks alot just a last thing how can i use aircharts to get charts insted of airnav since my va is not based in us No idea thats a pre set for phpVMS Hey chief, love this template. One thing, I am integrating a forum in to match my site as close to 100% as I can. The blue bars that I thought were images are not (the ones with the top yellow borders). Can you point me in the right spot css wise to figure out how to use that on my forum? In the mean time I am going to keep digging. I love to help my self when I can and hate asking. Take care man and thanks for the share. Great job on a awesome template. Ray **EDIT** Well by gumpus it is an image. Nicely done! You referring to the headings? Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted October 28, 2016 Report Share Posted October 28, 2016 No idea thats a pre set for phpVMS You referring to the headings? Yeah. That was it. I got it figured out shortly after I posted. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted October 28, 2016 Report Share Posted October 28, 2016 On a side note, looking at this screenshot, is the footer broken or is it because I have no PIREPS on record yet? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.