vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Disable Post Count Decrease (https://vborg.vbsupport.ru/showthread.php?t=210131)

dxt-cobra 04-01-2009 10:00 PM

Disable Post Count Decrease
 
1 Attachment(s)
This should work for any version. I found an older version of this and did not see any updates, so here is something that will work for anyone.

Credits goto:
Original Maker of Disable Postcount
Author: Paul41598

Find this template
"includes/functions_databuild.php"

FIND THIS:
Code:

function delete_thread($threadid, $countposts = true, $physicaldel = true, $delinfo = NULL, $dolog = true, $threadinfo = NULL)
{
        global $vbulletin, $vbphrase;

Under This line "global $vbulletin, $vbphrase;"

ADD THIS:
$countposts = false;

FIND THIS:
Code:

function delete_post($postid, $countposts = true, $threadid = 0, $physicaldel = true, $delinfo = NULL, $dolog = true)
{
        global $vbulletin, $vbphrase, $threadinfo;

Under this line "global $vbulletin, $vbphrase, $threadinfo;"

ADD THIS:
$countposts = false;

save your file and go test!!! noone's post count should drop anymore.

MrZeropage 04-02-2009 03:28 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=121871" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=121871</a>

Jasem 04-03-2009 12:20 AM

Good work, thank you......

Installed

puertoblack2003 04-03-2009 02:12 AM

Quote:

Originally Posted by MrZeropage (Post 1782467)


last post date is april 17,2008 do we know if it works for the latest version???

FiMeTi 04-03-2009 08:51 AM

Nice idea, but I dont like those file edits at all.
Thx anyway.

@MrZeropage, can you confirm your mod working for 3.8.2? (or anyone else)

Frondy 04-04-2009 07:07 AM

Nice, it works! Thanx (installed)

c.oper 04-05-2009 12:59 AM

It works very well in 3.8.1 PL1! Thanks! Installed!

Stifmeister2 04-05-2009 06:44 PM

Quote:

Originally Posted by FiMeTi (Post 1782951)
Nice idea, but I dont like those file edits at all.
Thx anyway.

@MrZeropage, can you confirm your mod working for 3.8.2? (or anyone else)

Yep it's working.

MrZeropage 04-05-2009 06:50 PM

Yes, the "old" one is still working (otherwise I wouldn't have posted a link to it here), and I think it will work all over 3.8.x :)

MrZeropage 04-07-2009 05:06 PM

I just released an update of my older version:
https://vborg.vbsupport.ru/showthread.php?t=210570


All times are GMT. The time now is 02:11 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.01003 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)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