Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 May 2013, 22:02
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
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:

Open:
root/index.php

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

After, Add:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now replace "FORUM_ID, FORUM_ID2" with the correct forum ID's
I was hoping somebody could help me replicate it's effects on vB 4.2.1
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.
Reply With Quote
  #2  
Old 21 May 2013, 02:27
nerbert nerbert is offline
 
Join Date: May 2008
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
Reply With Quote
  #3  
Old 21 May 2013, 08:03
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
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
Reply With Quote
  #4  
Old 21 May 2013, 16:42
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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.)
Reply With Quote
  #5  
Old 21 May 2013, 23:08
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
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?
Reply With Quote
  #6  
Old 22 May 2013, 04:09
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You would use something more like this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
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.)
Reply With Quote
  #7  
Old 22 May 2013, 16:38
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Last edited by Cable_Player; 22 May 2013 at 17:53.
Reply With Quote
  #8  
Old 26 May 2013, 20:54
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
Has there been any progress on this?
Thanks
Reply With Quote
  #9  
Old 26 May 2013, 22:13
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.)
Reply With Quote
  #10  
Old 26 May 2013, 22:21
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Real name: Simon
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!
Reply With Quote
  #11  
Old 29 May 2013, 19:49
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
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.
Reply With Quote
  #12  
Old 29 May 2013, 22:21
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.)
Reply With Quote
  #13  
Old 30 May 2013, 00:21
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
Yep, those statistics. I placed the category ID and all forum ID's within that category in the code.
Reply With Quote
  #14  
Old 30 May 2013, 03:44
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
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.)
Reply With Quote
  #15  
Old 30 May 2013, 07:40
Cable_Player Cable_Player is offline
 
Join Date: Apr 2012
Real name: John
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
Reply With Quote
Reply

Similar Threads
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



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 02:41.

Layout Options | Width: Wide Color: