Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2009, 07:48 PM
mike01166 mike01166 is offline
 
Join Date: Jan 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "Tricking" the data base [ Threads / Posts ]

Here is what I am trying to do. My club had a forum for 3+ Years on a free forum called proboards. There was no way of us obtaining a database from proboards that we could import into Vbulletin.

So we bought webhosting and vbulletin, and are setting up or new forum exactly the same as our old forum. One thing we have been doing is updating members post counts and join dates to reflect old post counts and join dates. Something I was trying to do was update the new vbulletins thread/post count that appears on the bottom of the forum.

What I tried doing was going into PHP Myadmin and went to the "forum" table and editing replycount and threadcount to match our old forums. It worked, after it all was done, we had our original thread/ post count from our old forum.

Whenever we started a new thread on the new forum, it would just add one more thread/post to the overall count, BUT , if ANY threads get deleted, it RE-tallies the overall posts and lowers it to reflect the actual number of threads/posts. Is there anyway we could make it so that this does not happen.

Thanks in advance. Mike.
Reply With Quote
  #2  
Old 01-27-2009, 08:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It should no re-tally the post count - standard vbulletin will not do that unless you go and Update the Counters. Just removing a post or thread will not cause it to re-tally the post count.
Reply With Quote
  #3  
Old 01-27-2009, 08:08 PM
mike01166 mike01166 is offline
 
Join Date: Jan 2009
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is a link to my forum

http://174.132.165.188/~siswill/forums/index.php

If you look at the for sale section, for instance. 1,081 threads, 8,648 posts. If you go into the for sale section, there is just one thread. If I post another thread and delete it, or even delete the one thread , the forum goes from 1,081 threads, and 8648 posts, and re-tallies its self.

This does not affect actual user post count, just the forums thread/post counter.
Reply With Quote
  #4  
Old 01-27-2009, 08:28 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, for some reason I thought you were talking about user post counts - my bad.

I am pretty sure you can't do what you want here with default vb software. The replycount and threadcount is all stored in the cache. I suppose you could write some plugin that acts between when it gets the count and when it spits it out and adds a certain amount of threads/replies to it then depending on the forumid. I'm really not sure what else you can do. I'm also not sure of all the places you would need to do this.

edit: There is some modification that is called something like "Fake Forum Statistics". Maybe that will do what you want.
Reply With Quote
Reply


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 09:22 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.04448 seconds
  • Memory Usage 2,183KB
  • Queries Executed 11 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)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_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