The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Field xxxx is not defined in $validfields in class vb_datamanager_user
Never mind, I found the answer. Every time you define a new column in the user table, you have to define it in the class_dm_user.php file as well. Anyone cares to let us know for which other tables this is true?
|
#2
|
||||
|
||||
Quote:
Hookname: userdata_start PHP Code:
|
#3
|
|||
|
|||
KirbyDE,
Thanks. So what you are saying, is that if someone defines new columns in user table, one should create a plugin, hooked at userdata_start, with the definiitions of the new columns? A couple more questions, if you would allow me: Which other tables are treated the same way? In other words, for which other tables, we should define custom columns in this way? Are the types used in this declaration described some where? INT, UINT, STR, what are the others supported? For example, I used to have STR_NOHTML in globalize function before, is this still supported? Thanks and rgds |
#4
|
|||
|
|||
All datamanagers.
You can find definitions of the things you're asking about in (i think init.php), but if you do a search for a define('TYPE youll find it. |
#5
|
|||
|
|||
Thank you Sir, appreciated.
I assume you mean whatever has a class_dm_xxx.php file in the includes directory? Thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|