The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#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: Quote:
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. |
#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
|
#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 |
#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:
PHP Code:
|
Благодарность от: | ||
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?
|
#6
|
||||
|
||||
You would use something more like this:
PHP Code:
|
#7
|
|||
|
|||
Brilliant, thank you. I'll give it a go now.
--------------- Added [DATE]1369237493[/DATE] at [TIME]1369237493[/TIME] --------------- 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 PHP Code:
|
#8
|
|||
|
|||
Has there been any progress on this?
Thanks |
#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.
|
#10
|
||||
|
||||
I assume it's because the figures have already been consolidated in the database.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|