The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Removing the Post and Thread count columns.
Removing the Post and Thread count columns. This is what we want to achieve: You can see an example here 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; } |
#12
|
|||
|
|||
Removing the Post and Thread count columns.
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 PHP Code:
Found nothing. 3.7.0 search this instead. (without the "<!- ->" of course) PHP Code:
Find PHP Code:
Found nothing. Did not change . . . forumhome_forumbit_level1_post Find PHP Code:
Search this instead: PHP Code:
Find PHP Code:
Same. Search this instead: PHP Code:
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 PHP Code:
HTML Code:
<div id="pcnts" class="smallfont forumcount"><strong>{$vbphrase[threads]}:</strong> $forum[threadcount] | <strong>{$vbphrase[posts]}:</strong> $forum[replycount]</div> Find PHP Code:
HTML Code:
<div id="pcnts" class="smallfont forumcount"><strong>{$vbphrase[threads]}:</strong> $forum[threadcount] | <strong>{$vbphrase[posts]}:</strong> $forum[replycount]</div> As far as styling goes I liked what appletalk did but made one minor adjustment as far as positioning was concerned. Note div "id="pcnts"" added which allows you to move both count fields as one and then the following CSS: PHP Code:
Wabbit |
#13
|
||||
|
||||
i used it..
my forum still under construction, but looks nice if we reduce tabular clutter scattered wide.. officechai.com/testvbforum |
#14
|
|||
|
|||
i took out the status icon column as well..anyways that i can add a condition or anything next to the forum name so it will show members if there are new posts or not?
|
#15
|
||||
|
||||
thanks might try this one...
|
#16
|
||||
|
||||
I am trying to implement this on a 3.8.3 forum. Everything worked except as shown below. Any idea how I can remove the entire columns and not just the contents that were inside?
|
#17
|
|||
|
|||
Yes Mrs Winters,
On forumhome template comment out or delete the following code: (Should you wish to remove from forumhome) PHP Code:
and on forumdisplay template comment out or delete the following code: (Should you wish to remove from forumdisplay) PHP Code:
|
#18
|
||||
|
||||
This is great work and helped me out a lot!
This is especially useful for those styles that are fixed and need to eliminate as much wasted space as possible. Fantastic job of explaining things clearly and specifically enough for a newbie! Thanks! :up: |
#19
|
||||
|
||||
I just added the vBsponsors mod and the forum name and post counts are to the top of the space as opposed to centered top to bottom.
How do I get the info to align vertically in the middle? See attachment for example |
#20
|
|||
|
|||
Thanks
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|