The Arcive of vBulletin Modifications Site. |
|
Add "Top" to all Posts. Details »»
|
|||||||||||||||||||||||||||
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']"> Code:
<a href="#top" onclick="self.scrollTo(0, 0); return false;">Top</a> | 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>
Screenshots
Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Nice and simple .. Mmm .. reminds me of my Ex
|
|
#3
|
|||
|
|||
|
Something like this should have been standard in vBulletin.
Nicely done ![]() Installed & working 4.1.2 |
|
#4
|
|||
|
|||
|
LOL. Well, I was just going to come here to see if this existed, if not I was going to write one. Wouldn't you have to do this in both postbit and postbit legacy?
|
|
#5
|
|||
|
|||
|
And if you want it to have the neat "top" button that shows up at the bottom of every thread instead of just a link that says "top", add this below:
Code:
<a href="{vb:raw relpath}#top" class="textcontrol" onclick="document.location.hash='top';return false;">{vb:rawphrase top}</a>
I added it after the post number rather than before. |
|
#6
|
|||
|
|||
|
installed...works on 4.0.6 too ...thanks for this
|
|
#7
|
|||
|
|||
|
I'm using 4.1.3, and no matter what I put under the given text, nothing shows up after saving and refreshing.
I can even just type the word 'test' in the right spot and nothing shows up. Any ideas? |
|
#8
|
|||
|
|||
|
It may be a problem of your server not being able to save changes. Sometimes it may be as simply as a cookie issue.
|
|
#9
|
|||
|
|||
|
Thanks, works nicely with 4.1.4 pl2
|
|
#10
|
|||
|
|||
|
Works good with 4.1.7
|
![]() |
|
|