MyBB Community Forums

Full Version: Add Top & Bottom Links/Buttons To Posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
With this snippet of code it will add links each side of the post number so you can quickly go to the top or bottom of the page.

[Image: attachmenteq.png]

To make the changes you go into:
template >> postbit >> postbit_posturl

Then replace everything in there with the following code:
<div style="float: right; width: auto; vertical-align: top"><span class="smalltext"><a href="#content" title="Top"> &#x25b2; </a><strong>{$lang->postbit_post} <a href="{$post['postlink']}#pid{$post['pid']}">#{$postcounter}</a><a href="#down" title="Bottom"> &#x25BC; </a></a></strong>{$post['inlinecheck']}
</span></div> 

Next we need to to place the down id to where you what the down link to take you. I found the best place to put this was in the showthread_search.
template >> showthread >> showthread_search

Then add this to the very top.

<a name="down" id="down"></a>


Live Demo: http://forum.pinguyos.com
Cool thanks for this it has saved me for asking for it.