Jump to content

blueIce


flyalaska

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

 

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
Link to comment
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
Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
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
Link to comment
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.

Link to comment
Share on other sites

  • 3 weeks later...

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
Link to comment
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;
}

Link to comment
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
Link to comment
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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...