vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   O god please (deleting with out taking away post count) (https://vborg.vbsupport.ru/showthread.php?t=34518)

Psychdrone 01-26-2002 11:19 PM

please someone, I can't figure it out, there have a been a couple of posts, but none of them work:(

So could someone please tell me the code I would replace

THanks!

larryz 01-27-2002 03:09 AM

In admin/functions.php

Code:

FIND:

    if (is_array($userpostcount)) {
      while(list($postuserid,$subtract)=each($userpostcount)) {
        $DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
      }
    }

Code:

REPLACE WITH:

//    if (is_array($userpostcount)) {
//      while(list($postuserid,$subtract)=each($userpostcount)) {
//        $DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'");
//      }
//    }

That should take care of the problem for ya ;)

Psychdrone 01-28-2002 07:52 PM

thanks man,

Psychdrone 01-28-2002 09:44 PM

umm actually I am failing to see the difference in the codes????

what am I missing? all he did, was edit out that code??? with the //

FWC 01-28-2002 10:00 PM

That's the update query that reduces the users post count. You edit it out, the count shouldn't reduce.

Psychdrone 01-29-2002 10:57 PM

oooooo well good luck to me~

amsch 01-30-2002 01:03 PM

I was just thinking the same stuff. Now, I have a question. If i prune my boards and use this. it will not lower the counts for the user but what about total threads on the board? My database is huge over 300mb.. and I am trying to find ways to cut it down. My concerns are losing the total # of threads/posts on the main page. Also, does pruning delete attachments and reduce the search index?

Thanks for the help!

Psychdrone 02-04-2002 01:23 AM

Dammit surprisingly it did not work:(

Could some one pretty please, help me out here

I don't see what could be so hard about it, althu I don't know php that good

please help thanks!!!!

Psychdrone 02-08-2002 03:39 AM

OK I am gonna push this one, as I am sure there are a lot of people out there, that might want this, and I don't think it would be that hard........

Psychdrone 02-09-2002 07:45 PM

grrrr.............


All times are GMT. The time now is 01:37 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.01083 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete