Brother Malachi
11-08-2009, 05:59 AM
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 1257674386 at 1257674386 ---------------
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?
$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 1257674386 at 1257674386 ---------------
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?