2016-10-21, 02:18 AM
So... I have noticed with a lot of forums & templates there is only post on the forumbit templates. What I mean is displayed below:
PostÂ
![[Image: 83bf1bf2734bb580947a9915e987a2f8.png]](https://camo.mybb.com/f99879dc10ac1f0ae1554b2fb486fc0d575938b4/68747470733a2f2f6779617a6f2e636f6d2f38336266316266323733346262353830393437613939313565393837613266382e706e67)
Replies
![[Image: 4ad09373b7edbf5fcb721699dbc2d1d5.png]](https://camo.mybb.com/2257a1fe0fa092bdad40cca4fdb78c9eeba7862a/68747470733a2f2f6779617a6f2e636f6d2f34616430393337336237656462663566636237323136393964626332643164352e706e67)
To solve this problem I had found to switch from post to replies is a very weird one but it worked for me.
So first goto this location: AdminCP > Templates & Styles > Templates > (your theme's templates) > Forum bit Templates > forumbit_depth2_forum
Once you are there your code for post should look something like this:
That will show the number of post, the part I didn't like is that the number of post included threads and replies
Change the inner HTML of this tag from
This:
To This:
This will make a tag with the ID corresponding to the forum it is on. Now put this code at the very bottom of the template.
This code will subtract the number of threads from the number of post and place it within the tag with the ID of replies(forumID). The final output should look something like this:
![[Image: aaa5559e5553f59a232e574fd6518c65.png]](https://camo.mybb.com/45d42b543b6d8d4a1267d6b82debfe89200db6f9/68747470733a2f2f6779617a6f2e636f6d2f61616135353539653535353366353961323332653537346664363531386336352e706e67)
Sorry if this is mostly just me blabboring and no one feels the same about this as me.
PostÂ
Replies
To solve this problem I had found to switch from post to replies is a very weird one but it worked for me.
So first goto this location: AdminCP > Templates & Styles > Templates > (your theme's templates) > Forum bit Templates > forumbit_depth2_forum
Once you are there your code for post should look something like this:
<td class="{$bgcolor}" align="center" style="white-space: nowrap">{$posts}{$unapproved['unapproved_posts']}</td>
That will show the number of post, the part I didn't like is that the number of post included threads and replies
Change the inner HTML of this tag from
This:
{$post}{#unapproved['unapproved_post']}
To This:
<b id="replies{$forum['fid']}"></b> Replies
This will make a tag with the ID corresponding to the forum it is on. Now put this code at the very bottom of the template.
<script>
var replies{$forum['fid']} = {$posts} - {$threads};
document.getElementById("replies{$forum['fid']}").innerHTML = replies{$forum['fid']};
</script>
This code will subtract the number of threads from the number of post and place it within the tag with the ID of replies(forumID). The final output should look something like this:
Sorry if this is mostly just me blabboring and no one feels the same about this as me.