The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
populate $myuser with same properties as $userinfo, but for a different user
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:
|