Total posts in thread
This modification is in the archives.
I used to have a little template mod on an older version of vB that would count the number of posts in a thread and display this in the post count. So if you have a thread with a post coult of 20 this will show up as #1 of 20, #5 0f 20, etc.
Thanks to Dean C for the help with this. First open either postbit or postbit_legacy and change Code:
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if> Code:
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> of <b>$totalposts</b></if> Product: vBulletin Hook Location: postbit_display_start Title: Total Posts PHP Plugin Code: $totalposts=$thread[replycount]+1; Plugin Is Active: Yes Screen shot: Parker Download No files for download. |