Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Stormlilly Posted November 2, 2015 Posted November 2, 2015 (edited) Hi, Is there a way to create a block that shows all Unanswered Threads (topics which have a post count of zero)? I'd really appreciate your help. Thanks. Edited November 2, 2015 by Stormlilly
VizionDev Posted November 2, 2015 Posted November 2, 2015 As far as I know, no @Makoto could help you though if you needed a plugin developed for it. Stormlilly 1
Morrigan Posted March 23, 2020 Posted March 23, 2020 This is a widget: Only problem I have with it is that if there are no topics with 0 replies then the block is still there.
Adriano Faria Posted March 23, 2020 Posted March 23, 2020 (edited) 25 minutes ago, Morrigan said: Only problem I have with it is that if there are no topics with 0 replies then the block is still there. I didn’t see the script as I don’t have it but it’s enough to use something like: if( ! \count( $topics ) ) { return “”; } Assuming it has a $topics variables array. Place this before the widget output. Edited March 23, 2020 by Adriano Faria
Morrigan Posted March 23, 2020 Posted March 23, 2020 Oh I'm fully aware @Adriano Faria I was just stating it for the user as its not that way out of the box.
CoffeeCake Posted March 23, 2020 Posted March 23, 2020 On 3/21/2020 at 10:23 AM, Fosters said: @Fosters, how does this handle displaying a thread with zero replies to a person with no permission to reply to it? For example, a thread that has been closed, or a thread where permission is that a person can read it, but not reply.
Fosters Posted March 23, 2020 Posted March 23, 2020 2 hours ago, Paul E. said: @Fosters, how does this handle displaying a thread with zero replies to a person with no permission to reply to it? For example, a thread that has been closed, or a thread where permission is that a person can read it, but not reply. The same way as you see in the screenshot. It's just a list of topics which the user is allowed to view and it's using the default topic rows template for the output.
CoffeeCake Posted March 23, 2020 Posted March 23, 2020 2 minutes ago, Fosters said: The same way as you see in the screenshot. It's just a list of topics which the user is allowed to view and it's using the default topic rows template for the output. So, a closed thread with no replies will show up in the view to a user who has permission to view that thread, even though they can't post a reply? For example, if I create an announcement/pinned thread that is closed to replies, a standard user who can view that message will still see it in this view you've created?
Fosters Posted March 23, 2020 Posted March 23, 2020 2 minutes ago, Paul E. said: So, a closed thread with no replies will show up in the view to a user who has permission to view that thread, even though they can't post a reply? For example, if I create an announcement/pinned thread that is closed to replies, a standard user who can view that message will still see it in this view you've created? Yes, because it's still a thread with 0 replies, BUT I see what you mean 😉 I'll see if I can add a setting for this.
CoffeeCake Posted March 23, 2020 Posted March 23, 2020 5 minutes ago, Fosters said: Yes, because it's still a thread with 0 replies, BUT I see what you mean 😉 I'll see if I can add a setting for this. What would be nice is to only show threads with zero replies for a given user for threads that they can actually reply to. So, if a thread is archived, or the user only has read but not post permission, or the thread is closed to new replies, etc. This would make it an actionable view: "Hey, here's threads you should consider replying to!" with the goal of getting the number displayed down to zero (everyone gets a response) Would be an instant purchase if it worked this way.
Recommended Posts