Removing the Post and Thread count columns.
by
06 Mar 2007
Removing the Post and Thread count columns. This is what we want to achieve: You can see an example http://www.psicofxp.com/forums/ Removing the columns The different snippets of code might differ from style to style. I'm writing this basing it on my own (VBStyle's Element), but you have to pay close attention and focus on the code in bold. You'll identify the snippets quickly that way. FORUMDISPLAY Find Code:
<td class="thead"> $vbphrase[threads] </td> <td class="thead"> $vbphrase[posts] </td> forumhome_forumbit_level1_nopost Find Code:
<td class="thead"> $vbphrase[threads] </td> <td class="thead"> $vbphrase[posts] </td> forumhome_forumbit_level1_post Find Code:
<td class="alt2"><if condition="$forum[link] != ''"> <else />$forum[threadcount]</if></td> <td class="alt1"><if condition="$forum[link] != ''"> <else />$forum[replycount]</if></td> forumhome_forumbit_level2_post Find Code:
<td class="alt1" width="80"><if condition="$forum[link] != ''"> <else />$forum[threadcount]</if></td> <td class="alt2" width="80"><if condition="$forum[link] != ''"> <else />$forum[replycount]</if></td> ====================================================== Adding the counts below the forum description Now you might or might not want to display that information. If you do, keep reading. Edit the following templates forumhome_forumbit_level2_nopost Find Code:
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if> HTML Code:
<div class="smallfont forumcount"><strong>{$vbphrase[threads]}:</strong> $forum[threadcount] | <strong>{$vbphrase[posts]}:</strong> $forum[replycount]</div> Find Code:
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px">$forum[subforums]</div></if> HTML Code:
<div class="smallfont forumcount"><strong>{$vbphrase[threads]}:</strong> $forum[threadcount] | <strong>{$vbphrase[posts]}:</strong> $forum[replycount]</div> A bit of styling If you test now, maybe you feel the counts we added are not separated enough from the description and subforums. If that's your case, go to the style administration page, go to your style's "All style options" and select Main CSS. Go to the very bottom, where it says Advanced Users:. To the very bottom of the second textarea, add: HTML Code:
.forumcount { margin: 3px 0; } HTML Code:
.forumcount { margin: 3px 0; color: #333; font-size: 10px; } |
Similar Mods
Show last post, post count, and thread count for private forums on forumhome | vBulletin 3.0 Beta Releases |