Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 02-13-2003, 12:16 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Exclude forum from threads & posts total

Ok, first off I *know* this has to be posted somewhere else.. but I have been searching for like an hour now with no luck. I have found some close ones - like how to not count replies for users etc... but nothing like this. (I have even seen other requests)

I have a forum that gets crap posted in it and just do not want it to go toward the total posts or threads count (not just the user, but the total for the entire system)

I have a feeling it is going to be one of those things where you find where the total is increased and put a != forum# type thing.. but I'm not ready to go messing with that on my own as I'm not 100% where, when, how.

Once again, I apologize if this has already been posted. If you want to just post a link that is fine. I'll even take public ridicule.. I just can't stand searching anymore
Reply With Quote
  #2  
Old 02-13-2003, 04:49 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well you can stop it from adding to the number of your users post count by setting the last option in the forum options to no (Count posts made in this forum towards user post counts?).
To not show threads in that forum in the total threads for the board, open your forum/index.php file and look for:
PHP Code:
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread'); 
Replace that with:
PHP Code:
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread WHERE forumid!=XX'); 
(Obviously replace XX with your forumid)

The posts part would be a little more tricky and (unless I'm missing something) would add at least an extra query or 2 to your index page. If you still want to do it despite the extra queries let me know and I'll post instructions after I get home, assuming someone else doesn't beat me to it.
Reply With Quote
  #3  
Old 02-13-2003, 06:34 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent, thanks.. and yea, if you could post that other part I'd really appreciate it. At least for now I'm not too concerned about the queries - I will most likely find a way around this eventually.. but while we're testing I'd like to have that stuff not counted.

Thanks so very much!!

:laugh:
Reply With Quote
  #4  
Old 02-13-2003, 08:49 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or... to save queries, I wonder if there is a way to not count posts from certain forums when the actual count is made... I don't know enough yet where to look, but I'd think there are a few places where these counts are incremented - I could just have it not increment and it would always count it as 0...

Perhaps this would be similar to how you can already set it to not count users posts in a forum, just not count forum posts in a forum.. (if that makes sense) :knockedout:

?
Reply With Quote
  #5  
Old 02-22-2003, 10:08 AM
Domenico Domenico is offline
 
Join Date: Oct 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I als don't want new posts in some forums counted in new threads and new posts.

How?
Reply With Quote
  #6  
Old 03-08-2003, 07:17 PM
gopherhockey's Avatar
gopherhockey gopherhockey is offline
 
Join Date: Jul 2002
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump - still looking for a way to get a forum to NOT count in the new posts total when a user visits a site.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 03:26 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03952 seconds
  • Memory Usage 2,210KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete