vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can I Delete Posts, but Not Post Count (https://vborg.vbsupport.ru/showthread.php?t=194717)

qubed 10-27-2008 04:02 PM

How can I Delete Posts, but Not Post Count
 
Is it possible to delete someones post but not have it affect their overall post count?

edermix 10-27-2008 04:12 PM

open file archive:

includes/functions_databuild.php

search code:

PHP Code:

function delete_post($postid$countposts true$threadid 0$physicaldel true$delinfo NULL$dolog true)



Add this line below:

PHP Code:

$countposts false

search code:

PHP Code:

function delete_thread($threadid$countposts true$physicaldel true$delinfo NULL$dolog true$threadinfo NULL)



Add this line below:

PHP Code:

$countposts false

Font: http://www.vb-brasil.org/forums/vb-d...-de-posts.html

qubed 10-27-2008 04:31 PM

edermix

am i only adding the code or am i changing countpost = true to countpost = false?

Mavrik347 10-27-2008 07:28 PM

I'd say that's a change if it's already there. You don't want 2 lines for the same variable.

edermix 10-28-2008 01:28 AM

Just add the line that I mentioned. Is this code tested and functional.

Kangaroo666 10-03-2011 04:17 AM

Works great on vb 4.1.5 too. Thanks m8. :)

Fready 10-03-2011 05:52 AM

Don't delete the posts.
Just move them to a Trash Bin


All times are GMT. The time now is 02:09 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.01172 seconds
  • Memory Usage 1,723KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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