1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 How to show the numbers of persons in a usergroup?

Discussion in 'XenForo Questions and Support' started by Markos, Jun 27, 2014.

  1. Markos

    Markos Well-Known Member

    I have created a new usergroup in my forum and want to make visible the number of persons in this usegroup. How i can do this?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    You can check in the ACP using the user search function.
     
    Markos likes this.
  3. Markos

    Markos Well-Known Member

    I know Brogan, my idea is to show in the "Forum Statistics" block the number of Premium Users in my forum. Can i do that without an addon?
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    No, the data isn't available outside the ACP.
     
  5. Markos

    Markos Well-Known Member

    Darn :/, i thought there are a variable/hook to show this value in the forum...
     
  6. Sheldon

    Sheldon Well-Known Member

    I could find a use for this as well... Surprised its not accessible somehow.
     
  7. Markos

    Markos Well-Known Member

    I'm also surprised...mhh i think the unique solution now is a mod request.
     
  8. Jeremy

    Jeremy XenForo Moderator Staff Member

    There is no global count, you would need to store it and update it (because generating a number on page load would be a bad idea for performance). After that, its a matter of exposing the data via an add-on to request and fetch it.
     
    Markos and Sheldon like this.
  9. Sheldon

    Sheldon Well-Known Member

    Appreciate the explanation.
     

Share This Page