• 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

bloh

Active member
#1
I'm trying to hide all conversations with zero reply.

Code:
        <xen:if is="{$conversations}">
            <xen:foreach loop="$conversations" value="$conversation">
                <xen:if is="{$conversation.reply_count}>0">
                    <xen:include template="conversation_list_item" />
                </xen:if>
            </xen:foreach>
        <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.
 

Jeremy P

Well-known member
#2
This would require custom development/an add-on/code modifications. You need to edit the underlying query and not just the template.
 

bloh

Active member
#3
This would require custom development/an add-on/code modifications. You need to edit the underlying query and not just the template.
What about adding 5 latest conversation replies to the email notification for new conversation replies?
Can I do that by editing the email template?
 

Jeremy P

Well-known member
#5
What about adding 5 latest conversation replies to the email notification for new conversation replies?
Can I do that by editing the email template?
I don't think that information is available to the email templates. It would also require custom development.