XF 2.2 Widget new posts


Well-known member

Is it possible with conditional in the widget settings to display only threads which have at least 1 answer ?

Thanks !


Well-known member

It seems that the variable is simply threads

Capture web_14-9-2021_141912_localhost.jpeg

and first post is $firstpost

Capture web_14-9-2021_142149_localhost.jpeg

So now i have to figure out how to write the condition right ?
something like if $thread has $firstpost then display = ok but with the right xenforo syntax ! 🙃


XenForo moderator
Staff member
I expect you likely want to use reply_count.

So something like: $context.thread.reply_count > 0 .

Note however that the display condition only affects where and how the widget is shown - it does not affect widget content.

So the above statement will only show the widget in threads which have at least 1 reply.