![]() |
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.?
|
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. |
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:
|
It's something about cache, because if you put $cache var to true in the function fetch_foruminfo (functions.php) works fine.
|
Do you realize you replied to a 9 year old thread?
|
All times are GMT. The time now is 06:36 PM. |
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:
|