Resource icon

[Free Add-on ] Global Template Usergroup Member Count 1.0.0

No permission to download
  • Author XenForo Rocks
  • Creation date
    • You can download only 0 resources in 24 hours
    • You need more than 0 posts to download the resource
Compatible XF Versions
1.2, 1.3, 1.4
Additional Requirements
PHP 5.3+
Visible Branding
This is a simple addon that adds a variable to every template, which contains the amount of members in usergroups.

The data for this variable is fetched from the XenForo SimpleCache, which is updated by a cron that runs (by default) every 6 hours.

The variable is 'userGroupMembers'. It is an array - the key is the usergroup ID, and the value is the number of members in that usergroup.

You can print out the value to the screen by using a line like this in a template:

That line would print the number of members in the usergroup with ID 3 (the administrator default usergroup).
XenForo Rocks
First release
Last update
0.00 star(s) 0 ratings