[Source MOD] Corp/Alliance/Pilot Combined Stats KillList (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] Corp/Alliance/Pilot Combined Stats KillList (WORKS ON 4.2.23)

Post by trix12345 » Fri Jun 10, 2016 12:10

Example:
1.png
1.png (664.65 KiB) Viewed 7856 times
String in the table will be red only if you added them to board owner.
For corp page you need to replace a code in ../common/corp_detail.php at 344+ strings:

Code: Select all

				$list = new KillList();
				$list->setOrdered(true);
				$list->setLimit(10);
				$list->addInvolvedCorp($this->crp_id);
				if ($this->scl_id) $list->addVictimShipClass($this->scl_id);
				else $list->setPodsNoobShips(config::get('podnoobs'));
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);

				$ktab = new KillListTable($list);
				$ktab->setLimit(10);
				$ktab->setDayBreak(false);
				$smarty->assign('kills', $ktab->generate());

				$list = new KillList();
				$list->setOrdered(true);
				$list->setLimit(10);
				$list->addVictimCorp($this->crp_id);
				if ($this->scl_id) $list->addVictimShipClass($this->scl_id);
				else $list->setPodsNoobShips(config::get('podnoobs'));
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);

				$ltab = new KillListTable($list);
				$ltab->setLimit(10);
				$ltab->setDayBreak(false);
				$smarty->assign('losses', $ltab->generate());
				return $smarty->fetch(get_tpl('detail_kl_default'));
by

Code: Select all

			/*
				$list = new KillList();
				$list->setOrdered(true);
				$list->setLimit(10);
				$list->addInvolvedCorp($this->crp_id);
				if ($this->scl_id) $list->addVictimShipClass($this->scl_id);
				else $list->setPodsNoobShips(config::get('podnoobs'));
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);

				$ktab = new KillListTable($list);
				$ktab->setLimit(10);
				$ktab->setDayBreak(false);
				$smarty->assign('kills', $ktab->generate());

				$list = new KillList();
				$list->setOrdered(true);
				$list->setLimit(10);
				$list->addVictimCorp($this->crp_id);
				if ($this->scl_id) $list->addVictimShipClass($this->scl_id);
				else $list->setPodsNoobShips(config::get('podnoobs'));
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);

				$ltab = new KillListTable($list);
				$ltab->setLimit(10);
				$ltab->setDayBreak(false);
				$smarty->assign('losses', $ltab->generate());
				return $smarty->fetch(get_tpl('detail_kl_default'));
*/
                $list = new KillList();
				$list->setOrdered(true);
				$list->addCombinedCorp($this->crp_id);
				if ($this->scl_id) $list->addVictimShipClass($this->scl_id);
				else $list->setPodsNoobShips(config::get('podnoobs'));
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);
				$list->setPageSplit(config::get('killcount'));
				$pagesplitter = new PageSplitter($list->getCount(), config::get('killcount'));
				$table = new KillListTable($list);
				$table->setDayBreak(false);
				$table->setCombined(true);
				$pagesplit = $pagesplitter->generate();
			    $html = $pagesplit.$table->generate().$pagesplit;
			    return $html;
for ally in ../common/alliance_detail.php at 352+:

Code: Select all

				$list = new KillList();
				$list->setOrdered(true);
				if (config::get('comments_count')) {
					$list->setCountComments(true);
				}
				if (config::get('killlist_involved')) {
					$list->setCountInvolved(true);
				}
				$list->setLimit(10);
				$list->addInvolvedAlliance($this->alliance);
				if ($scl_id) {
					$list->addVictimShipClass($scl_id);
				}
				else {
					$list->setPodsNoobShips(config::get('podnoobs'));
				}
				$ktab = new KillListTable($list);
				$ktab->setLimit(10);
				$ktab->setDayBreak(false);
				$smarty->assign('kills', $ktab->generate());

				$list = new KillList();
				$list->setOrdered(true);
				if (config::get('comments_count')) {
					$list->setCountComments(true);
				}
				if (config::get('killlist_involved')) {
					$list->setCountInvolved(true);
				}
				$list->setLimit(10);
				$list->addVictimAlliance($this->alliance);
				if ($scl_id) {
					$list->addVictimShipClass($scl_id);
				}
				else {
					$list->setPodsNoobShips(config::get('podnoobs'));
				}
				$ltab = new KillListTable($list);
				$ltab->setLimit(10);
				$ltab->setDayBreak(false);
				$smarty->assign('losses', $ltab->generate());

				return $smarty->fetch(get_tpl('detail_kl_default'));
by

Code: Select all

