# \[Free\] ElaSkin 2018 - Designed for phpVMS

**URL:** <https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575>\
**Category:** Skinning - Legacy phpVMS (v2/v5)\
**Created:** [May 31, 2018, 11:33pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575 "2018-05-31T23:33:36Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![EasternVirtualAirlin](https://forum.phpvms.net/user_avatar/forum.phpvms.net/easternvirtualairlin/32/1266_2.png) [@EasternVirtualAirlin](https://forum.phpvms.net/u/EasternVirtualAirlin)\
**Post date:** [June 21, 2018, 9:28pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/21 "2018-06-21T21:28:05Z")

</div>

> 1 hour ago, CarlosEduardo2409 said:
> 
> Can you pass me your entire code from StatsData.class.php?

This is it,&nbsp;[https://pastebin.com/BDwdyi4c](https://pastebin.com/BDwdyi4c)

---

<div class="post-metadata">

**Author:** ![CarlosEduardo2409](https://forum.phpvms.net/user_avatar/forum.phpvms.net/carloseduardo2409/32/1193_2.png) [@CarlosEduardo2409](https://forum.phpvms.net/u/CarlosEduardo2409)\
**Post date:** [June 21, 2018, 9:43pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/22 "2018-06-21T21:43:19Z")

</div>

> 14 minutes ago, BuckkEntertainment said:
> 
> This is it,&nbsp;[https://pastebin.com/BDwdyi4c](https://pastebin.com/BDwdyi4c)

Ok, try to use this:&nbsp;[https://pastebin.com/rKKceD9j](https://pastebin.com/rKKceD9j)

---

<div class="post-metadata">

**Author:** ![EasternVirtualAirlin](https://forum.phpvms.net/user_avatar/forum.phpvms.net/easternvirtualairlin/32/1266_2.png) [@EasternVirtualAirlin](https://forum.phpvms.net/u/EasternVirtualAirlin)\
**Post date:** [June 21, 2018, 10:23pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/23 "2018-06-21T22:23:21Z")

</div>

> 39 minutes ago, CarlosEduardo2409 said:
> 
> Ok, try to use this:&nbsp;[https://pastebin.com/rKKceD9j](https://pastebin.com/rKKceD9j)

That worked! Thank you.

---

<div class="post-metadata">

**Author:** ![smokey68](https://forum.phpvms.net/user_avatar/forum.phpvms.net/smokey68/32/799_2.png) [@smokey68](https://forum.phpvms.net/u/smokey68)\
**Post date:** [June 26, 2018, 2:26am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/24 "2018-06-26T02:26:57Z")

</div>

I am the owner of [php-skins.com](http://php-skins.com) and taking someones work and turning into freeware is illegal

---

<div class="post-metadata">

**Author:** ![CarlosEduardo2409](https://forum.phpvms.net/user_avatar/forum.phpvms.net/carloseduardo2409/32/1193_2.png) [@CarlosEduardo2409](https://forum.phpvms.net/u/CarlosEduardo2409)\
**Post date:** [June 26, 2018, 1:11pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/25 "2018-06-26T13:11:46Z")

</div>

> 10 hours ago, vbegin7 said:
> 
> I am﻿﻿ the owner of [php-skins.com](http://php-skins.com) and taking someones work﻿﻿ and turning﻿ into freeware is illegal

Hello ,&nbsp;it’s nice to meet you, but as I said, Elaskin did not have anything paid.

---

<div class="post-metadata">

**Author:** ![smokey68](https://forum.phpvms.net/user_avatar/forum.phpvms.net/smokey68/32/799_2.png) [@smokey68](https://forum.phpvms.net/u/smokey68)\
**Post date:** [June 27, 2018, 2:03am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/26 "2018-06-27T02:03:13Z")

</div>

> 12 hours ago, CarlosEduardo2409 said:
> 
> Hello ,&nbsp;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

---

<div class="post-metadata">

**Author:** ![CarlosEduardo2409](https://forum.phpvms.net/user_avatar/forum.phpvms.net/carloseduardo2409/32/1193_2.png) [@CarlosEduardo2409](https://forum.phpvms.net/u/CarlosEduardo2409)\
**Post date:** [June 27, 2018, 10:03am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/27 "2018-06-27T10:03:14Z")

</div>

> 7 hours ago, vbegin7 said:
> 
> me and @shakamonkey88 already figured that out sorry﻿﻿﻿﻿﻿,
> 
> Thanks

All right, no problem, I know these things are accurate.

&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![RaajPatel](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/r/85e7bf/32.png) [@RaajPatel](https://forum.phpvms.net/u/RaajPatel)\
**Post date:** [June 29, 2018, 2:35am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/28 "2018-06-29T02:35:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![CarlosEduardo2409](https://forum.phpvms.net/user_avatar/forum.phpvms.net/carloseduardo2409/32/1193_2.png) [@CarlosEduardo2409](https://forum.phpvms.net/u/CarlosEduardo2409)\
**Post date:** [June 29, 2018, 12:55pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/29 "2018-06-29T12:55:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Boogace](https://forum.phpvms.net/user_avatar/forum.phpvms.net/boogace/32/519_2.png) [@Boogace](https://forum.phpvms.net/u/Boogace)\
**Post date:** [July 3, 2018, 9:54am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/30 "2018-07-03T09:54:17Z")

</div>

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

&nbsp;

Wazza

---

<div class="post-metadata">

**Author:** ![Relja12](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/r/ea5d25/32.png) [@Relja12](https://forum.phpvms.net/u/Relja12)\
**Post date:** [July 18, 2018, 10:27pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/31 "2018-07-18T22:27:26Z")

</div>

Hey,

Is there tpl version?

---

<div class="post-metadata">

**Author:** ![shakamonkey88](https://forum.phpvms.net/user_avatar/forum.phpvms.net/shakamonkey88/32/969_2.png) [@shakamonkey88](https://forum.phpvms.net/u/shakamonkey88)\
**Post date:** [July 19, 2018, 6:39am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/32 "2018-07-19T06:39:15Z")

</div>

> 8 hours ago, Relja12 said:
> 
> Hey,
> 
> Is there tpl version?

You don’t need a tpl version - it is built for phpVMS 5.5x

---

<div class="post-metadata">

**Author:** ![HONGKONGAIRLINESVIRT](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/h/7feea3/32.png) [@HONGKONGAIRLINESVIRT](https://forum.phpvms.net/u/HONGKONGAIRLINESVIRT)\
**Post date:** [September 16, 2018, 12:48pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/33 "2018-09-16T12:48:19Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![HONGKONGAIRLINESVIRT](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/h/7feea3/32.png) [@HONGKONGAIRLINESVIRT](https://forum.phpvms.net/u/HONGKONGAIRLINESVIRT)\
**Post date:** [September 17, 2018, 10:54am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/34 "2018-09-17T10:54:25Z")

</div>

I see a loading sign in the middle after changed to ela skin.

---

<div class="post-metadata">

**Author:** ![Qshad](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/q/48db29/32.png) [@Qshad](https://forum.phpvms.net/u/Qshad)\
**Post date:** [January 15, 2020, 9:20pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/35 "2020-01-15T21:20:46Z")

</div>

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

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![CarlosEduardo2409](https://forum.phpvms.net/user_avatar/forum.phpvms.net/carloseduardo2409/32/1193_2.png) [@CarlosEduardo2409](https://forum.phpvms.net/u/CarlosEduardo2409)\
**Post date:** [January 15, 2020, 9:55pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/36 "2020-01-15T21:55:25Z")

</div>

> 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
> 
> &nbsp;

Hello !

You will need to add TotalPilotMiles to the StatsData.class.php file.&nbsp;For this you must do:

1. Go to core/common/StatsData.class.php

2.&nbsp;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; }

```

&nbsp;

Like this:&nbsp;[https://prnt.sc/qo9ari](https://prnt.sc/qo9ari)

&nbsp;

I hope it helped you!

---

<div class="post-metadata">

**Author:** ![SmarticleCo](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/s/b782af/32.png) [@SmarticleCo](https://forum.phpvms.net/u/SmarticleCo)\
**Post date:** [January 16, 2020, 10:17am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/37 "2020-01-16T10:17:06Z")

</div>

demo isnt working.

---

<div class="post-metadata">

**Author:** ![Qshad](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/q/48db29/32.png) [@Qshad](https://forum.phpvms.net/u/Qshad)\
**Post date:** [January 16, 2020, 12:53pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/38 "2020-01-16T12:53:14Z")

</div>

> 14 hours ago, CarlosEduardo2409 said:
> 
> Hello !
> 
> You will need to add TotalPilotMiles to the StatsData.class.php file.&nbsp;For this you must do:
> 
> 1. Go to core/common/StatsData.class.php
> 
> 2.&nbsp;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; }
> 
> &nbsp;
> 
> Like this:&nbsp;[https://prnt.sc/qo9ari](https://prnt.sc/qo9ari)
> 
> &nbsp;
> 
> I hope it helped you!

Hey! Yes you helped me!

But unfortunately&nbsp;partly.

There is only a loading screen. Nothing is loading. Infinite Loading Screen.

---

<div class="post-metadata">

**Author:** ![CarlosEduardo2409](https://forum.phpvms.net/user_avatar/forum.phpvms.net/carloseduardo2409/32/1193_2.png) [@CarlosEduardo2409](https://forum.phpvms.net/u/CarlosEduardo2409)\
**Post date:** [January 16, 2020, 5:07pm UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/39 "2020-01-16T17:07:10Z")

</div>

> 4 hours ago, Qshad said:
> 
> Hey! Yes you helped me!
> 
> But unfortunately&nbsp;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&nbsp;any errors.

&nbsp;

I am knowing about the demo site, I will see if I can host a new site somewhere.

---

<div class="post-metadata">

**Author:** ![Tummi](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/t/9f8e36/32.png) [@Tummi](https://forum.phpvms.net/u/Tummi)\
**Post date:** [January 18, 2020, 9:23am UTC](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575/40 "2020-01-18T09:23:31Z")

</div>

> On 6/11/2018 at 6:19 PM, CarlosEduardo2409 said:
> 
> Hi ,
> 
> &nbsp;
> 
> 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) { &nbsp; &nbsp; &nbsp; &nbsp; $key = ‘total\_miles’; &nbsp; &nbsp; &nbsp; &nbsp; $key .= ‘\_’.$pilotid; &nbsp; &nbsp; &nbsp; &nbsp; $total = CodonCache::read($key); &nbsp; &nbsp; &nbsp; &nbsp; if($total === false) &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $total = 0; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sql = "SELECT \* FROM ".TABLE\_PREFIX.“pireps WHERE pilotid=‘$pilotid’ AND accepted=1”; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $results = DB::get\_results($sql); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if($results) { foreach($results as $result) { $total += $result-\>distance; } } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CodonCache::write($key, $total, ‘15minute’); &nbsp; &nbsp; &nbsp; &nbsp; } &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $total; &nbsp; &nbsp; }
> 
> &nbsp;
> 
> Sorry for not coding, nothing I’m finding the function.

tried that, but for me the page keeps the same 😞

[Previous page](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575.md?page=1)

[Next page](https://forum.phpvms.net/t/free-elaskin-2018-designed-for-phpvms/12575.md?page=3)
