Nudaii Well-known member Sep 11, 2015 #1 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
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
P Paul B XenForo moderator Staff member Sep 11, 2015 #2 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. Upvote 0 Downvote
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.
P Paul B XenForo moderator Staff member Sep 11, 2015 #4 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. Upvote 0 Downvote
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.