[EDK 4.2+] Replace Top Locations

Discuss/Upload mods to the EVE-Dev Killboard.
Post Reply
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

[EDK 4.2+] Replace Top Locations

Post by Salvoxia »

Hi,

I quickly threw together this mod on the request of a community member (\o nefrit). It simply replaces the Top Locations top list on the Front Page with the Top Solokillers toplist (and a Top 1on1 losers toplist when viewing losses). That's all.

Best Regards,
Salvoxia

Installation: Upload the folder in the zip-File to your mods directory an enable the mod in ACP -> Modules. You might have to clear your cached templates.
Attachments
replcace_top_locations.zip
Replace Top Locations v1.0
(1.89 KiB) Downloaded 280 times

nefrit
Apprentice
Posts: 56
Joined: Sun Mar 10, 2013 21:10

Re: [EDK 4.2+] Replace Top Locations

Post by nefrit »

Thanks !

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

Re: [EDK 4.2+] Replace Top Locations

Post by Eek »

Another small, but awesome mod, thanks Salvoxia!

BTW, is it possible to shift the positions of these toplists / awardboxes around? I'd like topscorers, then solokilles and then topkillers, but just changing the order of the toplists in the init.php file didn't work.

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

Re: [EDK 4.2+] Replace Top Locations

Post by Salvoxia »

Hi,

when looking carefully in init.php you can make out separate blocks for each top list (each block begins with the appropriate comment, e.g. // Top scorers). Each block ends with a line assigning some value to $html.

When shifting around you need to make sure that
1) you shift complete blocks
2) the last line of the block begins with

Code: Select all

$html .=
(notice the dot before the equals sign; the first block doesn't have that dot, making everything that comes before this block invalid).

Best Regards,
Salvoxia

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

Re: [EDK 4.2+] Replace Top Locations

Post by Eek »

Awesome.. the dot thing did the trick.

Thanks again!

Post Reply