Biker_GA
04-06-2010, 02:17 AM
I've been using this for years, and even have it working in 4.x. However, every upgrade results in the system complaining about how it can't change the postbit template because of this change. So I have to revert it, and then stick the code back in. This is what I'm using:
<a href="#top" onclick="self.scrollTo(0, 0); return false;">Top</a>
And this is where I've embedded it in postbit_legacy:
<vb:if condition="$post['postid'] AND $post['threadid']">
<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="postcounter">#{vb:raw post.postcount}</a>
</vb:if>
Is there a better way to do this?
<a href="#top" onclick="self.scrollTo(0, 0); return false;">Top</a>
And this is where I've embedded it in postbit_legacy:
<vb:if condition="$post['postid'] AND $post['threadid']">
<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="postcounter">#{vb:raw post.postcount}</a>
</vb:if>
Is there a better way to do this?