The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hello guys
im looking for support similar to a custom eval code from below PHP Code:
is their a way to show a list of users from the following usergroups administrators,Super Moderators, Moderators |
|
#2
|
|||
|
|||
|
You could try this:
Code:
select:eval
global $vbulletin;
$result = $vbulletin->db->query_read_slave("SELECT username, userid, usergroupid FROM " . TABLE_PREFIX . "user WHERE usergroupid IN(5, 6, 7) ORDER BY usergroupid");
$options = array();
while ($row = $vbulletin->db->fetch_array($result))
{
$options[$row['userid']] = htmlspecialchars_uni($row['username']);
}
|
|
#3
|
|||
|
|||
|
Quote:
i'll give it a try --------------- Added [DATE]1351781773[/DATE] at [TIME]1351781773[/TIME] --------------- kh99 it works ![]() all i have to do now is test this with what i need it for
|
![]() |
|
|