The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
display custom database field
I have a custom field in my database. It is 'ad_id' and it is in the 'user' table.
How can I display this in the postbit template? I don't think I can use regular PHP in that template. Thanks |
#2
|
||||
|
||||
Have you tried just using the variable $post['ad_id'] in the template?
|
#3
|
|||
|
|||
Thanks Lynne, but yes I tried that and it puts out nothing.
|
#4
|
||||
|
||||
Hmmm, well, if you look at the query, it grabs user.*, so that field should be there for use. I do something similar on my site - I have a couple of custom fields in the user table and I just put them into the postbit using the format I just said to use.
Are you sure you are adding it to the correct template (postbit or postbit_legacy)? |
#5
|
|||
|
|||
Yes it is postbit. Thanks.
|
#6
|
||||
|
||||
So you have the correct template, but it isn't showing up. Can you show us exactly what you added to the template? Also, are you positive there is data in the custom field in the user table? And that you didn't add an extra space before the name of the field when you created it?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|