The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Foruminfo array
How does this foruminfo array get populated. I added a new table to the forum table. But $foruminfo[categoryid] doesn't return anything. Do i have to edit the select sql stmt that populates this array. If so which file should i look for, to populate my new field in to this array.?
|
#2
|
|||
|
|||
You added a new table? or do you mean field?
You will need to use some PHP code to enable you to customise the data in this field. Possibly using plugins with the "forumadmin_edit_form" and "forumadmin_update_save" hooks. |
#3
|
||||
|
||||
You meant a new column in the forum table.
Well, the $foruminfo array is populated in the /global.php file which calls the fetch_foruminfo function (located in the /includes/functions.php) to execute the sql query below, so i believe there shouldn't be a problem loading the new custom columns. global.php is called at the very beginning of almost each file that has an output. PHP Code:
|
#4
|
|||
|
|||
It's something about cache, because if you put $cache var to true in the function fetch_foruminfo (functions.php) works fine.
|
Благодарность от: | ||
blind-eddie |
#5
|
||||
|
||||
Do you realize you replied to a 9 year old thread?
|
Благодарность от: | ||
blind-eddie |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|