Add Top & Bottom Links/Buttons To Posts
#1
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
[Image: Jn29h.png]
DONATE TO PINGUY OS or show some love on Flattr.com
Reply
#2
Cool thanks for this it has saved me for asking for it.
[Image: 245dl3n.png]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)