Want to increase Top Killers in Corp Detail

Development information and discussion about EDK.
Post Reply
Bas
Apprentice
Posts: 62
Joined: Sun Apr 20, 2014 12:11
Location: Russia, Moscow
Contact:

Want to increase Top Killers in Corp Detail

Post by Bas » Fri May 06, 2016 14:21

https://kb.*/?a=corp_detail&crp_ext_id=*&view=pilot_kills

Can't find in files :(
How i can increase 10 to 25, for example.

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

Re: Want to increase Top Killers in Corp Detail

Post by Salvoxia » Fri May 06, 2016 18:45

Hi,

open common/corp_detail.php and find this block of code (around line 405):

Code: Select all

case "pilot_kills":
	$smarty->assign('title', 'Top Killers');
	$smarty->assign('crp_id', $this->crp_id);
	$smarty->assign('url_previous', edkURI::build($args, array('view', 'pilot_kills', true), $pyearUrlArgument, $pmonthUrlArgument));
	$smarty->assign('url_next', edkURI::build($args, array('view', 'pilot_kills', true), $nyearUrlArgument, $nmonthUrlArgument));

	$list = new TopList_Kills();
After that, add this line:

Code: Select all

$list->setLimit(25);

A few lines further down you'll find another instance of

Code: Select all

$list = new TopList_Kills();
Add the same line after that one.

Best Regards,
Salvoxia

Bas
Apprentice
Posts: 62
Joined: Sun Apr 20, 2014 12:11
Location: Russia, Moscow
Contact:

Re: Want to increase Top Killers in Corp Detail

Post by Bas » Sun May 08, 2016 22:18

Thank you, Salvoxia!
Looks fine :)

Post Reply

Return to “EDK Development Suggestions”

Who is online

Users browsing this forum: No registered users and 7 guests