The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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 ^^
|
#4
|
|||
|
|||
Yes, to set this for specific users is what I'm looking for.
Domokun |
#5
|
|||
|
|||
Bump, somebody has to know how to do this for an individual user.
Domokun |
#6
|
||||
|
||||
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'); } 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. |
#7
|
|||
|
|||
Wow, this is exactly what I'm looking for . Thank you soo much.
Sincerely, Domokun |
#8
|
|||
|
|||
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 |
#9
|
|||
|
|||
Quote:
Code:
if ($this->fetch_field('userid') == X || $this->fetch_field('userid') == X) { $this->do_unset('posts'); } Or you could create an array with the user ids and use in_array http://php.net/in_array |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|