Back to vBulletin 4.x Template Modifications

Add "Top" to all Posts.
Mod Version: 1.00, by Jack Jones

vB Version: 4.1.1 Rating: (5 votes - 5.00 average) Installs: 55
Released: 20 Mar 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

A very simple template modification to add a "Top" on the right hand side of all posts.

In postbit_legacy find:
Code:
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid'] AND !$show['moderated']">
Add this under it:
Code:
<a href="#top" onclick="self.scrollTo(0, 0); return false;">Top</a> |
It should look like this once added:

Code:
<span class="nodecontrols">
<vb:if condition="$post['postid'] AND $post['threadid'] AND !$show['moderated']">
<a href="#top" onclick="self.scrollTo(0, 0); return false;">Top</a> |
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show['inlinemod']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a>
</vb:if>

Download

No files for download.

Screenshots

Click image for larger version
Name:	TopScreen.jpg
Views:	950
Size:	104.0 KB
ID:	127552  


vblts.ru supports vBulletin®, 2022-2024