vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Retaining # of User Posts when Deleting Threads (https://vborg.vbsupport.ru/showthread.php?t=45693)

samanthac 11-13-2002 06:20 PM

Retaining # of User Posts when Deleting Threads
 
I help moderate a fitness forum. Our users are very proud and extremely sensitive about the number of posts that they make. Last week one of the modertors purged a batch of non-essential posts. The users noticed right away that their total number of posts was reduced. Some were quite upset.

My question is, how can we reduce the number of posts without reducing the users total posts number? Someone idicated that there was a hack for this, but I'll be darned if I can find it. If someone could post a link that would lead me to it (or instructions on how to do it) that would be great!

Thanks in advance for all replies!

Xenon 11-13-2002 09:26 PM

samanthac, please tell the owner of your board to go to this page and enter your username, to show you are licensed. (He will need to use his customer number and password to access that page)
Thank you.

Otherwise you won't be able to download hacks here

samanthac 11-14-2002 06:25 PM

Stephan - Our main moderator, Steve, told me he added my username.

Now can anyone help me locate or send me a link for that hack for retaining # of users posts when deleting threads???

I appreciate any help anyone can give me. Thanks!

Logician 11-15-2002 07:59 AM

For different types of deletion different parts of vb. should be hacked. As for thread deletion (from admin pull down in thread view) this should work:

edit postings.php,

find:
PHP Code:

$DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'"); 

And replace it as:
PHP Code:

// $DB_site->query("UPDATE user SET posts=posts$subtract WHERE userid='$postuserid'"); 

However I would say that these attempts to mislead actual numbers are not very wise as they can cause some misunderstandings in certain cases:

Say you deleted a thread of a poster whose only post was this thread. You dont update his post number so he is displayed as a poster of 1 post but when someone clicks to find his posts, he will get none..

Also you should forget about update counter feature of vbulletin if you hack vb in this way. If you update counters after applying this hack, all users stats will be reset and show the correct numbers..

My 2 cents, your call..


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