• Welcome to Simple Machines Community Forum. Please login or sign up.
September 19, 2021, 12:33:39 AM

News:

SMF 2.0.18 has been released! Please update. Read more.


Top Topics for the last X days

Started by Enc0der, January 29, 2005, 09:50:05 AM

Previous topic - Next topic

Enc0der

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 !

Enc0der

ok, I did it by myself...

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

Advertisement: