The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
COUNT'ing usergroups...
Is there a way that i can have the total number of members belonging to a usergroup displayed in the header of each usergorup table listed in showgroups.php ?
I don't want to create a seperate SQL query for every instance of a usergroup, but would rather somehow have a variable placed in the WHERE clause which is then later defined. Thanks |
#2
|
||||
|
||||
This is easy but since your forums is vB3, you'll have to wait til vB3 hacking is allowed
|
#3
|
|||
|
|||
aarrrrrrrrrrrrgggg! lol
Could you e-mail me? nick@mortalis.com I would greatly appreciate any help Its really only MySQL syntax that i need, not template or anything vB specific. Heres what i have atm for a custom script (based on showgroups.php) which produces this : http://www.mortalis.com/?mainDiv=/forums/rollcall.php As you can see i have a created 3 queries to produce the totals for active, inactive & all, but have not been able to think up a count query for each of the classes. |
#4
|
|||
|
|||
bump ! been a while and vB3 is out now. Anyone able to help me still?
|
#5
|
||||
|
||||
if you open showgroups.php
you'll find that line: PHP Code:
PHP Code:
|
#6
|
|||
|
|||
it just returns 1. I have to admit that im using a very customised version of the showgroups.php and your probably not supposed to support me Its based on an older vb too now. So ill modify it so that it resembles the v3 more and try again.
Thanks for your reply |
#7
|
||||
|
||||
This works great... except the count is incorrect for the "Moderators" category that includes everyone who is assigned to Moderate Forums regardless of usergroup. Any way to get that number correct?
|
#8
|
||||
|
||||
for the moderators sections you have to use
PHP Code:
|
#9
|
||||
|
||||
Quote:
|
#10
|
||||
|
||||
before that:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|