vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   separate post count in postbit for non-postcount forums? (https://vborg.vbsupport.ru/showthread.php?t=217718)

mikey1991 07-02-2009 09:03 PM

separate post count in postbit for non-postcount forums?
 
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

Quote:

Originally Posted by mikey1991 (Post 1843017)
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

Quote:

Originally Posted by Lynne (Post 1843221)
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

Quote:

Originally Posted by ludachris (Post 1845348)
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

Quote:

Originally Posted by Lynne (Post 1845420)
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.


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