Customizing SMF > SMF Coding Discussion

Recent Posts in Last XX Hours.

(1/1)

fiver:
SMF: 2.0.2
Theme: Default/Curve


Hi,

Could anyone help with this please:

To show the posts in Recent Posts box (in a forum's home page) according to hours? for example: last 12 hours.

I had a look into Source/Recent.php and have no clue what to do.

I searched and read through the forum for many days and haven't found any answer. Appreciate any suggestions. Thanks.

Mick.:
There is a mod available in the mod section.

fiver:
Thanks for reply.


I search the word "recent" in mod page and read through a few mods. None seems to do this.

Mick.:
Here http://custom.simplemachines.org/mods/index.php?mod=3288 ;)

fiver:
Thanks Mick.


I saw the mod earlier and read about an "icon" bug in that mod which needs fixing since January.


Also I was hoping/looking for simpler codes that I can put into recent.php, as I do not need the parts in that mod about selection of hours or the change from Recent Posts to Recent Topic.


There were some codes posted in 2009 that works for older version of SMF, but I can't get it to work in SMF 2.0.2 now.
http://www.simplemachines.org/community/index.php?topic=286695.msg1975408#msg1975408


Will you be able to help me adapt it to SMF 2.0.2 please? Thanks, very much appreciated.

Navigation

[0] Message Index

Go to full version