![]() |
user data
sorry for this, i've lost all confidence and knowledge in matters of coding for the night, so again i'm sorry for bothering you all.
but how would i select the data from the user table and userfield table as an array so i could call some of the data i.e. Age Location Occupation then some of the custom user profile fields this is for a page powered by vBulletin but not a standard file (i.e. my own one). |
PHP Code:
HTML Code:
$profile_info['field14'] i think is the query (still not good with these left joins and how do i get the age and website/homepage? |
*bump*
|
the query looks good for profile fields and to get homepage etc. you have to look in the user table(im using vb3)
|
i can't even get the query to work in php my admin :(
|
why not just use the fetch_userinfo() function of vb3? :)
|
cos i didn't know it existed :o
how would i go about using the fetch_userinfo() based on a static userid i.e. fetch_userinfo(userid = $juserid, field24)? |
hmm, what i did was something like this when i need it:
PHP Code:
|
sorry to be a pain, just trying to grasp this still
ok so i would apply the above to the file (in php format) but how would i call the information in the templates? $userinfo[fieldXX]? |
exactly like that.
the userinfo looks like the bbuserinfo array :) |
All times are GMT. The time now is 08:16 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|