The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I'm tearing my hair out on this one. I've got to be missing something.
I am adding a text field to the forum table. And, I need to have it editable in the admincp. In the past, I would simply add the field to the database and then put in the code setting up the display of the field and the variable names. It would mirror the code for the forum description, which looks like this: Code:
print_textarea_row($vbphrase['description'], 'forum[description]', $forum['description']); Code:
print_textarea_row($vbphrase['newfield'], 'forum[newfield]', $forum['newfield']); So, what in heck am I missing? I've been plowing through the code to see if the forum description or link field are instantiated in any other file, and I'm not seeing anything. Amy |
#2
|
||||
|
||||
![]() Quote:
So you find for example $forumdata =& datamanager_init('Forum', $vbulletin, ERRTYPE_CP); and add under $forumdata->validfields['crap'] = array(TYPE_UINT, REQ_NO); I think ![]() That |
#3
|
||||
|
||||
![]()
Thanks, Zach. It works.
![]() {slight diversion off topic now: } You know, when I worked in software development, we would have been fussed at if we wrote code with documentation like 3.5 beta. I don't mean manuals, I mean comments in the code. The old code had no comments, but at least it made more sense. This new stuff needs comments. It's not intuitive enough to do without them. I don't know. Maybe I'm spoiled because every manager I ever worked for made us write readable comments in the code so that any moron could pick up a file and understand what's going on. Amy |
#4
|
|||
|
|||
![]() Quote:
Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|