SimplePortal

Development => Feature Requests => Topic started by: stanyy on July 10, 2013, 09:46:03 AM

Title: Most Replies In X Hours
Post by: stanyy on July 10, 2013, 09:46:03 AM
Could you create a function in TopTopics block to display most replies/views in x hours?

In a Top Topics block, you can set a block to show topics with most replies or views, but this measures total views and replies.

I would really like this feature on my forum. Could I modify a portal source file to show topics in x hours instead of total? Or is there another option for me? Suggestions are welcome.
Title: Re: Most Replies In X Hours
Post by: Blue on July 20, 2013, 08:43:26 PM
With a custom block this can be achievable. You should need to edit SQL code though. Add something like:
Code: [Select]
WHERE DATE_SUB(CURDATE(),INTERVAL 10 HOUR) <= data_of_reply_field
If you need assistance while doing the custom block just ask in the Block Requests Forum :)
Title: Re: Most Replies In X Hours
Post by: stanyy on July 21, 2013, 11:34:22 AM
Thanks for the reply, but I'm a little lost here... Where would I edit the sql code? Also, what code would I use for the custom block?

I assumed it could easily be done with a little tweaking of the TopTopics block.... Anyway, i'll make a topic in block requests board.
Title: Re: Most Replies In X Hours
Post by: [SiNaN] on August 14, 2013, 11:40:48 AM
I'll put the link here for those who'd like such a feature as well:

http://simpleportal.net/index.php?topic=12734.0

Unfortunately it's not something we'll add anytime soon.
SimplePortal 2.3.8 © 2008-2024, SimplePortal