Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 11-13-2002, 06:20 PM
samanthac samanthac is offline
 
Join Date: Nov 2002
Location: Blue Bell, PA
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 11-13-2002, 09:26 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 11-14-2002, 06:25 PM
samanthac samanthac is offline
 
Join Date: Nov 2002
Location: Blue Bell, PA
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 11-15-2002, 07:59 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:47 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.03463 seconds
  • Memory Usage 2,181KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete