# Can I Have A Clean Code Of The Pilot Roster With No Hubs

**URL:** <https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321>\
**Category:** Code Snippets\
**Created:** [March 20, 2011, 3:21am UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321 "2011-03-20T03:21:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![deactivated](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/d/50afbb/32.png) [@deactivated](https://forum.phpvms.net/u/deactivated)\
**Post date:** [March 20, 2011, 3:21am UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/1 "2011-03-20T03:21:23Z")

</div>

-

---

<div class="post-metadata">

**Author:** ![James142](https://forum.phpvms.net/user_avatar/forum.phpvms.net/james142/32/92_2.png) [@James142](https://forum.phpvms.net/u/James142)\
**Post date:** [March 20, 2011, 11:36am UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/2 "2011-03-20T11:36:31Z")

</div>

> Can I Have A Clean Code Of The Pilot Roster With No Hubs
> 
> Thanks
> 
> Dimtiri

This is what I have:

core\>modules\>Pilots\>pilots.php

```
<?php
/**
* phpVMS - Virtual Airline Administration Software
* Copyright (c) 2008 Nabeel Shahzad
* For more information, visit www.phpvms.net
*	Forums: http://www.phpvms.net/forum
*	Documentation: http://www.phpvms.net/docs
*
* phpVMS is licenced under the following license:
* Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
* View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/
*
* @author Nabeel Shahzad
* @copyright Copyright (c) 2008, Nabeel Shahzad
* @link http://www.phpvms.net
* @license http://creativecommons.org/licenses/by-nc-sa/3.0/
*/

class Pilots extends CodonModule
{

public function index()
{
            $this->set('allpilots', PilotData::getAllPilots());
      $this->render('pilots_list.tpl');
        }

public function reports($pilotid='')
{
	if($pilotid == '')
	{
		$this->set('message', 'No pilot specified!');
		$this->render('core_error.tpl');
		return;
	}

	$this->set('pireps', PIREPData::GetAllReportsForPilot($pilotid));
	$this->render('pireps_viewall.tpl');
}

/* Stats stuff for charts */

public function statsdaysdata($pilotid)
{
	$data = PIREPData::getIntervalDataByDays(array('p.pilotid'=>$pilotid), 30);
	$this->create_line_graph('Past 30 days PIREPs', $data);
}

public function statsmonthsdata($pilotid)
{
	$data = PIREPData::getIntervalDataByMonth(array('p.pilotid'=>$pilotid), 3);
	$this->create_line_graph('Monthly Flight Stats', $data);
}

public function statsaircraftdata($pilotid)
{
	$data = StatsData::PilotAircraftFlownCounts($pilotid);
	if(!$data) $data = array();

	include CORE_LIB_PATH.'/php-ofc-library/open-flash-chart.php';

	$d = array();
	foreach($data as $ac)
	{
		OFCharts::add_data_set($ac->aircraft, floatval($ac->hours));
	}

	echo OFCharts::create_pie_graph('Aircraft Flown');
}

protected function create_line_graph($title, $data)
{	
	if(!$data)
	{
		$data = array();
	}

	$bar_values = array();
	$bar_titles = array();
	foreach($data as $val)
	{

		$bar_titles[] = $val->ym;
		$bar_values[] = floatval($val->total);
	}

	OFCharts::add_data_set($bar_titles, $bar_values);
	echo OFCharts::create_area_graph($title);
}

public function RecentFrontPage($count = 5)
{
	$this->set('pilots', PilotData::GetLatestPilots($count));
	$this->render('frontpage_recentpilots.tpl');
}
}

```

That will get rid of the hubs.

---

<div class="post-metadata">

**Author:** ![deactivated](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/d/50afbb/32.png) [@deactivated](https://forum.phpvms.net/u/deactivated)\
**Post date:** [March 20, 2011, 2:48pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/3 "2011-03-20T14:48:18Z")

</div>

Thank You Very Much

---

<div class="post-metadata">

**Author:** ![TAV1702](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tav1702/32/41_2.png) [@TAV1702](https://forum.phpvms.net/u/TAV1702)\
**Post date:** [March 21, 2011, 3:01pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/4 "2011-03-21T15:01:15Z")

</div>

That actually worked out real nice. Thanks for the share. +1

Hey West Jet, can you give him a +1 for sharing please?

---

<div class="post-metadata">

**Author:** ![James142](https://forum.phpvms.net/user_avatar/forum.phpvms.net/james142/32/92_2.png) [@James142](https://forum.phpvms.net/u/James142)\
**Post date:** [March 21, 2011, 5:12pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/5 "2011-03-21T17:12:47Z")

</div>

> That actually worked out real nice. Thanks for the share. +1
> 
> Hey West Jet, can you give him a +1 for sharing please?

thanks

---

<div class="post-metadata">

**Author:** ![TAV1702](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tav1702/32/41_2.png) [@TAV1702](https://forum.phpvms.net/u/TAV1702)\
**Post date:** [March 21, 2011, 5:27pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/6 "2011-03-21T17:27:18Z")

</div>

> thanks

Not a problem. Thank you. I was meaing to do that for a while but never did until I saw this post.

---

<div class="post-metadata">

**Author:** ![Mark\_J](https://forum.phpvms.net/user_avatar/forum.phpvms.net/mark_j/32/130_2.png) [@Mark\_J](https://forum.phpvms.net/u/Mark_J)\
**Post date:** [June 20, 2011, 8:21pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/7 "2011-06-20T20:21:04Z")

</div>

well.. it worked for me on another site but now im getting the error:

> Notice: The template file “/home/ualvirtu/public\_html//core/templates/Pilots\_list.tpl” doesn’t exist in /home/ualvirtu/public\_html/core/classes/TemplateSet.class.php on line 248

---

<div class="post-metadata">

**Author:** ![James142](https://forum.phpvms.net/user_avatar/forum.phpvms.net/james142/32/92_2.png) [@James142](https://forum.phpvms.net/u/James142)\
**Post date:** [June 20, 2011, 8:37pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/8 "2011-06-20T20:37:29Z")

</div>

> well.. it worked for me on another site but now im getting the error:

Do you have the file Pilots\_list.tpl in your core/templates file? That error code is telling you that it can’t find the Pilots\_list.tpl file..

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 20, 2011, 9:04pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/9 "2011-06-20T21:04:04Z")

</div>

Download phpvms again, go to the core\>templates folder, find the pilots\_list.tpl file and upload it again, and that should fix that problem. If not run the checkinstall.php maybe something is corrupted.

---

<div class="post-metadata">

**Author:** ![bunoire14](https://forum.phpvms.net/user_avatar/forum.phpvms.net/bunoire14/32/50_2.png) [@bunoire14](https://forum.phpvms.net/u/bunoire14)\
**Post date:** [October 2, 2011, 12:38pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/10 "2011-10-02T12:38:00Z")

</div>

Hi Guys,

Just a quick addition to this thread, I was looking for something Similar, however as I am running a Military Sqn System using multiple Airlines, I wanted to List the Rosters for each Airline in Turn.

Heres what I changed in the Pilot.php index method to allow it.

```
// Get all of our Airlines/Squadrons, and list pilots by Airline or Sqn
	$allairlines = OperationsData::GetAllAirlines();

	if(!$allairlines) $allairlines = array();

	foreach($allairlines as $airline)
	{
		$this->set('title', $airline->name);
		$this->set('code', $airline->code);

		$this->set('allpilots', PilotData::findPilots(array('p.code'=>$airline->code)));

		$this->render('pilots_list.tpl');
	}

	$noairline = PilotData::findPilots(array('p.code'=>''));
	if(!$noairline)
	{
		return;
	}

	$this->set('title', 'Un-Assigned Pilots');
	$this->set('code', '');
	$this->set('allpilots', $noairline);
	$this->render('pilots_list.tpl');

```

Not sure if its good practice to modify the core classes really, I assume they would be overwritten on update? But its a quick fix for this.

Hopefully this is useful for those looking for a similar way of displaying rosters, Apologies if this has been posted previously.

All the best,

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [October 2, 2011, 2:57pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/11 "2011-10-02T14:57:14Z")

</div>

Nice Add! I agree it’s a good idea to have those if you are running a military operations!

---

<div class="post-metadata">

**Author:** ![StartVM](https://forum.phpvms.net/user_avatar/forum.phpvms.net/startvm/32/327_2.png) [@StartVM](https://forum.phpvms.net/u/StartVM)\
**Post date:** [June 17, 2014, 3:24pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/12 "2014-06-17T15:24:07Z")

</div>

I apologize for opening this old topic, but as I found it a very useful topic, I thought I would debug it. Fixed 2 errors, one with the pilots\_list.tpl being Pilots\_list.tpl thus rendering and error, and another with it screwing with the recent pilot function.

[http://pastebin.com/yFejJA7e](http://pastebin.com/yFejJA7e)

---

<div class="post-metadata">

**Author:** ![poole3003](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@poole3003](https://forum.phpvms.net/u/poole3003)\
**Post date:** [September 16, 2014, 9:52pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/13 "2014-09-16T21:52:15Z")

</div>

if i want to make it where i have all my pilots show up like in there airline and not by hub where would i insert the code and how would the code be something simular to

---

<div class="post-metadata">

**Author:** ![livr517](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/l/13edae/32.png) [@livr517](https://forum.phpvms.net/u/livr517)\
**Post date:** [August 10, 2017, 2:31am UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/14 "2017-08-10T02:31:53Z")

</div>

> On 3/20/2011 at 7:36 AM, James142 said:
> 
> This is what I have:
> 
> core\>modules\>Pilots\>pilots.php
> 
> &nbsp;
> 
> \<?php /\*\* \* phpVMS - Virtual Airline Administration Software \* Copyright (c) 2008 Nabeel Shahzad \* For more information, visit www.phpvms.net \* Forums: http://www.phpvms.net/forum \* Documentation: http://www.phpvms.net/docs \* \* phpVMS is licenced under the following license: \* Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) \* View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ \* \* @author Nabeel Shahzad \* @copyright Copyright (c) 2008, Nabeel Shahzad \* @link http://www.phpvms.net \* @license http://creativecommons.org/licenses/by-nc-sa/3.0/ \*/ class Pilots extends CodonModule { public function index() { $this-\>set('allpilots', PilotData::getAllPilots()); $this-\>render('pilots\_list.tpl'); } public function reports($pilotid='') { if($pilotid == '') { $this-\>set('message', 'No pilot specified!'); $this-\>render('core\_error.tpl'); return; } $this-\>set('pireps', PIREPData::GetAllReportsForPilot($pilotid)); $this-\>render('pireps\_viewall.tpl'); } /\* Stats stuff for charts \*/ public function statsdaysdata($pilotid) { $data = PIREPData::getIntervalDataByDays(array('p.pilotid'=\>$pilotid), 30); $this-\>create\_line\_graph('Past 30 days PIREPs', $data); } public function statsmonthsdata($pilotid) { $data = PIREPData::getIntervalDataByMonth(array('p.pilotid'=\>$pilotid), 3); $this-\>create\_line\_graph('Monthly Flight Stats', $data); } public function statsaircraftdata($pilotid) { $data = StatsData::PilotAircraftFlownCounts($pilotid); if(!$data) $data = array(); include CORE\_LIB\_PATH.'/php-ofc-library/open-flash-chart.php'; $d = array(); foreach($data as $ac) { OFCharts::add\_data\_set($ac-\>aircraft, floatval($ac-\>hours)); } echo OFCharts::create\_pie\_graph('Aircraft Flown'); } protected function create\_line\_graph($title, $data) { if(!$data) { $data = array(); } $bar\_values = array(); $bar\_titles = array(); foreach($data as $val) { $bar\_titles[] = $val-\>ym; $bar\_values[] = floatval($val-\>total); } OFCharts::add\_data\_set($bar\_titles, $bar\_values); echo OFCharts::create\_area\_graph($title); } public function RecentFrontPage($count = 5) { $this-\>set('pilots', PilotData::GetLatestPilots($count)); $this-\>render('frontpage\_recentpilots.tpl'); } } &nbsp; &nbsp; That will get rid of the hubs.

&nbsp;

Im&nbsp;having a bit of a problem. Screenshot:&nbsp;[http://prntscr.com/g6m58b](http://prntscr.com/g6m58b)

&nbsp;

Im&nbsp;using PHP version of crewcenter. I’ve removed all the .tpl’s from use. I changed the .tpl&nbsp;sections of the code to .php. See copy below. Can someone please assist me?

==========================================================================================================================================

\<?php  
/\*\*  
\* phpVMS - Virtual Airline Administration Software  
\* Copyright (c) 2008 Nabeel Shahzad  
\* For more information, visit [www.phpvms.net](http://www.phpvms.net)  
\*&nbsp;&nbsp; &nbsp;Forums: [http://www.phpvms.net/forum](http://www.phpvms.net/forum)  
\*&nbsp;&nbsp; &nbsp;Documentation: [http://www.phpvms.net/docs](http://www.phpvms.net/docs)  
\*  
\* phpVMS is licenced under the following license:  
\* &nbsp; Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)  
\* &nbsp; View license.txt in the root, or visit [http://creativecommons.org/licenses/by-nc-sa/3.0/](http://creativecommons.org/licenses/by-nc-sa/3.0/)  
\*  
\* @author Nabeel Shahzad  
\* @copyright Copyright (c) 2008, Nabeel Shahzad  
\* @link [http://www.phpvms.net](http://www.phpvms.net)  
\* @license [http://creativecommons.org/licenses/by-nc-sa/3.0/](http://creativecommons.org/licenses/by-nc-sa/3.0/)  
\*/

class Pilots extends CodonModule  
{

public function index()  
{  
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-\>set(‘allpilots’, PilotData::getAllPilots());  
&nbsp; &nbsp; &nbsp; $this-\>render(‘pilots\_list.php’);  
&nbsp; &nbsp; &nbsp; &nbsp; }

public function reports($pilotid=‘’)  
{  
&nbsp;&nbsp; &nbsp;if($pilotid == ‘’)  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$this-\>set(‘message’, ‘No pilot specified!’);  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$this-\>render(‘core\_error.php’);  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;return;  
&nbsp;&nbsp; &nbsp;}

&nbsp;&nbsp; &nbsp;$this-\>set(‘pireps’, PIREPData::GetAllReportsForPilot($pilotid));  
&nbsp;&nbsp; &nbsp;$this-\>render(‘pireps\_viewall.php’);  
}

/\* Stats stuff for charts \*/

public function statsdaysdata($pilotid)  
{  
&nbsp;&nbsp; &nbsp;$data = PIREPData::getIntervalDataByDays(array(‘p.pilotid’=\>$pilotid), 30);  
&nbsp;&nbsp; &nbsp;$this-\>create\_line\_graph(‘Past 30 days PIREPs’, $data);  
}

public function statsmonthsdata($pilotid)  
{  
&nbsp;&nbsp; &nbsp;$data = PIREPData::getIntervalDataByMonth(array(‘p.pilotid’=\>$pilotid), 3);  
&nbsp;&nbsp; &nbsp;$this-\>create\_line\_graph(‘Monthly Flight Stats’, $data);  
}

public function statsaircraftdata($pilotid)  
{  
&nbsp;&nbsp; &nbsp;$data = StatsData::PilotAircraftFlownCounts($pilotid);  
&nbsp;&nbsp; &nbsp;if(!$data) $data = array();

&nbsp;&nbsp; &nbsp;include CORE\_LIB\_PATH.‘/php-ofc-library/open-flash-chart.php’;

&nbsp;&nbsp; &nbsp;$d = array();  
&nbsp;&nbsp; &nbsp;foreach($data as $ac)  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;OFCharts::add\_data\_set($ac-\>aircraft, floatval($ac-\>hours));  
&nbsp;&nbsp; &nbsp;}

&nbsp;&nbsp; &nbsp;echo OFCharts::create\_pie\_graph(‘Aircraft Flown’);  
}

protected function create\_line\_graph($title, $data)  
{&nbsp;&nbsp; &nbsp;  
&nbsp;&nbsp; &nbsp;if(!$data)  
&nbsp;&nbsp; &nbsp;{  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$data = array();  
&nbsp;&nbsp; &nbsp;}

&nbsp;&nbsp; &nbsp;$bar\_values = array();  
&nbsp;&nbsp; &nbsp;$bar\_titles = array();  
&nbsp;&nbsp; &nbsp;foreach($data as $val)  
&nbsp;&nbsp; &nbsp;{

&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$bar\_titles = $val-\>ym;  
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;$bar\_values = floatval($val-\>total);  
&nbsp;&nbsp; &nbsp;}

&nbsp;&nbsp; &nbsp;OFCharts::add\_data\_set($bar\_titles, $bar\_values);  
&nbsp;&nbsp; &nbsp;echo OFCharts::create\_area\_graph($title);  
}

public function RecentFrontPage($count = 5)  
{  
&nbsp;&nbsp; &nbsp;$this-\>set(‘pilots’, PilotData::GetLatestPilots($count));  
&nbsp;&nbsp; &nbsp;$this-\>render(‘frontpage\_recentpilots.php’);  
}  
}

---

<div class="post-metadata">

**Author:** ![web541](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/w/59ef9b/32.png) [@web541](https://forum.phpvms.net/u/web541)\
**Post date:** [August 11, 2017, 7:02am UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/15 "2017-08-11T07:02:52Z")

</div>

Try this

```
\<?php /\*\* \* phpVMS - Virtual Airline Administration Software \* Copyright (c) 2008 Nabeel Shahzad \* For more information, visit www.phpvms.net \* Forums: http://www.phpvms.net/forum \* Documentation: http://www.phpvms.net/docs \* \* phpVMS is licenced under the following license: \* Creative Commons Attribution Non-commercial Share Alike (by-nc-sa) \* View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/ \* \* @author Nabeel Shahzad \* @copyright Copyright (c) 2008, Nabeel Shahzad \* @link http://www.phpvms.net \* @license http://creativecommons.org/licenses/by-nc-sa/3.0/ \*/ class Pilots extends CodonModule { public function index() { $this-\>set('allpilots', PilotData::getAllPilots()); $this-\>set('pilot\_list', PilotData::getAllPilots()); $this-\>render('pilots\_list.php'); } public function reports($pilotid='') { if($pilotid == '') { $this-\>set('message', 'No pilot specified!'); $this-\>render('core\_error.php'); return; } $this-\>set('pireps', PIREPData::GetAllReportsForPilot($pilotid)); $this-\>render('pireps\_viewall.php'); } /\* Stats stuff for charts \*/ public function statsdaysdata($pilotid) { $data = PIREPData::getIntervalDataByDays(array('p.pilotid'=\>$pilotid), 30); $this-\>create\_line\_graph('Past 30 days PIREPs', $data); } public function statsmonthsdata($pilotid) { $data = PIREPData::getIntervalDataByMonth(array('p.pilotid'=\>$pilotid), 3); $this-\>create\_line\_graph('Monthly Flight Stats', $data); } public function statsaircraftdata($pilotid) { $data = StatsData::PilotAircraftFlownCounts($pilotid); if(!$data) $data = array(); include CORE\_LIB\_PATH.'/php-ofc-library/open-flash-chart.php'; $d = array(); foreach($data as $ac) { OFCharts::add\_data\_set($ac-\>aircraft, floatval($ac-\>hours)); } echo OFCharts::create\_pie\_graph('Aircraft Flown'); } protected function create\_line\_graph($title, $data) { if(!$data) { $data = array(); } $bar\_values = array(); $bar\_titles = array(); foreach($data as $val) { $bar\_titles[] = $val-\>ym; $bar\_values[] = floatval($val-\>total); } OFCharts::add\_data\_set($bar\_titles, $bar\_values); echo OFCharts::create\_area\_graph($title); } public function RecentFrontPage($count = 5) { $this-\>set('pilots', PilotData::GetLatestPilots($count)); $this-\>render('frontpage\_recentpilots.php'); } }

```

Make sure the templates you are using match up with [this repo](https://github.com/swan58/CrewCenter/tree/master/php_templates)

---

<div class="post-metadata">

**Author:** ![livr517](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/l/13edae/32.png) [@livr517](https://forum.phpvms.net/u/livr517)\
**Post date:** [August 11, 2017, 4:41pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/16 "2017-08-11T16:41:41Z")

</div>

That’s&nbsp;perfect. thank you

&nbsp;

---

<div class="post-metadata">

**Author:** ![AidasP](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@AidasP](https://forum.phpvms.net/u/AidasP)\
**Post date:** [December 18, 2017, 3:50pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/17 "2017-12-18T15:50:26Z")

</div>

Does not work at all

completely no changes made

&nbsp;

---

<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:** [December 18, 2017, 4:07pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/18 "2017-12-18T16:07:34Z")

</div>

> 16 minutes ago, AidasP said:
> 
> Does not work at all
> 
> completely no changes made
> 
> &nbsp;

It does work - you’re doing something wrong.

Where are you uploading this to?

---

<div class="post-metadata">

**Author:** ![RedKingOne](https://forum.phpvms.net/user_avatar/forum.phpvms.net/redkingone/32/1247_2.png) [@RedKingOne](https://forum.phpvms.net/u/RedKingOne)\
**Post date:** [December 18, 2017, 4:12pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/19 "2017-12-18T16:12:41Z")

</div>

> 20 minutes ago, AidasP said:
> 
> Does not work at all
> 
> completely no changes made
> 
> &nbsp;

Note that the coding above works using phpvms 5.5 and runing php version 5.6 on my server. That’s my config at least.

&nbsp;

Also r you using the .tpl or .php version of the crewcenter. That will change the formatting as shown above.

---

<div class="post-metadata">

**Author:** ![AidasP](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/a/ecc23a/32.png) [@AidasP](https://forum.phpvms.net/u/AidasP)\
**Post date:** [December 18, 2017, 6:03pm UTC](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321/20 "2017-12-18T18:03:34Z")

</div>

> 1 hour ago, Shadesb181 said:
> 
> Note that the coding above works using phpvms 5.5 and runing php version 5.6 on my server. That’s my config at least.
> 
> &nbsp;
> 
> Also r you using the .tpl or .php version of the crewcenter. That will change the formatting as shown above.

wait…I am using default ‘Crew Center’, well at least the one i made with bootstrap, the thing is, that (yes my version is 5.5.x, of phpvms), that the Module Pilots, is acting like its not even existing there, i can delete everything, i can keep everything, i can edit stuff, it just ignores my changes, i am really annoyed with the hubs, just like sitting here trying to fix it for like 2h30min, so yeah..

[Next page](https://forum.phpvms.net/t/can-i-have-a-clean-code-of-the-pilot-roster-with-no-hubs/4321.md?page=2)
