The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
datamanager question
So, I'm trying to add a new thread via a plugin I wrote:
$threadman =& datamanager_init('Thread', $vbulletin, ERRTYPE_STANDARD, 'threadpost'); $threadman->set_existing($threadinfo); $threadman->set('pollid', $pollid); $threadman->save(); It works just fine, creating the thread where it is supposed to be created. I've added a new column called "ent_attach" in the thread table and need to set its value to 1 via the above plugin. I tried doing$threadman->setr('ent_attach', 1); as well as $threadman->set('ent_attach', 1); but it's not working. Anything I'm missing? --------------- Added [DATE]1257674386[/DATE] at [TIME]1257674386[/TIME] --------------- Ok I added this: $this->validfields['ent_attach'] = array(TYPE_INT, REQ_NO); via threaddata_start plugin. It is still not working tho. Am I missing something? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|