![]() |
Display a field value from user table
hi all,
I have added a column (fieldx) to the user table. The values are populated by an external script. What do I have to do in order to display this value (fieldx) in VB templates. Thanks |
You need to make sure you call userfield.* in the .php file. You would do that in the same array you are calling for other user info. The array would look similiar to this.
Code:
$users = $db->query_read_slave(" Code:
while ($userinfo = $vbulletin->db->fetch_array($users)) In your template, you would put $userinfo['fieldX'] where you want to display the data. Take a look at the code I have for my Showroster Hack if you want more idea's on this. I'm using a lot of extra fields in that. Good luck. |
All times are GMT. The time now is 12:02 AM. |
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:
|