Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: Enc0der on January 29, 2005, 09:50:05 AM

Title: Top Topics for the last X days
Post by: Enc0der on January 29, 2005, 09:50:05 AM
Hi

I would love to see an enhanced version of the <?php ssi_topTopicsViews(); ?> function, that will have a argument $days and will show only the top topics (Views / Replies) for the last X days.

This is important because the current functions gets threads from years ago, and that is - of course - not actual, and pretty useless.


I believe it should be fairly easy and only require a little change on the ssi_topTopics's db_query.

Please make the Top Topics function useable !  :P


Thanks !
Title: Re: Top Topics for the last X days
Post by: Enc0der on January 30, 2005, 03:20:01 AM
ok, I did it by myself...

just added to the db_query:
Code: [Select]
AND m.posterTime >= " . (time() - $days * 86400) . "where $days is the number of days back to include.