View Full Version : separate post count in postbit for non-postcount forums?
mikey1991
07-02-2009, 09:03 PM
I assume I'd have to edit the postbit template, but with what?
I want to make a new post count bit, after the "Post Count:"
but how would I go about adding a separate post count in postbit for non-postcount forums?
mikey1991
07-05-2009, 03:21 AM
Hi,
Any answers? Lynne is usually so good at replying to issues, did you miss this one? ;)
Or anyone whom is able to help, please, just drop me a reply here
Cheers
Lynne
07-05-2009, 02:20 PM
Hi,
Any answers? Lynne is usually so good at replying to issues, did you miss this one? ;)
Or anyone whom is able to help, please, just drop me a reply here
Cheers
I'm stuck on dial-up while on vacation, so I'm not going through all the threads like I normally do.
You have a couple of options. One, you can write a plugin that does a query for each user to count this separate post count for you. It will add one query per post. Then you can spit that variable out in the post. Two, you can write a series of plugins to keep track of the post count in a new field you would need to create in the user table. Then you can grab that field when you do the query for posts and it won't add any queries to the page. This method is probably preferable since you won't be adding so many queries per page, but it will take more effort on your part to write.
ludachris
07-08-2009, 08:16 PM
Two, you can write a series of plugins to keep track of the post count in a new field you would need to create in the user table. Then you can grab that field when you do the query for posts and it won't add any queries to the page. This method is probably preferable since you won't be adding so many queries per page, but it will take more effort on your part to write.
When you say "series of plugins", why couldn't it just be one plugin? Would you add a function in the post function where it updates the post counter updating the second (and possibly 3rd, 4th, post count) field?
Lynne
07-08-2009, 10:10 PM
When you say "series of plugins", why couldn't it just be one plugin? Would you add a function in the post function where it updates the post counter updating the second (and possibly 3rd, 4th, post count) field?
If you did just one plugin at the post function, what about if a user deletes a post? There is deleting via ajax and via post edit and via mass delete and via thread delete and change of forumid by mass moving or moderator action or.... a couple of those may be the same plugin, but I know they aren't all the same one.
mikey1991
07-08-2009, 10:55 PM
it does sound complex, anyway :P
ludachris
07-12-2009, 10:15 PM
If you did just one plugin at the post function, what about if a user deletes a post? There is deleting via ajax and via post edit and via mass delete and via thread delete and change of forumid by mass moving or moderator action or.... a couple of those may be the same plugin, but I know they aren't all the same one.
That makes sense. Thanks for the explanation.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.