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:
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:
Release Data
Download @ MyBB Mods Site
Last version: 1.1 - 01/04/2011 (DD/MM/YYYY)
Installation
Upload the contents inside the "Upload" folder to your MyBB root installation.
Go to "ACP -> Configuration -> Plugins" and Install the plugin
Go to "ACP -> Tools & Maintenance -> Recount & Rebuild" and rebuild the threads count (Option: Recount User Threads Count)
Enjoy.
Updating
Upload the new files. You don't even need to deactivate it
Templates Changes
Documentation
There is no documentation. If you need any help, post here and I will do my best to help you.
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
Release Data
Download @ MyBB Mods Site
Last version: 1.1 - 01/04/2011 (DD/MM/YYYY)
Installation
Upload the contents inside the "Upload" folder to your MyBB root installation.
Go to "ACP -> Configuration -> Plugins" and Install the plugin
Go to "ACP -> Tools & Maintenance -> Recount & Rebuild" and rebuild the threads count (Option: Recount User Threads Count)
Enjoy.
Updating
Upload the new files. You don't even need to deactivate it

Templates Changes
Quote:This plugin makes 2 templates changes automatically. If it didn't work on your theme, you can modify them manually:
=== member_profile ===
Find:
Quote:<tr>
<td class="trow1"><strong>{$lang->total_posts}</strong></td>
<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&uid={$uid}">{$lang->find_threads}</a> — <a href="search.php?action=finduser&uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
Replace with:
Quote:<tr>
<td class="trow1"><strong>{$lang->total_posts}</strong></td>
<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduser&uid={$uid}">{$lang->find_posts}</a>)</span></td>
</tr>
<!-- CountThreads -->
<tr>
<td class="trow1"><strong>{$lang->total_threads}</strong></td>
<td class="trow1">{$memprofile[\'threadnum\']} ({$lang->threads_statistics})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&uid={$uid}">{$lang->find_threads}</a>)</span></td>
</tr>
<!-- /CountThreads -->
=== postbit_author_user ===
Find:
Quote:{$lang->postbit_posts} {$post['postnum']}<br />
Replace with:
Quote:{$lang->postbit_posts} {$post['postnum']}<br /><!-- CountThreads -->{$lang->postbit_threads} {$post['threadnum']}<br /><!-- /CountThreads -->
Documentation
There is no documentation. If you need any help, post here and I will do my best to help you.