Back to vBulletin 3.5 Template Modifications

Total posts in thread
Mod Version: 1.00, by Parker Clack

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 3
Released: 04 Dec 2007 Last Update: Never Downloads: 0
Not Supported Uses Plugins Template Edits Re-usable Code Translations  

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]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if>
to

Code:
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> of <b>$totalposts</b></if>
then go to AdminCP > Plugin System > Plugin Manager > Add New Plugin

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.


vblts.ru supports vBulletin®, 2022-2024