The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Here is the main query I am using.
Code:
$users = $db->query_read_slave("
SELECT user.*, usergroup.usergroupid, usergroup.title, user.options, usertextfield.*, userfield.*,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid, infractiongroupid
FROM " . TABLE_PREFIX . "usergroup AS usergroup
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.usergroupid = usergroup.usergroupid OR FIND_IN_SET(usergroup.usergroupid, user.membergroupids))
LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield ON(userfield.userid = user.userid)
LEFT JOIN " . TABLE_PREFIX . "usertextfield AS usertextfield ON(usertextfield.userid=user.userid)
");
Code:
$query = $vbulletin->db->query_read("
SELECT *
FROM " . TABLE_PREFIX . "roster
");
Any help would be appreciated. Thanks. |
|
#2
|
|||
|
|||
|
Is this what you're after?
PHP Code:
|
|
#3
|
|||
|
|||
|
Thanks Mark. I don't know what I was doing wrong on mine, but I could never get it to work. So far, it at least isn't giving the usual database error I was getting on all my tests. Now I'll try to test it out with an array.
Thanks again. So far so good. I performed a simple array and it's working. I'll do further tests this weekend. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|