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)

snake-boy 02-05-2005 12:34 PM

Using 3.03 and this does not work for me :(

Post counts are still decremented after pruning.

I WAS using a 'recycle bin' to move threads to, but space is a SERIOUS problem with my host and I HAVE to delete posts, but screwing over the users post counts periodically does not go down well :(

Can ANYONE suggest a hack to prevent this?

-snake

Andreas 02-05-2005 08:15 PM

I just tested this with 3.0.6 and it does work just fine.
Nevertheless, you should get another host ;)

@Catch22|Bl
Adding those 2 lines can't cause the error you got, you must have done smth. wrong.

snake-boy 02-06-2005 03:12 AM

But I didn't get an error? (I assume your reply is directed at me?)

Only thing I did was add those lines, then I logged in as a test user, noted my post-count. Deleted a few posts, updated the post counts via admin panel and checked again.
The test users post count had been reduced. No error messages or problems otherwise.

As for another host... aside from the space issues I am very happy with what I am getting for the price I am paying. :) I shouldn't have to change hosts to acommodate a missing feature.

-snake

Andreas 02-06-2005 04:38 AM

Quote:

Originally Posted by snake-boy
updated the post counts via admin panel and checked again.

Well, if you update the post counters form ACP this is obvious as the functions does update the post counters with the real number of posts found in the database.

Those two lines I posted you prevent the post counter from decreasing if you delete a post or thread.

pedroenf 10-15-2006 10:52 AM

If it is of interesse of annyone this "mod" works in 3.6.x. But with a little difference, instead of $countposts = 0; there should be $countposts = false;. Hoppe i could be usefull to someone. Bye.

snake-boy 10-15-2006 01:30 PM

I found that very useful. :)

Thank you pedroenf for the update!

-snake

bki 10-16-2006 06:01 PM

Quote:

Originally Posted by pedroenf
If it is of interesse of annyone this "mod" works in 3.6.x. But with a little difference, instead of $countposts = 0; there should be $countposts = false;. Hoppe i could be usefull to someone. Bye.

It's not working for me :(

pedroenf 10-16-2006 09:35 PM

Just follow de install instructions. It has to work.

bki 10-17-2006 01:53 PM

Sometimes it works sometime it doesn't. It depens on how you delete the files, so I don't think it's a 100% solution for me.

Come on your coders...... crack that functions_databuild.php, please.

TiA


All times are GMT. The time now is 09:23 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.00993 seconds
  • Memory Usage 1,729KB
  • 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_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
  • (9)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