The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Disable post count per forum
Hello,
I'm trying to disable the post count in some forums. Is there a possibility to do that? I know it is not a feature in vB5. But, is there an add-on or a mod? Thanks! |
#2
|
||||
|
||||
in Template display_Forums_item
find Code:
<td class="posts-count"><vb:if condition="!$isSubcategory">{vb:number {vb:raw forum.posts}}</vb:if></td> Code:
<td class="posts-count"><vb:if condition="!$isSubcategory"><vb:if condition="!in_array($forum['nodeid'],array(1,2,3))">{vb:number {vb:raw forum.posts}}</vb:if></vb:if></td> you can do the same thing with topics count in the same template Code:
<td class="topics-count"><vb:if condition="!$isSubcategory">{vb:number {vb:raw forum.topics}}</vb:if></td> |
2 благодарности(ей) от: | ||
MarkFL, Schneeflocke |
#3
|
|||
|
|||
|
#4
|
||||
|
||||
I've tested it and it is working fine
- Make sure you put the correct node id's. - Make sure you are viewing the style you have edited ..not another one . - You may need to edit display_Forums_list if they are displayed as subforums, better to Add Template Name in HTML Comments and see what template you need to edit . Regards |
#5
|
|||
|
|||
|
#6
|
||||
|
||||
For maintenance reasons, it is better to just hide the post count via CSS rather than editing existing templates which will require you to do (or resolve merge conflicts for) every time you upgrade. You can use the forum id which is present in the HTML as the selector (in the format of #forumnodeid) to distinguish which forum's count to hide. For example:
Code:
#forum123 .posts-count, #forum456 .posts-count, #forum789 .posts-count { visibility: hidden; } |
#7
|
|||
|
|||
Okay, thanks for your help.
But, nothing works. I have CategorieIDs -100, 122, 126 and ChannelIDs - 136, 186, 119, etc. I tried the code: Code:
#forum136 .posts-count, #forum186 .posts-count, #forum119 .posts-count, #forum120 .posts-count, #forum121 .posts-count, #forum124 .posts-count, #forum125 .posts-count, #forum138 .posts-count, #forum187 .posts-count,{ visibility: hidden; } Code:
#forum100 .posts-count, #forum122 .posts-count, #forum126 .posts-count,{ visibility: hidden; } But the post continued to be counted. It is very important to hide the count. So, maybe I need a manual for ... idiots |
#8
|
||||
|
||||
You have an extra comma. The last one (187 and 126) should not have comma at the end
|
#9
|
|||
|
|||
I deleted the extra comma, nothing has changed.
|
#10
|
||||
|
||||
Can you post a link to your forum?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|