1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Hide all conversation with zero reply

Discussion in 'XenForo Questions and Support' started by bloh, Oct 26, 2015.

  1. bloh

    bloh Active Member

    I'm trying to hide all conversations with zero reply.

            <xen:if is="{$conversations}">
                <xen:foreach loop="$conversations" value="$conversation">
                    <xen:if is="{$conversation.reply_count}>0">
                        <xen:include template="conversation_list_item" />
            <xen:else />
    But then, the first page only show 5 conversations (15 hidden due to zero reply).
    **I want to show 20 conversations on the first page without zero reply.

    The "Showing conversations 1 to 20 of 41" doesn't minus those with zero reply.

    Any help would be appreciated.
  2. Jeremy P

    Jeremy P Well-Known Member

    This would require custom development/an add-on/code modifications. You need to edit the underlying query and not just the template.
  3. bloh

    bloh Active Member

    What about adding 5 latest conversation replies to the email notification for new conversation replies?
    Can I do that by editing the email template?
  4. Brogan

    Brogan XenForo Moderator Staff Member

    If you hide conversations with no replies, how will you know they exist?
  5. Jeremy P

    Jeremy P Well-Known Member

    I don't think that information is available to the email templates. It would also require custom development.

Share This Page