XF 1.1 How make something show in a thread only if the have posts in it.

I'm assuming you're planning on showing it above the posts? If it's not within the posts, you could try this:
HTML:
<xen:foreach loop="$posts" value="$posted">
    <xen:if is="{$visitor.user_id} == {$posted.user_id}">
        <xen:set var="$hasPosted">true</xen:set>
    </xen:if>
</xen:foreach>
 
<xen:if is="{$hasPosted}">Message to user</xen:if>
It's not the best solution, but it's the only way I see possible at the moment. Otherwise, you'd need an add-on to modify the thread/post fetching to include whether or not the user has posted in a thread (this is only done for thread listing for use with the mini-me avatar).
 
Top Bottom