Advertisement:

Author Topic: Top Topics for the last X days  (Read 2603 times)

Offline Enc0der

  • Jr. Member
  • **
  • Posts: 358
  • Gender: Male
  • I'm a llama!
Top Topics for the last X days
« 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 !

Offline Enc0der

  • Jr. Member
  • **
  • Posts: 358
  • Gender: Male
  • I'm a llama!
Re: Top Topics for the last X days
« Reply #1 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.