SimplePortal
Development => Feature Requests => Topic started 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.
-
With a custom block this can be achievable. You should need to edit SQL code though. Add something like:
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 :)
-
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.
-
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.