![]() |
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! |
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> |
is not working .... :confused:
Step 1: [IMG]http://fs5.directupload.net/images/1...p/2fpnmdzv.jpg[/IMG] Step 2: [IMG]http://fs5.directupload.net/images/1...p/rqzow28i.jpg[/IMG] Step 3: [IMG]http://fs5.directupload.net/images/1...p/4hw5rtqz.jpg[/IMG] Step 4: [IMG]http://fs5.directupload.net/images/1...p/zrmz8je2.jpg[/IMG] |
I've tested it and it is working fine
https://vborg.vbsupport.ru/external/2016/05/12.jpg - 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 |
I like to disable post count per channel!!!! Sorry, i was wrong.
[IMG]http://fs5.directupload.net/images/1...p/qewsvqnf.jpg[/IMG] Is there a possibility to do that? |
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, |
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, Code:
#forum100 .posts-count, But the post continued to be counted. It is very important to hide the count. So, maybe I need a manual for ... idiots |
You have an extra comma. The last one (187 and 126) should not have comma at the end
|
I deleted the extra comma, nothing has changed.
:confused: |
Can you post a link to your forum?
|
All times are GMT. The time now is 03:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|