vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Count Posts Made in this Forum Towards User Post Counts (https://vborg.vbsupport.ru/showthread.php?t=319163)

Stratis 06-21-2015 07:20 AM

Count Posts Made in this Forum Towards User Post Counts
 
In Forum Manager we see in "Enable / Disable Features" option "Count Posts Made in this Forum Towards User Post Counts"

If this is set to No, posts made in this forum will not be added to users' post counts (which are displayed on showthread).

Can this change to take effect only to posts and not threads as it does.
I have team members that reply to new members, I want these post not count.

Thanks for any help :)

MarkFL 06-21-2015 01:05 PM

1 Attachment(s)
I have attached a very simple add-on that will increase the post count of a user posting a thread in ALL forums where posts are not counted.

So, what you need to do is set the post count not to be increased in one or more forums, and then import the attached product, and you will find that those who post new threads will have their post count incremented, but all others subsequently posting in those threads will not have their post count increased.

Please let me know if this does what you need.

Stratis 06-21-2015 01:58 PM

Hi Mark and thanks for answering.

Tested, this actually as i get, works for new posts and definitely not for old ones.

Situation is that I have a welcome introduce category, so all my team members welcome new members every day. When I use the above option as I mentioned the system counts 1 less thread (thread that my team member made when he introduce him self.
If we know what code is that option maybe changing to post instead of thread that is now could do the job?

MarkFL 06-21-2015 02:23 PM

I'm not sure what you're saying is happening.

On my local dev site, the thread count is correctly incremented when a new thread is started in the forum where posts are not counted.

Stratis 06-21-2015 03:17 PM

ok suppose you have 40 threads and 1500 posts.
From 1500 you have the 500 post are from that forum that we have the option not to count post. What will happen? to they incremented to? Testing in my test forum works only
for new, the olds ones stays so it means that you still have 1500 post.
Sorry for my bad English. and thanks

MarkFL 06-21-2015 06:44 PM

Oh, the add-on I wrote does not work retro-actively, it only works for new threads/posts. You would need to execute one or more SQL queries to fix the existing problem. :D

Stratis 06-22-2015 11:14 AM

Thanks Mark, but don't have with SQL queries :)


All times are GMT. The time now is 03:23 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.00944 seconds
  • Memory Usage 1,717KB
  • 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
  • (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