Jump to content

blueIce


flyalaska

Recommended Posts

  • 2 weeks later...

I bumped in to an issue and I thought it was my PC/browser. When trying to download something via the menu bar the page will act like it is getting ready to download the file then it starts blinking and basically gets stuck in a loop of some sorts.

I uninstalled my Ad blockers, shut off all popup blockers and all and yet I still had the same issue over and over no matter the browser. I had a buddy in Canada log on to my site and give it a try and low and behold, the same issue. No errors to report, just a download stuck in what appears to be a loop of some sorts. The page just refreshes and refreshes. Download links were checked and double checked and all was well.

Java error/issue?

Link to comment
Share on other sites

  • 2 months later...

Good Evening guys, wow what a skin its awesome, I have 2 bugs which i think it might be a database issue but not sure?, everything installed fine and I have followed the readme with the changes all ok, but when a new person selects Join today they get....

The module "JOIN" doesn't exist!

I Also have an issue when trying to add a schedule in its says saved but it doesnt show in either page or in the database ?

I have input Aircraft and Airports,  here is my phpmyadmin details  attached, please help as I love this livery..

 

Thanks in advance !!!

 

Wazza

 

phpadmin.png

Link to comment
Share on other sites

5 hours ago, Booagce said:

Good Evening guys, wow what a skin its awesome, I have 2 bugs which i think it might be a database issue but not sure?, everything installed fine and I have followed the readme with the changes all ok, but when a new person selects Join today they get....

The module "JOIN" doesn't exist!

I Also have an issue when trying to add a schedule in its says saved but it doesnt show in either page or in the database ?

I have input Aircraft and Airports,  here is my phpmyadmin details  attached, please help as I love this livery..

 

Thanks in advance !!!

 

Wazza

 

phpadmin.png

You need to install the join MODULE. Included in the zip. 

Link to comment
Share on other sites

1 hour ago, Booagce said:

there is no Join module in the zip i can find !!!

I do apologise I have found it in the zip and it is now working thank you  

flyalaska

but I still have an issue with adding Schedules.. as above !!!

 

That is not a template issue. I can try to help you. In core/local_config.php what do you have under

#Airport lookup
Link to comment
Share on other sites

  • 2 weeks later...

Hi Gus ive managed to sort out most of my issues but I cannot sort these two ,http://prntscr.com/e1t1wu  and  http://prntscr.com/e1t73q Rooute map somethings wrong, and I cannot get the map info to move to the left. I have done the API thing and searched through all the route maps I can find and add the API into but this is still not working can someone point me in the right direction please, many thanks

Wazza

Edited by Booagce
Link to comment
Share on other sites

I love you skin, but i get this error

<!--Begin Average Landing -->
  <center><button type="button" class="btn btn-landing">Average Landing <span class="badge"><span class="counter"><br />
  <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/www/airscandinavia-va.dk/core/common/TouchdownStatsData.class.php</b> on line <b>90</b><br />
  <br />
  <b>Warning</b>: Division by zero in <b>/home/www/airscandinavia-va.dk/core/common/TouchdownStatsData.class.php</b> on line <b>95</b><br />
  0</span></span></button></center>
  <!--End Average Landing -->

Screenshot_60.png

Link to comment
Share on other sites

19 hours ago, mmalling said:

Add the following code below to core/common/TouchdownStatsData.class

public static function airline_average() {
        $stats = self::get_all_stats();
        $total = 0;
        $count = 0;

        foreach ($stats as $stat)
            {
            $total = $total + $stat->landingrate;
            $count++;
        }
        $average = $total / $count;

        return $average;
    }
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

9 hours ago, flyalaska said:

Add the following code below to core/common/TouchdownStatsData.class


public static function airline_average() {
        $stats = self::get_all_stats();
        $total = 0;
        $count = 0;

        foreach ($stats as $stat)
            {
            $total = $total + $stat->landingrate;
            $count++;
        }
        $average = $total / $count;

        return $average;
    }
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);
         }

 

Done it, but it is still the same, is because there have not been any flights yet or should then say 0 

Link to comment
Share on other sites

  • 4 weeks later...

Add this before the last } in the core/common/StatsData.class.php file.

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

  • 1 month later...

First I would like to thank you for this wonderful Skin, It has been installed successfully on my Va but i have a some of issue .. ?! 

- i can't see any pilot flying or details on Live flight or Live map ?? ( I am using simpilot 5.5.2 Version ) And using Kacars ?!

 

Any help ?!

 

 

opll2.png

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...