Add "Top" to all Posts

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
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>
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
855
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
772
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
744
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
6K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
593
AdminAdmin is verified member.
Admin
Admin
Replies
1
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
2
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
571
AdminAdmin is verified member.
Admin
Back
Top