vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   deleting posts/threads doesnt reduce post counts (https://vborg.vbsupport.ru/showthread.php?t=61972)

corsacrazy 02-27-2004 11:13 AM

deleting posts/threads doesnt reduce post counts
 
this was avaiable for vb2 just wondering if any one has made for vb3. basically i dont want user OR forum post counts to reduce when deleting a thread/post

Andreas 02-27-2004 12:28 PM

In functions_databuild FIND
PHP Code:

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


BELOW that ADD
PHP Code:

$countposts 0


In functions_databuild FIND
PHP Code:

function delete_thread($threadid$countposts 1$physicaldel 1$delinfo NULL)


BELOW that ADD
PHP Code:

$countposts 0

Then the post count should not change when you delete a post/thread.

corsacrazy 02-27-2004 01:01 PM

this tested ? cheers my friend

Andreas 02-27-2004 01:12 PM

No. That's why I said it should work ;)

The General 04-09-2004 04:35 PM

Quote:

Originally Posted by KirbyDE
No. That's why I said it should work ;)

Cool thanks! Works fine on vB 3 gold.

Envy-UK 04-09-2004 04:43 PM

Wouldn't it just be easier to have a 'Storage Bin' type forum and move threads to that? Obviously this would not be visible for users.

Although the post count on the specific forum would decrease, the overall post count would stay the same, and, if needs be, you could refer to these posts.

Catch-22|BL 04-15-2004 11:54 AM

Warning!

If I make the above changes, I get this error when I try to edit a post:

Parse error: parse error in /home/xxxx/public_html/forums/includes/functions_databuild.php on line 332

Fatal error: Call to undefined function: delete_post_index() in /home/xxxx/public_html/forums/editpost.php on line 406

Proceed with caution! (I am removing the changes....)

Hazzo 04-28-2004 08:45 PM

Hopefully there is a fix for this one :)

SVTBlackLight01 04-29-2004 04:58 AM

Quote:

Originally Posted by Envy-UK
Wouldn't it just be easier to have a 'Storage Bin' type forum and move threads to that? Obviously this would not be visible for users.

Although the post count on the specific forum would decrease, the overall post count would stay the same, and, if needs be, you could refer to these posts.

Exactly. No use hacking and making upgrades more difficult.

Sonic625 05-30-2004 04:33 PM

Worked for me and a bump for those who might be interested in this.


All times are GMT. The time now is 06:39 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.01091 seconds
  • Memory Usage 1,737KB
  • 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
  • (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