The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Custom Profile Fields
Can someone tell me if vBulletin has a way to grab a specific users profile field, say field18, in php? Or if vBulletin does not have a built in function, where in the database is the value saved for the specific user?
|
#2
|
|||
|
|||
You can call fetch_userinfo() in includes/functions.php. You're not talking about the "current" user, right, because then it would already be in $vbulletin->userinfo['field18']. Also, if you need it in the postbit for that user's post, it will be in $post['field18'].
|
Благодарность от: | ||
nhawk |
#3
|
|||
|
|||
Thank you!
You just saved me a database query in a new project. |
#4
|
|||
|
|||
Cool...of course fetch_userinfo() does a query if the user's info isn't already cached. But at least you don't have to write the query.
|
#5
|
|||
|
|||
Quote:
It never dawned on me that custom fields would be in the userinfo. |
#6
|
|||
|
|||
Ah...I get it now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|