PDA

View Full Version : Adding fields to thread table/templates & editing


krela
11-13-2005, 08:49 PM
Hi there,

I've added some new fields to my thread table and the input form and postbits now work great using hooks in the relevant places.

My problem comes when I try and add these fields to the edit form and get that working, I cannot figure out where to put the validator info so I just get

Fatal error: Field whereloc is not defined in $validfields in class vb_datamanager_user in /includes/class_dm.php on line 485

type errors.

So which hook do I add the validators into as I can't figure it out.

I've added a plugin for editpost_update_process adding the fields to the datamon, and a plugin for editpost_update_start to add them to the gpc and $edit arrays, is there anything else I'm missing apart from the field validation?

Many thanks for any help,

Ben.