The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
Anyone know how to include a vbulletin user profile field (eg country) inside a custom Vb template. Tried things lile $user[field10] but that did not work. Thanks |
#2
|
|||
|
|||
![]()
The User profile field of the browsing user? [mincode]$bbuserinfo[field10][/minicode]
Or in a postbit then poster's would be [minicode]$post[field10][/minicode] Or on the member profile page [minicode]$userinfo[field10][/minicode] |
#3
|
|||
|
|||
![]()
$bbuserinfo[field10] does work but it is not for the actual user looking at the template but the user in the database.
I have $post[field10] in the postbit already and working. It is just in my custom template (vbclassified template) that I cannot get this field to show. I had tried $userinfo[field10]. $user[username] works though. snippet of the code - HTML Code:
<td class="alt1" width="53%> $vbphrase[posted_by]: </td> <td class="alt2"> <a href="classifieds.php?do=user&userid=$user[userid]">$user[username]</a> </td> </tr> <tr> <td class="alt1" colspan="2"> Seller Location: $userinfo[field10] </td> </tr> |
#4
|
|||
|
|||
![]()
It is a custom template on a custom page, therefore you will need to consult the authors of the custom PHP. You'd need to edit the query to fetch the custom fields, however like I said, you will need to contact the authors.
|
#5
|
|||
|
|||
![]()
ah I see thanks.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|