vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Field xxxx is not defined in $validfields in class vb_datamanager_user (https://vborg.vbsupport.ru/showthread.php?t=92241)

sv1cec 07-15-2005 08:21 AM

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?

Andreas 07-16-2005 12:30 AM

Quote:

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.
This is not true.

Hookname: userdata_start
PHP Code:

$this->validfields['mystrfield'] = array(TYPE_STRREQ_NO);
$this->validfields['myuintfield'] = array(TYPE_UINTREQ_NO); 


sv1cec 07-16-2005 02:55 AM

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

merk 07-16-2005 03:26 AM

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.

sv1cec 07-18-2005 09:57 AM

Thank you Sir, appreciated.

I assume you mean whatever has a class_dm_xxx.php file in the includes directory?

Thanks


All times are GMT. The time now is 11:23 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
  • Page Generation 0.02827 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete