Hi.

I'm trying to built a view of most active users. I got part of it using aggregation/count (nid). But I want something a bit different.

I'm looking for a view that would show randomly one user picture within the top 10 of most active users (that have posted the most content). Just cannot find the way to search randomly inside the query giving this top 10.

Some help would be much appreciated.

Comments

Stefan Lehmann’s picture

Don't think it's possible without a little bit of coding. The easiest way is probably to limit the view to 10 items and then implement:

https://api.drupal.org/api/views/views.api.php/function/hook_views_pre_r...

and instead of shuffling the results as in the example just unsetting all the unwanted items.

I like cookies!

Northern_Girl’s picture

... for pointing into a direction. I'll look into that.

NG

Drupal in the snow