Frosty
05-25-2011, 07:36 AM
Hey everyone,
Well basically, I'm trying to make the display of forums of a certain category same like on the forumhome.
How it looks on the forumhome:
http://i.imgur.com/XExgn.png
How it looks when you click on the forum category:
http://i.imgur.com/UhOy6.png
I guess that subforums are using forumhome_forumbit_level1_post template, but there's no code in there for the forum icons, so I can't remove them from showing up..
Thanks.
EDIT:
Forum icons are in the FORUMDISPLAY template, managed to remove them.. But I still can't change the display of subforums.
EDIT:
Yeah! Got it working...
For those who want to make their subforums same like on FORUMHOME, just do the following:
Go to:
forumhome_forumbit_level1_nopost
copy everything...
Go to:
FORUMDISPLAY
Find:
<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" nowrap="nowrap"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></if></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">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
</table>
<br />
<!-- / sub-forum list -->
</if>
Replace with the code you copied from forumhome_forumbit_level1_nopost.
Find:
$childforumbits
in the code you copied from forumhome_forumbit_level1_nopost.
Replace with:
$forumbits
Find:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
Replace with:
<a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a>
Proof of concept:
http://i.imgur.com/DSUuz.png
Enjoy!
Well basically, I'm trying to make the display of forums of a certain category same like on the forumhome.
How it looks on the forumhome:
http://i.imgur.com/XExgn.png
How it looks when you click on the forum category:
http://i.imgur.com/UhOy6.png
I guess that subforums are using forumhome_forumbit_level1_post template, but there's no code in there for the forum icons, so I can't remove them from showing up..
Thanks.
EDIT:
Forum icons are in the FORUMDISPLAY template, managed to remove them.. But I still can't change the display of subforums.
EDIT:
Yeah! Got it working...
For those who want to make their subforums same like on FORUMHOME, just do the following:
Go to:
forumhome_forumbit_level1_nopost
copy everything...
Go to:
FORUMDISPLAY
Find:
<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" nowrap="nowrap"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></if></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">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions[showmoderatorcolumn]">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>
</thead>
$forumbits
</table>
<br />
<!-- / sub-forum list -->
</if>
Replace with the code you copied from forumhome_forumbit_level1_nopost.
Find:
$childforumbits
in the code you copied from forumhome_forumbit_level1_nopost.
Replace with:
$forumbits
Find:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
Replace with:
<a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]">$foruminfo[title]</a>
Proof of concept:
http://i.imgur.com/DSUuz.png
Enjoy!