Removing the Post and Thread count columns.
Removing the Post and Thread count columns.
This is what we want to achieve: http://tangelo.quickshareit.com/shar...ticledc48a.gif 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> forumhome_forumbit_level1_nopost Find Code:
<td class="thead"> $vbphrase[threads] </td> forumhome_forumbit_level1_post Find Code:
<td class="alt2"><if condition="$forum[link] != ''"> <else />$forum[threadcount]</if></td> forumhome_forumbit_level2_post Find Code:
<td class="alt1" width="80"><if condition="$forum[link] != ''"> <else />$forum[threadcount]</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 { HTML Code:
.forumcount { |
what happened to the demo link?
|
I tried to link the picture without luck. It's rewriting my link in an attempt to resize the picture I guess.
|
Quote:
|
This is a great idea... i've utilized it on my site, THANK YOU!
Question: is that site in the example link yours? It's very nicely done. If it is, may I ask you about some of the mods you have installed? |
This is an awesome idea. I just tested it out and it worked like a charm!
Thanks alot Appletalk :) |
Can someone please help me out with this hack.
I want to add this to where it says Last Post instead of the Forums so Can someone please tell me how I can do this? |
Works nicely. I found in 3.6.8 there was no code to modify in forumhome_forumbit_level1_nopost
|
How would you do this only for forum links?
|
Cool ^^
I test it, thanks |
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 |
i used it..
my forum still under construction, but looks nice if we reduce tabular clutter scattered wide.. officechai.com/testvbforum |
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?
|
thanks might try this one... ;)
|
1 Attachment(s)
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?
|
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:
|
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: |
1 Attachment(s)
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 |
Thanks
|
All times are GMT. The time now is 01:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|