Jump to content
flyalaska

blueIce

Recommended Posts

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

You can view the live demo here.

User: BIA004

Password: 112211

This template is for phpVMS php versions only! (5.5.x)

Download Here!

main_1LG.jpg

main_2LG.jpg

main_3LG.jpg

main_4LG.jpg

main_5LG.jpg

main_6LG.jpg

Very detailed instructions is included in the download zip.

Edited by flyalaska
  • Like 2

Share this post


Link to post
Share on other sites

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 by YusufBudi

Share this post


Link to post
Share on other sites

Remove the code from both profiles of the total miles code

<?php echo StatsData::TotalPilotMiles($pilot->pilotid); ?>

replace it with -- for now.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 by ercio

Share this post


Link to post
Share on other sites

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 by ercio

Share this post


Link to post
Share on other sites

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 by flyalaska

Share this post


Link to post
Share on other sites

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 by DesComm

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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 by lapw123

Share this post


Link to post
Share on other sites

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;
}

Share this post


Link to post
Share on other sites

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 :P

post-47969-0-72096600-1477341920_thumb.png

Edited by lapw123

Share this post


Link to post
Share on other sites

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 by TAV1702

Share this post


Link to post
Share on other sites

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 :P

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

On a side note, looking at this screenshot, is the footer broken or is it because I have no PIREPS on record yet?

post-308-0-40518200-1477678266_thumb.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×