The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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). |
#2
|
||||
|
||||
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? |
#3
|
||||
|
||||
*bump*
|
#4
|
||||
|
||||
the query looks good for profile fields and to get homepage etc. you have to look in the user table(im using vb3)
|
#5
|
||||
|
||||
i can't even get the query to work in php my admin
|
#6
|
||||
|
||||
why not just use the fetch_userinfo() function of vb3?
|
#7
|
||||
|
||||
cos i didn't know it existed
how would i go about using the fetch_userinfo() based on a static userid i.e. fetch_userinfo(userid = $juserid, field24)? |
#8
|
||||
|
||||
hmm, what i did was something like this when i need it:
PHP Code:
|
#9
|
||||
|
||||
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]? |
#10
|
||||
|
||||
exactly like that.
the userinfo looks like the bbuserinfo array |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|