By vstmusic on
Hi everybody,
I want to count et display the number of all users of such role (for example ID 2).
I don't understand what snippet of php code I must create to display this number.
Thanks for your help, it's important for my website.
Cédric
Comments
This should
This should work:
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
This works nicely in
This works nicely in displaying user numbers of all roles WorldFallz.
However, can you give me a hint on how to display number of users of a certain role?
_
something like this should do it:
try this
THANKS ! I try too to count
THANKS !
I try too to count the total number of the results of a view. Do you know what php code I must insert in the html code of my page ?
no idea ?
no idea ?
http://drupal.org/project/vie
http://drupal.org/project/views_calc
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
This is EXACTLY the snippet i
This is EXACTLY the snippet i'm looking for (I need to call it pragmatically in a rule) but it doesn't seem to work in D7. What changes would I need to make to this code to make it return a count of all users of a role in Drupal 7?
Thanks so much!