View Full Version : Added extra field to 'user' table, can't get variable to show on 'memberinfo' templat
criscokid
08-27-2007, 09:26 AM
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.
Andreas
08-27-2007, 09:34 AM
$userinfo[whatever]
criscokid
08-27-2007, 09:37 AM
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?
Andreas
08-27-2007, 09:49 AM
It is being read automatically.
criscokid
09-01-2007, 06:21 PM
How do I go about this if the table I want to query is in a different database?
Paul M
09-01-2007, 09:33 PM
Do you really mean a different database, or just a different table ?
criscokid
09-02-2007, 05:35 AM
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).
Dismounted
09-02-2007, 07:23 AM
You'll have to query the database in a plugin.
Paul M
09-02-2007, 09:23 AM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.