It would be great to be able to filter on the number of posts within the group.

I originally wrote this as a boolean but dereine suggested making it more flexible with a numeric handler. Thanks!

Comments

dawehner’s picture

Status: Needs review » Needs work
+++ b/og_statistics.views.incundefined
@@ -44,6 +61,9 @@ function og_statistics_views_og_statistics() {
+      'handler' => 'og_statistics_handler_filter_posts_count',

All what's needed is 'handler' => 'views_handler_filter_numeric',

That's it.

This could be added to all other similar fields as well.

ezra-g’s picture

Status: Needs work » Needs review
StatusFileSize
new688 bytes

You are correct!

ezra-g’s picture

This patch also adds help text and the filter handler to the comments_count, and member_count fields.

ezra-g’s picture

...With missing commas.

dawehner’s picture

Status: Needs review » Patch (to be ported)

Thanks! Committed to 6.x

This should be changed in the d7 version as well.

cweagans’s picture

Issue tags: +Needs backport to D7