The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with Code
I am wanting to display a profile field in the user.php file in the admincp directory.
Currently the code to pull the data from the table is Code:
$users = $db->query_read(" SELECT userid, username, email, ipaddress FROM " . TABLE_PREFIX . "user WHERE usergroupid = 4 ORDER BY username "); Thanks. |
#2
|
||||
|
||||
Code:
$users = $db->query_read(" SELECT user.userid, user.username, user.email, user.ipaddress,userfield.* FROM " . TABLE_PREFIX . "user as user LEFT JOIN ".TABLE_PREFIX."userfield ON user.userid=userfield.userid WHERE usergroupid = 4 ORDER BY username "); |
#3
|
|||
|
|||
Thanks.
Worked like a charm. |
#4
|
||||
|
||||
No problem.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|