The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom Eval Code Support
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 |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|