View Full Version : Creating lists based on usergroup
TeamDevotion
05-09-2007, 09:05 PM
Ok so i'm modifying a vb garage script. And since it is no longer supported and it doesn't have anything to really do with the garage, i figured i post it here.
On one page it lists everyones garage, which also displays their user ID. What im trying to do, is make two separate lists.
Such as
Group A
list all users who are part of group A
Group B
list all users who are part of group B
HMBeaty
05-09-2007, 09:07 PM
Just use the usergroups and if conditionals
TeamDevotion
05-09-2007, 09:21 PM
Do you have any example coding i can work from, the only if conditionals i know are to allow a user to see something if they are part of that user group, not how to list users who have a garage based on their user group.
For example, the code for the list is this
<td class="alt2" align="center">$count</td>
<td class="alt2"><a href="$vboptions[bburl]/vbgarage.php?do=view&id=$list[userid]">$user[username]</a></td>
<td class="alt2">$list[year] $list[make] $list[model]</td>
<td class="alt2" align="center">$list[lastactivity]</td>
Where $count = the user ID
So what i want is it to have separate lists based on the user ID and what group it belongs to.
Bump?
Any help?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.