I'm trying to alter the thread reply count to only count posts that have been made within the last 21 days.
So this bit of code in thread_list_macros :
I know the following would check if the post is under 21 days...
Some sort of combination of that and
So this bit of code in thread_list_macros :
Code:
<dd>{{ $thread.discussion_type == 'redirect' ? '–' : $thread.reply_count|number }}</dd>
I know the following would check if the post is under 21 days...
Code:
($xf.time - $post.post_date) < 1814400
Some sort of combination of that and
count($posts)
perhaps?