It is currently Fri Sep 03, 2010 12:49
  • View your posts
  • FAQ
  • Register
  • Login

  • All times are UTC + 1 hour [ DST ]



    Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2, 3  Next
    Author Message
     Post subject: [Mod] Combined Front Page 1.6.2 - kills/losses on home page
    PostPosted: Tue Dec 16, 2008 02:28 
    Offline
    GOD!
     Profile

    Joined: Wed Nov 26, 2008 13:35
    Posts: 1657
    combined_front_page EDK mod 1.6.2

    This mod changes the front page of EDK to show both kills and losses - kills in green and losses in red. Colours have been tested with colourblind users to ensure ease of reading. Rows alternate dark and light colours for easier reading, as in the standard killboard. The css file can be customised to suit if needed. Some colourblind users have had problems with particular monitors. If that's you, both the kills and losses pages still have the standard colouring so can be used instead.

    The mod works with killboards that share a database.

    The goal of this mod is to clearly show both kills and losses on the front page with minimal overhead. If you need more features then the I.NET mod by Sappyx may be what you need instead. - viewtopic.php?f=505&t=13068 .


    To install, copy the combined_front_page folder from the attached zip file to the mods directory of the killboard. Activate the mod on the killboard admin page.

    Updated:
    1.1 Optimised db queries to improve page load times
    1.2 Further db optimisation
    Now counts weeks properly
    Removed class.killlistable.php
    Added settings page to limit allowable date range shown to improve speed
    'previous week' link now goes to a combined kills and losses page for
    that week.
    '20 most recent kills' now shows the selected number
    Uncached query times reduced to under 25% on tested systems (YMMV).
    1.3 Minor changes to formatting to fit pos modules in.
    1.4 Code cleaned up. No visual change.
    1.5 Fixed a date bug introduced in 1.4 - Week was starting on Sunday.
    1.5.1 Another bugfix. SQL is faster again. Alternating shades are back.
    1.6 Added an option for a monthly view.
    1.6.1 toplists showed monthly in both views. Fixed
    1.6.2 Fixed the typo introduced in 1.6.1


    Attachments:
    combined_front_page.1.6.2.zip [7.28 KiB]
    Downloaded 367 times


    Last edited by Kovell on Sun Mar 29, 2009 14:04, edited 14 times in total.
    Top
     
     Post subject: Re: [Mod] Combined Front Page (kills and losses on front page)
    PostPosted: Tue Dec 16, 2008 06:05 
    nice try.

    already posted here:

    viewtopic.php?f=505&t=13059


    Top
     
     Post subject: Re: [Mod] Combined Front Page (kills and losses on front page)
    PostPosted: Tue Dec 16, 2008 06:05 
    i mean here:

    viewtopic.php?f=505&t=11227


    Top
     
     Post subject: Re: [Mod] Combined Front Page (kills and losses on front page)
    PostPosted: Tue Dec 16, 2008 14:47 
    Offline
    GOD!
     Profile

    Joined: Wed Nov 26, 2008 13:35
    Posts: 1657
    Thank you for your comments. :)

    Sapyx has a similar mod with a lot more features. This mod doesn't try to have any of those features. It is simply to display both kills and losses on the front page as clearly as I could.

    The direct link to the Sapyx mod is in my post - viewtopic.php?f=505&t=13068 .

    If you want something simple and quick then you can use this mod. If you want a much bigger mod with a lot more features then use their mod.


    Top
     
     Post subject: Re: [Mod] Combined Front Page (kills and losses on front page)
    PostPosted: Wed Dec 17, 2008 09:01 
    post number 3 here: viewtopic.php?f=505&t=11227

    does exactly this.. ONLY losses and kills on home page, nothing else


    Top
     
     Post subject: Re: [Mod] Combined Front Page (kills and losses on front page)
    PostPosted: Thu Dec 18, 2008 11:58 
    Offline
    GOD!
     Profile

    Joined: Wed Nov 26, 2008 13:35
    Posts: 1657
    That code does add the kills to the front page but that's all. It doesn't do the colour coding for kills and losses, it doesn't keep the alternating shades for readability and it doesn't restrict kills and losses to the corp/alliance running the killboard. It's wrong as the Killlist doesn't work that way, which is why it doesn't properly restrict the kills. It isn't written as a separate mod for convenience. They also haven't tested their code and colour choice.

    If you read further in that thread you'll find that someone else tidied it up further and put code for a separate mod that's closer to what I've done, although they didn't actually post files that could be used, they repeated the bugged display and again, no checking of colours. They probably would have posted the whole thing if they had. If you read still further you'll find sapyx's lovely mod mentioned.

    As I said before, this mod does much the same except it aims to be convenient (compared to editing files yourself), a lighter load and be the best compromise of legibility.

    Thank you again for taking the time to post. I had thought I answered all your questions in the original post so I hope this helps.


    Top
     
     Post subject: Re: [Mod] Combined Front Page (kills and losses on front page)
    PostPosted: Thu Dec 18, 2008 13:51 
    Offline
    Site Admin
    User avatar
     E-mail  WWW  ICQ  Profile

    Joined: Sat Jun 14, 2008 20:06
    Posts: 508
    Location: Krefeld, Germany
    You shouldnt replace core files unless really needed.
    You are looking for KillList::tag(<string>), it adds an attribute to every kill that can be used in the template to distinguish between different killLists once combined with CombinedKillList.


    Top
     
     Post subject: Re: [Mod] Combined Front Page (kills and losses on front page)
    PostPosted: Sat Dec 20, 2008 08:37 
    Offline
    GOD!
     Profile

    Joined: Wed Nov 26, 2008 13:35
    Posts: 1657
    exi wrote:
    You shouldnt replace core files unless really needed.
    You are looking for KillList::tag(<string>), it adds an attribute to every kill that can be used in the template to distinguish between different killLists once combined with CombinedKillList.

    Oh, thank you! I was looking for a better way to do it. I missed that.

    ETA: Aww, I still need to change class.killlisttable.php to use my template file. I thought you had managed to remove the need for an entire file.

    ETA2: Okay, worked out how to solve that. Now to test it on my guinea pigs.


    Top
     
     Post subject: Re: [Mod] Combined Front Page (kills and losses on front page)
    PostPosted: Fri Jan 16, 2009 10:18 
    Offline
    GOD!
     Profile

    Joined: Wed Nov 26, 2008 13:35
    Posts: 1657
    I made some minor updates to improve display of pos module kills. Files are attached to the first post.


    Top
     
     Post subject: Re: [Mod] Combined Front Page 1.5.1 - kills/losses on home page
    PostPosted: Sun Mar 08, 2009 11:46 
    Offline
     E-mail  Profile

    Joined: Thu Feb 26, 2009 17:02
    Posts: 17
    Any chance someone could help me mod this to work with the monthly view ?


    Top
     
    Display posts from previous:  Sort by  
    Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2, 3  Next

    All times are UTC + 1 hour [ DST ]


    Who is online

    Users browsing this forum: underwoodr and 1 guest


    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum

    Search for:
    Jump to:  
    Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group  
    Style Designed By phpBBegypt