[Source MOD] Full Related kills (WORKS ON 4.2.23)

Discuss/Upload mods to the EVE-Dev Killboard.
Post Reply
trix12345
Greenhorn
Posts: 16
Joined: Wed Oct 19, 2011 05:17

[Source MOD] Full Related kills (WORKS ON 4.2.23)

Post by trix12345 » Tue Jun 07, 2016 16:46

If you want to get a full related kills with your friends which are not inside of your corp, but want to see a corp table when you are on home page, just replace following inside of .../common/home.php on 157-161 strings:

Code: Select all

			//$kslist = new KillList();
				$summarytable = new KillSummaryTablePublic();
				$this->loadTime($summarytable);
				involved::load($summarytable, 'kill');
				//$summarytable = new KillSummaryTablePublic($kslist);
by

Code: Select all

				//$kslist = new KillList();
				//$summarytable = new KillSummaryTablePublic();
				//$this->loadTime($summarytable);
				//involved::load($summarytable, 'kill');
				$summarytable = new KillSummaryTable();
				$this->loadTime($summarytable);
				$summarytable->addInvolvedCorp('1');
				//$summarytable = new KillSummaryTablePublic($kslist);
WARNING! IT WILL REPLACE A PUBLIC MODE FUNCTIONALITY

Before:
1.png
1.png (406.73 KiB) Viewed 7893 times
After:
2.png
2.png (306.64 KiB) Viewed 7893 times
Of course, to enable it you need to enable a public mode in your configuration page. Do not forget to add your friends to the board owners, and replace a stats page link by link of your corp page

UPGRADE:
if you need to display only corp kill list you need to replace following in /home.php at 217+ strings:

Code: Select all

		// Select between kills, losses or both.
		if ($this->view == 'combined'
				|| ($this->view == '' && $this->showcombined)) {
		involved::load($klist, 'combined');
		} else if ($this->view == 'losses') {
		involved::load($klist, 'loss');
		} else {
		involved::load($klist, 'kill');
		}
by

Code: Select all

        if (config::get('public_summarytable')) {
			if ($this->view == 'combined'
				|| ($this->view == '' && $this->showcombined)) {
				$klist->addCombinedCorp('1');
			} else if ($this->view == 'losses') {
				$klist->addVictimCorp('1');
			} else {	
				$klist->addInvolvedCorp('1');
			}
        } else {
		    if ($this->view == 'combined'
				|| ($this->view == '' && $this->showcombined)) {
				involved::load($klist, 'combined');
			} else if ($this->view == 'losses') {
				involved::load($klist, 'loss');
			} else {
				involved::load($klist, 'kill');
			}
		}
P.S. Sorry for my english NOTE: IF YOUR CORP ID NOT A '1' CHANGE IT FOR YOURSELF

Post Reply

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 6 guests