vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Post trimming does not decrease post count... v2.2.0 (https://vborg.vbsupport.ru/showthread.php?t=32321)

SharkY-GA 11-11-2001 02:41 AM

I know tubedog made it for 2.0.x but could someone do this for v2.2.x?

tubedogs:
https://vborg.vbsupport.ru/showthrea...threadid=12420

I just cant find it...

almightyone 11-15-2001 02:22 AM

^bump^

Barret 11-15-2001 02:12 PM

I don`t think anyone knows how to do this yet.
If you ask me, this should have been an option on the board "Vbb" to
delete posts with prune or not to.
Unfortunately, it was not. :(

squawell 11-15-2001 02:34 PM

ok~~i already do it!!

find admin/functions
PHP Code:

$posts=$DB_site->query("SELECT userid,attachmentid,postid FROM post WHERE threadid='$threadid'");
    while (
$post=$DB_site->fetch_array($posts)) {
      if (
$countposts) {
        if (!isset(
$userpostcount["$post[userid]"])) {
         
$userpostcount["$post[userid]"] = -1;
        } else {
         
$userpostcount["$post[userid]"]--;
       }
     } 

to this
PHP Code:

$posts=$DB_site->query("SELECT userid,attachmentid,postid FROM post WHERE threadid='$threadid'");
    while (
$post=$DB_site->fetch_array($posts)) {
     
// if ($countposts) {
       // if (!isset($userpostcount["$post[userid]"])) {
         // $userpostcount["$post[userid]"] = -1;
        //} else {
         // $userpostcount["$post[userid]"]--;
        //}
      //} 

i already test on vbb220 and it's work!!

Barret 11-17-2001 12:00 AM

Well thank you so very much man!
That did the trick for sure!
Great work and thanks again!!

squawell 11-17-2001 01:16 AM

Quote:

Originally posted by Barret
Well thank you so very much man!
That did the trick for sure!
Great work and thanks again!!

ur welcome~

i'm happy it work to u

almightyone 11-17-2001 02:37 AM

well i juts did this hack and it doesnt reduce on thread deletion but if i delete an individual post in a thread it drops count i posted a thread then a reply i deleted the reply it lowered by 1 i deleted the thread it didnt :confused:

squawell 11-17-2001 04:16 AM

that should be two parts~~

i only fixed one part make it can work on 203 and 220

another part u find out early post u'll find

SharkY-GA 11-17-2001 10:19 AM

Quote:

Originally posted by almightyone
well i juts did this hack and it doesnt reduce on thread deletion but if i delete an individual post in a thread it drops count i posted a thread then a reply i deleted the reply it lowered by 1 i deleted the thread it didnt :confused:
This is because their seperate peices of code... I have this done... I will post it tommorow...

CoolaShacka 12-06-2001 12:18 PM

Quote:

Originally posted by SharkY-GA (11-17-01 01:19 PM)
This is because their seperate peices of code... I have this done... I will post it tommorow...

*gg* ;)


All times are GMT. The time now is 06:34 PM.

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.01821 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (3)bbcode_quote_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