/*				$list = new KillList();
				$list->setOrdered(true);
				if (config::get('comments_count')) {
					$list->setCountComments(true);
				}
				if (config::get('killlist_involved')) {
					$list->setCountInvolved(true);
				}
				$list->setLimit(10);
				$list->addInvolvedAlliance($this->alliance);
				if ($scl_id) {
					$list->addVictimShipClass($scl_id);
				}
				else {
					$list->setPodsNoobShips(config::get('podnoobs'));
				}
				$ktab = new KillListTable($list);
				$ktab->setLimit(10);
				$ktab->setDayBreak(false);
				$smarty->assign('kills', $ktab->generate());

				$list = new KillList();
				$list->setOrdered(true);
				if (config::get('comments_count')) {
					$list->setCountComments(true);
				}
				if (config::get('killlist_involved')) {
					$list->setCountInvolved(true);
				}
				$list->setLimit(10);
				$list->addVictimAlliance($this->alliance);
				if ($scl_id) {
					$list->addVictimShipClass($scl_id);
				}
				else {
					$list->setPodsNoobShips(config::get('podnoobs'));
				}
				$ltab = new KillListTable($list);
				$ltab->setLimit(10);
				$ltab->setDayBreak(false);
				$smarty->assign('losses', $ltab->generate());

				return $smarty->fetch(get_tpl('detail_kl_default'));
*/
                $list = new KillList();
				$list->setOrdered(true);
				$list->addCombinedAlliance($this->all_id);
				if ($this->scl_id) $list->addVictimShipClass($this->scl_id);
				else $list->setPodsNoobShips(config::get('podnoobs'));
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);
				$list->setPageSplit(config::get('killcount'));
				$pagesplitter = new PageSplitter($list->getCount(), config::get('killcount'));
				$table = new KillListTable($list);
				$table->setDayBreak(false);
				$table->setCombined(true);
				$pagesplit = $pagesplitter->generate();
			    $html = $pagesplit.$table->generate().$pagesplit;
			    return $html;
for pilot in ./common/pilot_detail.php at 276:

Code: Select all

				$list = new KillList();
				$list->setOrdered(true);
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);
				$list->setLimit(10);
				$list->addInvolvedPilot($this->pilot);
				if ($scl_id)
					$list->addVictimShipClass($scl_id);
				else
					$list->setPodsNoobships(config::get('podnoobs'));
				$table = new KillListTable($list);
				$table->setDayBreak(false);
				$smarty->assign('kills', $table->generate());

				$list = new KillList();
				$list->setOrdered(true);
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);
				$list->setLimit(10);
				$list->addVictimPilot($this->pilot);
				if ($scl_id)
					$list->addVictimShipClass($scl_id);
				else
					$list->setPodsNoobships(config::get('podnoobs'));
				$table = new KillListTable($list);
				$table->setDayBreak(false);
				$table->setDayBreak(false);
				$smarty->assign('losses', $table->generate());
				return $smarty->fetch(get_tpl('detail_kl_default'));
by

Code: Select all

/*				$list = new KillList();
				$list->setOrdered(true);
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);
				$list->setLimit(10);
				$list->addInvolvedPilot($this->pilot);
				if ($scl_id)
					$list->addVictimShipClass($scl_id);
				else
					$list->setPodsNoobships(config::get('podnoobs'));
				$table = new KillListTable($list);
				$table->setDayBreak(false);
				$smarty->assign('kills', $table->generate());

				$list = new KillList();
				$list->setOrdered(true);
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);
				$list->setLimit(10);
				$list->addVictimPilot($this->pilot);
				if ($scl_id)
					$list->addVictimShipClass($scl_id);
				else
					$list->setPodsNoobships(config::get('podnoobs'));
				$table = new KillListTable($list);
				$table->setDayBreak(false);
				$table->setDayBreak(false);
				$smarty->assign('losses', $table->generate());
				return $smarty->fetch(get_tpl('detail_kl_default'));
*/
                $list = new KillList();
				$list->setOrdered(true);
				$list->addCombinedPilot($this->plt_id);
				if ($this->scl_id) $list->addVictimShipClass($this->scl_id);
				else $list->setPodsNoobShips(config::get('podnoobs'));
				if (config::get('comments_count')) $list->setCountComments(true);
				if (config::get('killlist_involved')) $list->setCountInvolved(true);
				$list->setPageSplit(config::get('killcount'));
				$pagesplitter = new PageSplitter($list->getCount(), config::get('killcount'));
				$table = new KillListTable($list);
				$table->setDayBreak(false);
				$table->setCombined(true);
				$pagesplit = $pagesplitter->generate();
			    $html = $pagesplit.$table->generate().$pagesplit;
			    return $html;
Kills\Losses links functional work as before

Post Reply

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 15 guests