1.6.x

Thread Count Pro

Submitted by Nath, , Thread ID: 26380

Thread Closed
Nath
you'll do fookin nuttin
Level:
0
Reputation:
141
Posts:
1.49K
Likes:
126
Credits:
723
23-12-2016, 11:53 AM
#1
Description

This plugins shows a thread count in the member page and in the post bit.

Unlike others plugins, this one saves the thread count on the users table. This method has a few advantages:
You can show the thread count in any place you want (even on externals applications)
It dosn't require extra database querys to count the threads made by each user (Using others plugins, showing a thread with 10 posts would make 10 extra querys <<-- Total waste of resources).

The only extra query this plugin make is when a new thread is created/deleted.

To developers

Because it's a field in the users table, you can access the field value like the normal post count:
$mybb->user['threadnum'] - Always. Shows the logged user thread count.
$memprofile['threadnum'] - On the profile page. Tt's the count belogning to the user profile
$post['threadnum'] - On the showthread. It's the count belogning to the current post author

Content locked
This content has been locked. Please login or register in order to unlock it.
Need me?Message me here!



Users browsing this thread: 1 Guest(s)