How to filter only registered users in drupal?

I can filter users, I am the administrator, editors, editors, but I can not filter registered users. Is there a module for this? I can’t find anything!

I just want to see a list of registered users, except for administrators, editors, proofreaders ... you know. thank

+3
source share
1 answer

Create a type view Users(and NOT Nodeas usual). Now add a filter. Select a group Usersfrom the drop-down list of filters. Select a filter User: Roles. Set the operator is none ofand check the editor, corrector, etc. Thus, you will ONLY see registered users on your site.

(By the way, you can always set this filter to control what roles you want to see or don't want to see in the list)

Additional question: how to count users

Enable the PHP filter module, add the following to the view header (with the input format selected as the PHP filter) and paste the following code:

<?php
  $view = views_get_current_view();
  print count($view->result)." Users";
?>
+6
source

Source: https://habr.com/ru/post/1767950/


All Articles