![]() |
|
Thread Tools |
#1
|
||||||||
|
||||||||
Ignoring private forum's post/thread count in statistics
Hello,
I've used phpBB for some time now and have some code (which I now don't use as an actual modification has replaced it) which makes my private forum's post and topic count get ignored in the forum's overall statistics on the index page. This is the code I was using for phpBB, I don't know if it'll be any use here at all:
I have some private forums (my staff forums at the moment) and the post and thread count from those forums is being counted in the overall statistics. This isn't so bad for boards with hundreds of thousands of posts because it isn't really noticeable, but for a forum which is only just launching people are going to ask where all of these extra posts are!! Thank you. No members have liked this post.
|
#2
|
|||
|
|||
If I understand correctly you just want to reduce your post count by the number of old posts. I see you can edit post counts in the user manager. As long as you don't rebuild the post count in the maintenance part it should just count up from whatever number you edit in
No members have liked this post.
|
#3
|
|||
|
|||
Hello,
No, I'm wanting to have the board index's statistics update to ignore the private forums. At the bottom of every forum you've got the <Board Name> Statistics. "Threads x Posts xx Members x Active Members x Welcome to our newest member," When you create a private forum (one that only selected members can see) you can set it so their posts do not count towards their post count. What I want is that their posts do not count towards the site statistics. I hope that's clearer ![]() No members have liked this post.
|
#4
|
||||
|
||||
The $totalthreads and $totalposts is totalled up around line 620 of the forum.php file. So, it's probably easier to just not add in the $totalthreads and $totalposts from that forum. Put a condition around the lines like this:
Change xx to the forum you don't want to include in the thread/post count.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) The following members like this post: tbworld
|
#5
|
|||
|
|||
Fantastic, thank you. And if I were to include multiple forums would it simply be a case of putting a comma ',' between forum ID's?
No members have liked this post.
|
#6
|
||||
|
||||
You would use something more like this:
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#7
|
||||
|
||||
Brilliant, thank you. I'll give it a go now.
--------------- Added 22 May 2013 at 16:44 --------------- Hmm, it doesn't seem to have worked. I've refreshed the statistics, post counts and topic counts as well as cleared the system cache but no changes. This is what I've got line 618 - 628 of root/forum.php
No members have liked this post.
Last edited by Cable_Player; 22 May 2013 at 17:53. |
#8
|
|||
|
|||
Has there been any progress on this?
Thanks No members have liked this post.
|
#9
|
||||
|
||||
I put that exact code (only different forumids) into the forum.php file on my test site and it changed the stats on the forum.php page.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#10
|
||||
|
||||
I assume it's because the figures have already been consolidated in the database.
__________________
Kind regards, Simon Microsoft Office Help My Mods: Find my modifications here Please do not pm me for support unless i have invited you to! No members have liked this post.
|
#11
|
|||
|
|||
I've double checked my edits but it won't update the stats unfortunately. Even after new posts are made in the forums I've listed to be ignored, the stats continue to update as normal.
No members have liked this post.
|
#12
|
||||
|
||||
The stats under where it says Site Statistics? And you added in the forumids for the child forums, not just the parent forum?
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#13
|
|||
|
|||
Yep, those statistics. I placed the category ID and all forum ID's within that category in the code.
No members have liked this post.
|
#14
|
||||
|
||||
I honestly don't know why it wouldn't work for you as it works just fine on my test site with no modifications.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) No members have liked this post.
|
#15
|
|||
|
|||
I'll have a closer look, I might be able to spot if any modifications are getting in the way. Thank you for your help
![]() --------------- Added 30 May 2013 at 11:45 --------------- Hello again, What I've done is removed the private forum ID's and replaced them with forums I do wish to have shown in the statistics - this has now worked, the private forums are now excluded. I think I may have just misunderstood the instruction. So, the forum ID's I need to enter are the forums I do want to be counted for the statistics, is it possible to change it so that the ID's I enter are the forums I do not wish to be counted for the statistics? I'm going to have a lot more public forums than I would private forums if you understand what I mean. Thanks No members have liked this post.
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Show last post, post count, and thread count for private forums on forumhome | Steve St.Lauren | vBulletin 3.0 Beta Releases | 0 | 15 Jul 2004 10:45 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 20:23.