Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-24-2006, 02:16 PM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How do I freeze post counts

How do I freeze a post count. For example: If I set my post count to be 500 in the UserCP, how do I set it so that it always stays at 500 even if I continue posting? Thanks in advance

Domokun
Reply With Quote
  #2  
Old 09-25-2006, 08:12 AM
Adrian.'s Avatar
Adrian. Adrian. is offline
 
Join Date: Oct 2005
Location: South Yorkshire
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

You have to edit all the forums...
Forum Manager > Edit (Forum).

Set "Count Posts Made in this Forum Towards User Post Counts" to No.

Adrian
Reply With Quote
  #3  
Old 09-25-2006, 09:20 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think he may have only been wanting this for specific users maybe. eg. make your post count 1337 and leave it there lol. iono ^^
Reply With Quote
  #4  
Old 09-25-2006, 10:28 AM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, to set this for specific users is what I'm looking for.

Domokun
Reply With Quote
  #5  
Old 09-28-2006, 12:45 AM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump, somebody has to know how to do this for an individual user.

Domokun
Reply With Quote
  #6  
Old 09-28-2006, 05:24 PM
blacklancer's Avatar
blacklancer blacklancer is offline
 
Join Date: Jan 2006
Location: so cal
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just did it on my vBulletin 3.6 like so and its working good.

Plugin Manager -> Add New Plugin -> Input the following

Product - vBulletin
Hook Location - userdata_presave
Title - Freeze postcount
Execution Order - 5
Plugin PHP Code -
Code:
if ($this->fetch_field('userid') == X)
{
$this->do_unset('posts');
}
Replace X with the userid

Plugin is Active - Yes

Save and enjoy

Be sure to change the post count to whatever number you want it to be first, and then make the plugin active.
Reply With Quote
  #7  
Old 09-30-2006, 02:03 PM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow, this is exactly what I'm looking for . Thank you soo much.

Sincerely,

Domokun
Reply With Quote
  #8  
Old 10-06-2006, 10:42 AM
domokun domokun is offline
 
Join Date: Jun 2006
Location: Section 9
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, the post count freeze code you gave me works great, but I was wondering, how do you add more than one user? I tried separating the UserID's with a comma but that didn't work. Thanks again

Domokun
Reply With Quote
  #9  
Old 10-07-2006, 07:55 AM
GriZzm0 GriZzm0 is offline
 
Join Date: Apr 2006
Location: Sweden, Helsingborg
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by domokun
Hmm, the post count freeze code you gave me works great, but I was wondering, how do you add more than one user? I tried separating the UserID's with a comma but that didn't work. Thanks again

Domokun
Code:
if ($this->fetch_field('userid') == X || $this->fetch_field('userid') == X)
{
$this->do_unset('posts');
}
|| = or.
Or you could create an array with the user ids and use in_array http://php.net/in_array
Reply With Quote
Reply


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 03:01 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04795 seconds
  • Memory Usage 2,236KB
  • 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_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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