The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do you add extra per-forum setting fields?
I would like to add a couple of per-forum settings that can be modified in the forum editor. I've already added the fields to the forum table. I know you have to hook forumadmin_edit_form to do this, but I'm not sure how to wire it up so that it actually loads & saves the fields from/to the forum table.
I also don't know how to get the field to show up in the $foruminfo array. I am looking at forumdisplay.php and seeing an array called $foruminfo, but when I print the contents of the array (print_r) I see a whole lot of fields - but not the two I added to the database. I looked up the datamanager documentation, and added this to the forumdata_start hook: Code:
$this->validfields['thread_title_open_tag'] = array(TYPE_NOTRIM, REQ_NO); $this->validfields['thread_title_close_tag'] = array(TYPE_NOTRIM, REQ_NO); I've spent a good deal of time searching for this info, and I've found a few useful pieces of information, but feel like there must be some kind of "starting point" that I'm missing. Is there some kind of walkthrough for doing all this? Otherwise, help on the above would be greatly appreciated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|