Niomi
New Member
Posts: 77
inherit
187400
0
Aug 4, 2016 20:29:11 GMT -8
Niomi
77
December 2012
niomi
|
Post by Niomi on Mar 18, 2016 11:55:05 GMT -8
Hi,
Apologies if this isn't the right section (feel free to move it) but I was wondering if there was a code available that doesn't remove the post count from accumulating on a members profile, but instead prevents it from accumulating the site's total post count. I have a lot of members who like to work on templates on an extra board and I know I can disable them from gaining post counts but I was wondering if it's possible to prevent the board from contributing to the total post count of the site.
I hope that makes sense, thanks in advance.
|
|
inherit
58740
0
Aug 20, 2024 7:29:21 GMT -8
®i©hie
I'm not very active here anymore thanks to my full-time job. - 12/27/23
14,036
September 2005
soe
|
Post by ®i©hie on Mar 18, 2016 15:11:48 GMT -8
Hi, Apologies if this isn't the right section (feel free to move it) but I was wondering if there was a code available that doesn't remove the post count from accumulating on a members profile, but instead prevents it from accumulating the site's total post count. I have a lot of members who like to work on templates on an extra board and I know I can disable them from gaining post counts but I was wondering if it's possible to prevent the board from contributing to the total post count of the site. I hope that makes sense, thanks in advance. Hi Niomi, I assume you want the "Total Posts" in the info center to reflect the post total minus the "extra board" you have. if so: Go To: Admin >> Themes >> Layout Templates >> Homefind this: Total Posts: $[total_posts] and replace it with this: <script type="text/javascript"> <!-- document.write('Total Posts: '+Math.round($[total_posts]-{foreach $[category]}{foreach $[category.board]}{if $[category.board.id]==" 11"}$[category.board.posts]{/if}{/foreach}{/foreach})+''); --> </script> edit the BOLD with the board id who's posts you wish to exclude, to find the board id look at the url of the board and put the number that comes after "/board/", like this board: support.proboards.com/board/45/templatesthe board id is " 45"
|
|
Niomi
New Member
Posts: 77
inherit
187400
0
Aug 4, 2016 20:29:11 GMT -8
Niomi
77
December 2012
niomi
|
Post by Niomi on Mar 18, 2016 18:00:17 GMT -8
|
|
inherit
58740
0
Aug 20, 2024 7:29:21 GMT -8
®i©hie
I'm not very active here anymore thanks to my full-time job. - 12/27/23
14,036
September 2005
soe
|
Post by ®i©hie on Mar 18, 2016 18:02:08 GMT -8
|
|
Niomi
New Member
Posts: 77
inherit
187400
0
Aug 4, 2016 20:29:11 GMT -8
Niomi
77
December 2012
niomi
|
Post by Niomi on Sept 28, 2016 5:41:58 GMT -8
®i©hieYou made this wonderful code for me way back, I was wondering if it was possible to add multiple IDs to do the same thing?
|
|
Kami
Forum Cat
Posts: 40,199
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,199
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Oct 3, 2016 19:53:27 GMT -8
If you still need this, give this modification a go:
<script type="text/javascript"> <!-- document.write('Total Posts: '+Math.round($[total_posts]-{foreach $[category]}{foreach $[category.board]}{if $[category.board.id] =="11" || $[category.board.id.] == "newid"}$[category.board.posts]{/if}{/foreach}{/foreach})+''); --> </script>
the || $[category.board.id] == "newid" should work; make sure to put a space between the last ID and the ||. Repeat as needed. (:
|
|
Niomi
New Member
Posts: 77
inherit
187400
0
Aug 4, 2016 20:29:11 GMT -8
Niomi
77
December 2012
niomi
|
Post by Niomi on Oct 4, 2016 4:55:09 GMT -8
|
|
inherit
223470
0
Feb 27, 2019 17:05:53 GMT -8
₪» ⅀ ƪ Ƒ «₪
Original registration date: 2007. DeviantART: http://deviantart.com/ruanly. Discord: Ruanly#7946.
1,281
July 2015
fajita
|
Post by ₪» ⅀ ƪ Ƒ «₪ on Aug 22, 2018 11:01:03 GMT -8
®i©hiewould you perhaps be able to assist me in figuring out why the code isn't working for me? It looks like simply nothing is showing up when I enter it into my Home layout template. I have this for the thread total: <script type="text/javascript"> document.write('Threads: '+Math.round($[total_threads]-{foreach $[category]}{foreach $[category.board]}{if $[category.board.id] =="152" || $[category.board.id.] == "154" || $[category.board.id.] == "85" || $[category.board.id.] == "105"}$[category.board.threads]{/if}{/foreach}{/foreach})+''); </script> And this for the post total: <script type="text/javascript"> <!-- document.write('Posts: '+Math.round($[total_posts]-{foreach $[category]}{foreach $[category.board]}{if $[category.board.id] =="152" || $[category.board.id.] == "154" || $[category.board.id.] == "85" || $[category.board.id.] == "105"}$[category.board.posts]{/if}{/foreach}{/foreach})+''); --> </script> I tried removing the <!-- and --> but that didn't work. Any clue what I did wrong?
|
|