Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin Tips & Tricks
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Removing the Post and Thread count columns.
Appletalk
Join Date: Mar 2007
Posts: 3

 

Show Printable Version Email this Page Subscription
Appletalk Appletalk is offline 03-05-2007, 10:00 PM

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">&nbsp;&nbsp;&nbsp;$vbphrase[threads]&nbsp;&nbsp;&nbsp;</td>
<td class="thead">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$vbphrase[posts]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
Comment it or remove it. (How to comment? wrap the code between <!-- and -->)

forumhome_forumbit_level1_nopost

Find
Code:
<td class="thead">&nbsp;&nbsp;&nbsp;$vbphrase[threads]&nbsp;&nbsp;&nbsp;</td>
<td class="thead">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$vbphrase[posts]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
Comment it or remove it.

forumhome_forumbit_level1_post

Find
Code:
<td class="alt2"><if condition="$forum[link] != ''">&nbsp;<else />$forum[threadcount]</if></td>
<td class="alt1"><if condition="$forum[link] != ''">&nbsp;<else />$forum[replycount]</if></td>
Comment it or remove it.

forumhome_forumbit_level2_post

Find

Code:
<td class="alt1" width="80"><if condition="$forum[link] != ''">&nbsp;<else />$forum[threadcount]</if></td>
<td class="alt2" width="80"><if condition="$forum[link] != ''">&nbsp;<else />$forum[replycount]</if></td>
Comment it or remove it.

================================================== ====
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>
Add below:

HTML Code:
<div class="smallfont forumcount"><strong>{$vbphrase[threads]}:</strong> $forum[threadcount] | <strong>{$vbphrase[posts]}:</strong> $forum[replycount]</div>
forumhome_forumbit_level2_post

Find
Code:
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px">$forum[subforums]</div></if>
Add above:

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;
}
You might want to change the font styling, colors, etc. You can do that there. For example

HTML Code:
.forumcount {
 margin: 3px 0;
 color: #333;
 font-size: 10px;
}
Post any questions here. You can even post your style's template content if you're confused as to where to edit or add code.
Reply With Quote
  #2  
Old 03-06-2007, 01:55 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what happened to the demo link?
Reply With Quote
  #3  
Old 03-06-2007, 02:39 PM
Appletalk Appletalk is offline
 
Join Date: Mar 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to link the picture without luck. It's rewriting my link in an attempt to resize the picture I guess.
Reply With Quote
  #4  
Old 03-06-2007, 03:16 PM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Appletalk View Post
I tried to link the picture without luck. It's rewriting my link in an attempt to resize the picture I guess.
How about just re-adding the link?
Reply With Quote
  #5  
Old 03-25-2007, 11:33 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #6  
Old 03-31-2007, 03:31 AM
WhyDoesItMatter WhyDoesItMatter is offline
 
Join Date: Mar 2006
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is an awesome idea. I just tested it out and it worked like a charm!

Thanks alot Appletalk
Reply With Quote
  #7  
Old 05-03-2007, 10:41 AM
JamieLee2k's Avatar
JamieLee2k JamieLee2k is offline
 
Join Date: Sep 2006
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 03-01-2008, 07:47 PM
helldorado helldorado is offline
 
Join Date: Feb 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works nicely. I found in 3.6.8 there was no code to modify in forumhome_forumbit_level1_nopost
Reply With Quote
  #9  
Old 06-01-2008, 01:13 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would you do this only for forum links?
Reply With Quote
  #10  
Old 06-12-2008, 11:30 AM
cassis2k cassis2k is offline
 
Join Date: Mar 2005
Location: Paris
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool ^^
I test it, thanks
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04572 seconds
  • Memory Usage 2,315KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (4)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete