The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Added extra field to 'user' table, can't get variable to show on 'memberinfo' templat
I've added an extra database field to the 'user' table that I'd like to use on the 'memberinfo' template but I just can't get the variable to display. I suspect I'm either going about it the wrong way or using the wrong variable.
|
#2
|
||||
|
||||
$userinfo[whatever]
|
#3
|
|||
|
|||
Do I need to create a plugin or anything to tell vB to read that value from the databse for that user or does it automatically retreive all fields in the 'user'table when showing the 'memberinfo' template for a user?
|
#4
|
||||
|
||||
It is being read automatically.
|
#5
|
|||
|
|||
How do I go about this if the table I want to query is in a different database?
|
#6
|
||||
|
||||
Do you really mean a different database, or just a different table ?
|
#7
|
|||
|
|||
A different table (it was originally going to be a different database but giving my idea more thought I think the best way forward is to create an extra tables in the forum database rather than a seperate database).
|
#8
|
||||
|
||||
You'll have to query the database in a plugin.
|
#9
|
||||
|
||||
There is little point in creating a new table unless you are adding a lot of fields, your original post seemed to suggest just one, you could simply add that to the user table, the usertextfield table, or even just create a custom userfield via the ACP.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|