The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi
I want to create an array called $myuser with the same structure as that of $userinfo, but for a different user... Is it as simple as $db->query_first("SELECT * FROM user WHERE userid = 123") ? The reason I want to do this, is that I want to then test this $myuser with functions such as is_member_of, etc. Thanks in advance. Simon |
|
#2
|
|||
|
|||
|
Try $myuser = $db->query_first("SELECT * FROM user WHERE userid = 123");
then your can use $myuser['username'] etc |
|
#3
|
||||
|
||||
|
PHP Code:
|
|
#4
|
|||
|
|||
|
Thank you Dismounted (again!
)EnIg The problem with that method is that it doesn't include the userfields, etc. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|