PDA

View Full Version : Displaying all membered to a primary usergroup



bi11i
Wed 23rd Mar '05, 5:24pm
I'd like to be able to display all the members from a certain usergroup in my 'What's Going On?' box. (ie, listing all of the members from a 'donating' usergroup on my front page, regardless of online status, etc. Just a simple listing.)

Is there an easy way to do this?

For instance, in this code (forumhome template):
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
<tr>
<td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
<td class="alt1" width="100%">
<div class="smallfont">
<div>$vbphrase[threads]: $totalthreads, $vbphrase[posts]: $totalposts, $vbphrase[members]: $numbermembers</div>
<div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
</div>
</td>
</tr>
</tbody>
Is there any easy way to list all the members from usergroup x, right after the vbphrase[welcome_to_our...]?

Steve Machol
Wed 23rd Mar '05, 7:53pm
There is no function to do this. I am pretty sure this requires modifying the code. We cannot officially support code modifications or forums running modified code, however can try searching or asking for help with this over at www.vbulletin.org (http://www.vbulletin.org).

bi11i
Wed 23rd Mar '05, 7:57pm
Darn. Yes, I've checked over there and usually get the same answer ("Oh, that's easy" with no solution, or that it requires code modification.)

Thanks for getting back to me on it. I'm honestly suprised there's no easy way to just list all the users belonging to a group (like you can in the admincp, when showing all primary members from a usergroup....)

Well, thanks for your help. Perhaps I'll find what I'm looking for eventually....

Steve Machol
Wed 23rd Mar '05, 8:08pm
Of course you can list people oin a usergroup with a query, but that is not what you asked. You wanted to incorporate this into a template and doing this will require modifying the code.