The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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?
|
#2
|
||||
|
||||
![]()
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); |
#3
|
|||
|
|||
![]() Quote:
![]() Thanks. |
#4
|
|||
|
|||
![]()
No, it is not extending the DM, it is just using it as designed.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|