
Re: Mod Subforum Form List?????
All I can say is that : 1st step :
SQL : ALTER TABLE ip_forums ADD forum_subforumslist_type TINYINT(4) DEFAULT '0';
Open: templates/common/
ACP/forum_extend_edit_body.tpl
Find :
Quote:
<tr>
<td class="row1"><span class="genmed"><b>{L_DESC}</b></span></td>
<td class="row2"><span class="genmed"> <textarea name="desc" rows="5" cols="60" class="post">{DESC}</textarea></span></td>
</tr>
After, add :
Quote:
<tr>
<td class="row1"><label for="subforumslist_type">{L_SUBFORUMSLIST_TYPE}:</label><br /><span>{L_SUBFORUMSLIST_TYPE_EXPLAIN}</span></td>
<td class="row2"><input type="text" id="subforumslist_type" name="subforumslist_type" value="{SUBFORUMSLIST_TYPE}" size="4" maxlength="4" /></td>
</tr>
For the 2nd step, you have to open includes/functions_categories_hierarchy.php and adapt around it I think :
Quote:
// display sub-levels
if (!empty($tree['sub'][$cur]))
{
for ($i = 0; $i < sizeof($tree['sub'][$cur]); $i++) if (!empty($keys['keys'][$tree['sub'][$cur][$i]]))
{
$wdisplay = build_index($tree['sub'][$cur][$i], $cat_break, $forum_moderators, $level + 1, $max_level, $keys);
if ($wdisplay)
{
$display = true;
}
}
}
if ($level >= 0)
{
// forum footer row
if ($tree['type'][$CH_this] == POST_FORUM_URL)
{
}
}
if ($level >= 0)
{
// cat footer
if (($tree['type'][$CH_this] == POST_CAT_URL) && $pull_down)
{
$template->assign_block_vars('catrow', array());
$template->assign_block_vars('catrow.catfoot', array('INC_SPAN' => $max_level - $level + 5));
// add indentation to the display
for ($k = 1; $k <= $level; $k++)
{
$template->assign_block_vars('catrow.catfoot.inc', array(
'INC_SPAN' => $max_level - $level + 5,
'INC_CLASS' => ($k % 2) ? $theme['td_class1'] : $theme['td_class2'],
)
);
}
}
For the last one I don't have the time to check ^^' Hope this may help you.