Quote:
Originally Posted by Xenon
Shouldn't be hard to do.
actually it works for forums as well as for categories, and the forumdisplay would be an edit of a few lines i think
|
Hi, Xenon, would you mind give some more details on what you think needs to be done to make it work for forums in forumdisplay?
I have modified forumdisplay.php to add in
PHP Code:
'$forumhome_subforum_columncell',
as well as editing template FORUMDISPLAY within forumdisplay template group, by replacing
PHP Code:
<if condition="$show['forumslist']">
<!-- sub-forum list -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">$vbphrase[subforums]<span class="normal">: $foruminfo[title]</span></td>
<if condition="$show['forumsearch']">
<td class="vbmenu_control" id="forumsearch.subforums"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]">$vbphrase[search_this_forum]</a> <script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></td>
</if>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr align="center">
<td class="thead"> </td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175" nowrap="nowrap">$vbphrase[last_post]</td>
<td class="thead" nowrap="nowrap">$vbphrase[threads]</td>
<td class="thead" nowrap="nowrap">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead" nowrap="nowrap" width="85">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
</table>
<br />
<!-- / sub-forum list -->
</if>
with the part from you code
PHP Code:
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$forum['subforumcolumns'] > 1">
<tr>
<td class="alt1" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
<table style="border: none; width: 100%;">
$childforumbits
</table>
</td>
</tr>
<else />
$childforumbits
</if>
</tbody>
</if>
But I didn't get the subforums to show in column in forumdisplay, instead, my frontpage now has all categories collapsed, and cannot even expand them.
Would mind provide some more details?
Thanks.