![]() |
Should I extend or bypass ThreadPost DataManager?
Hello,
currently I am using the ThreadPost DataManager (DM), to create new threads from external scripts. I like that concept. Now I need to add a new field into the "thread" table, to store additional information for a new custom feature. But when I add a new field, the DM wouldn't be able to work with that newly created field (it doesn't know anything about it). What would you suggest me to do?
|
You can add fields to the DM valid list via the hook/plugin system (threaddata_start & threadfpdata_start).
Code:
$this->validfields['fieldname'] = array(TYPE_STR, REQ_NO); |
Quote:
Thanks. |
No, it is not extending the DM, it is just using it as designed. ;)
|
All times are GMT. The time now is 02:12 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|