SHOWROSTER - Version 1.1.1 (Manual Update)
In the meantime, for those wishing to add a total count of members to their roster, you can make the following adjustments on your own. I'm going to go ahead and update the main zip file as well for new comers. That way you could just download the new file and upload the new showroster.php file to your server. I'd recommend making a manual update to the SHOWROSTER template rather than uninstalling and reinstalling the mod. This adjustment is small.
Step 1: Admincp > Styles & Templates > Expand > ShowRoster Templates > SHOWROSTER
Find:
Code:
<td class="tcat" colspan="7">$vbphrase[showroster_title]</td>
Replace with:
Code:
<td class="tcat">$vbphrase[showroster_title]<div style="position: absolute; right:9%">Member Count: $totalcount</div></td>
You'll need to adjust the right:#% depending on what works best for your site. It represents how far from the right margin it appears. Trial and error.
Step 2: Edit the showroster.php file and upload it to the /forum/ directory.
Find:
Code:
if ($permissions['showrosteraccesspermissions'] & $vbulletin->bf_ugp['showrosteraccesspermissions']['showrosteraccess']) {
$rosterheader = '';
if (sizeof($groupcache) >= 1) {
ksort($groupcache); // Alphabetically Sort Usergroups
foreach ($groupcache AS $users) {
ksort($users); // Alphabetically Sort Users
$rosterbits = '';
$usercount = '';
foreach ($users AS $user) {
//if ($user['field#'] != ''){ //Step 1 - If you wish to limit blank fields from appearing, remove the front two slashes and change field# to a field of your choice
exec_switch_bg();
$user = process_showgroups_userinfo($user);
$usercount++;
Replace with:
Code:
if ($permissions['showrosteraccesspermissions'] & $vbulletin->bf_ugp['showrosteraccesspermissions']['showrosteraccess']) {
$rosterheader = '';
$totalcount = '';
if (sizeof($groupcache) >= 1) {
ksort($groupcache); // Alphabetically Sort Usergroups
foreach ($groupcache AS $users) {
ksort($users); // Alphabetically Sort Users
$rosterbits = '';
$usercount = '';
foreach ($users AS $user) {
//if ($user['field#'] != ''){ //Step 1 - If you wish to limit blank fields from appearing, remove the front two slashes and change field# to a field of your choice
exec_switch_bg();
$totalcount++;
$usercount++;
$user = process_showgroups_userinfo($user);
Rather than do Step 2 manually, you can just download the new showroster_1.1.1.zip file and upload the showroster.php file.