Add option to hide pos modules from main page

Development information and discussion about EDK.
Post Reply
Depili
Greenhorn
Posts: 32
Joined: Wed May 05, 2010 11:16

Add option to hide pos modules from main page

Post by Depili » Sun Oct 23, 2011 01:41

As pos mod kills tend to come in the dozens at a time they can easily make up for the most of kills shown on the main page when multiple towers go down and thus having an option to hide them like noobships and pods would be nice.

I have hacked our kb to do so via editing the noobship ignore function to also ignore kills in the pos module category but a more official method that doesn't get broken with new releases would be really nice to have.

wyattwic
Active Author
Posts: 140
Joined: Wed Sep 01, 2010 08:21

Re: Add option to hide pos modules from main page

Post by wyattwic » Mon Dec 05, 2011 20:22

Although this would be a great idea, I think this would be better suited to go into a mod.

How you would do this, I have no idea.
NOTE: No longer in game!


A question that sometimes drives me hazy: am I or are the others crazy?
Logic will get you from A to B. Imagination will take you everywhere.

dafinga
Noob
Posts: 1
Joined: Sun Dec 07, 2008 09:01

Re: Add option to hide pos modules from main page

Post by dafinga » Tue Apr 15, 2014 15:46

Anychance that change went threw or any possible way to hide the pos mods from front page ?

User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: Add option to hide pos modules from main page

Post by Salvoxia » Fri Apr 18, 2014 14:43

Hi,

I'm afraid this change won't make it into 4.2.
But here's how you can hide pos modules from the front page:

open common/includes/class.killlist.php and find the following code block:

Code: Select all

public function setPodsNoobShips($flag)
	{
		if (!$flag)
		{
			array_push($this->exclude_scl_, 2);
			array_push($this->exclude_scl_, 3);
			array_push($this->exclude_scl_, 11);
AFTER that, append

Code: Select all

array_push($this->exclude_scl_, 38);

That will hide POS Modules from the front page if you have deactivated the option "Include Capsules, Shuttles and Noobships in kills" in ACP -> Global options.


Regards,
Salvoxia

Eek
Someday Author
Posts: 73
Joined: Fri Dec 17, 2010 00:20

Re: Add option to hide pos modules from main page

Post by Eek » Wed May 18, 2016 01:47

I've deployed this change as well on my KB and it works perfectly!

I've also blocked a few other classes from view, like Fighters (49), Infrastructure Modules (41), Custom Office (44) and Deployable Structure (45).. Imho these don't really belong on a killboard.

Post Reply

Return to “EDK Development Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest