vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Increase Post Count (https://vborg.vbsupport.ru/showthread.php?t=188618)

danielc2384 08-20-2008 03:34 AM

Increase Post Count
 
Recently one of the moderators on my forum physically deleted hundreds of threads instead of just moving them to our hidden archive.

Is it possible at all to some how increase the forums post count by lets say 400 posts? I haven't seen a modification for it.

Dismounted 08-20-2008 06:16 AM

Possible - but not very useful IMO.

danielc2384 08-20-2008 06:29 AM

Any idea where I should go or ask for help?

Lynne 08-20-2008 04:02 PM

It isn't something you can just do in the Admin CP. You would have to actually query the database or similar.

danielc2384 08-21-2008 03:06 AM

Ah. Dang. Oh well. Thanks anyway.

danielc2384 08-28-2008 04:43 PM

I think I found a way to do it.

I need to run this query.


UPDATE forum SET replycount=999 WHERE forumid=1;

Only problem is this error
Code:

Error

SQL query:

UPDATE forum SET threadcount =999 WHERE forumid =1

MySQL said: Documentation
#1146 - Table 'evane1_vbulletin.forum' doesn't exist

Any idea how I can fix it?

Brad 08-28-2008 04:46 PM

You need to include the table prefix which is usually something like "forum_" or "vB3_". Check the file config.php, your prefix is listed/set in there.

So you'd want to modify the query like so:

[SQL]UPDATE prefix_forum SET threadcount = 999 WHERE forumid = 1[/SQL]

danielc2384 08-28-2008 04:52 PM

^ Thanks! worked great :)

I actually managed to revive the lost threads anyway :)


All times are GMT. The time now is 10:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00939 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete