![]() |
Social Groups - Post Count
I'm currently using vbulletin version 4.1.0
And i'm curious how to make it so that social group posts add to a members post count and how social group posts add to the forum post count. Would be very helpful if someone could help me with this... thank you --------------- Added [DATE]1298222000[/DATE] at [TIME]1298222000[/TIME] --------------- anyone?... please.. |
Hello,
As am too interested in this feature? Any ideas? |
To count social group posts in user total posts
Create New Plugin HooK: group_message_post_complete Title: ur wish Code Code:
$db->query_write("UPDATE ".TABLE_PREFIX."user set posts = posts+1 and don't forgot to make plugin active. |
Hello Sherif,
Thanks for sharing the plugin code. After activating this plugin do I need to run "Maintenance>Update Counters > Update Post Counts"? |
Quote:
|
Hello,
Can you tell me SQL query that I could run it one time so that the user's post count includes the social group messages prior to this plugin? |
Wouldn't 'Update Post Counts' remove all +1 numbers the plugin added?
|
Quote:
If you wanted to really do this right, you would create a new field in the user table to keep track of the number of group posts. Then just add them together for the template. That will be a bit more involved though and won't just be a couple of little plugins. |
Hi Lynne, I tried this plugin :
Hook Location : postbit_display_start code: PHP Code:
Used this variable totalpost in the postbit template but not getting the desired result. Can you let me know how to fix this. |
What exactly seems to be the problem?
You do realize that that will create one additional query per post per page, correct? |
All times are GMT. The time now is 12:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|