XF 1.5 conditional for posts in node or thread

Nudaii

Well-known member
hello is there a conditional for number of posts by a user in x thread or x node?

if example user y has at least x posts in node z then i could display a certain image in their postbit :)
 
In a thread you can use $thread.user_post_count.
Although you will need to check if that is available in the thread_view template.

There is no equivalent for nodes.
 
In case you weren't aware, you can use this in the template to check if it's available:
Code:
{xen:helper dump, $variable}


So in this case it would be:
Code:
{xen:helper dump, $thread.user_post_count}


If NULL is returned then it's not available.
 
Top Bottom