![]() |
Adds a Go to Top Link at a well place
1 Attachment(s)
This modification adds a Go to "Top" link at an well placed place.
If you have installed TMS then just import below addon (xml) and you're done. If you don't have TMS installed then you have to do some manual template edits: Attachment 106408 Search in template SHOWTHREAD after: HTML Code:
<a href="showthread.php?{vb:raw session.sessionurl}t={vb:raw threadid}&goto=nextoldest" rel="nofollow">{vb:rawphrase prev_thread}</a> HTML Code:
| <a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a> https://vborg.vbsupport.ru/external/2010/01/18.gif Search in template postbit_legacy after: HTML Code:
<img style="display:none" id="progress_{vb:raw post.postid}" src="{vb:stylevar imgdir_misc}/progress.gif" alt="{vb:rawphrase loading_editor_please_wait}" /> HTML Code:
<a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;" class="editpost">{vb:rawphrase top}</a> Please click INSTALL Regards Matthias www.2-wheel-planet.de |
thank u
|
|
thanks man
|
I added the following code to my postbit_legacy template
Find: PHP Code:
Add After: PHP Code:
Thank you for the initial code :) https://vborg.vbsupport.ru/external/2010/01/18.gif |
Quote:
As an additional place? |
Quote:
|
Quote:
|
Added :)
|
Added, but I'd like two things, if possible...
add image of up arrow so it fits in with other buttons, and HTML to make it appear to the left, right under the User's info box. Thanks, gang!! |
Thanks, an arrow would be nice too :-)
|
[QUOTE=DaSpyda;1958719]and
HTML to make it appear to the left, right under the User's info box. /QUOTE] Can you add a picture and mark the position? Add "Top"-Image will be included soon. |
1 Attachment(s)
This isnt respecting my style colors. Any ideas?
|
Nice touch, added post bit legacy.
Thanks. :up: |
Just a thought, can we put a small up arrow or something similar to other links like edit posts, reply, etc. to blend the "top" link for the postbit legacy ?
|
Quote:
Can you please send me the whole template via PM? Thank you. |
1 Attachment(s)
Quote:
here is my postbit_legacy: HTML Code:
{vb:raw template_hook.postbit_start} |
Can you try this:
HTML Code:
<a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;" class="editpost">{vb:rawphrase top}</a> HTML Code:
<a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a> |
That worked a charm :D
Thank you! |
Good works
Thanks :) |
Quote:
|
I guess your right :)
Perhaps tomorrow or this week I work out a new version with a own top image :) |
thanks
I tried using the image I had used with this/a similar hack on my 3.x forum before upgrading, but... well it halfway covered up the word 'Top' and wasn't centered in the 'row' vertically, looked gawdawful |
maybe adding a new 'class' to the postbit.css or additional.css would work as well
|
I guess something like this has to be done. Sorry that I haven“t the time yet to solve this.
|
any luck with the arrow :) ??
|
Installed ... thanks .. :)
Works well using your "change" suggestion to the other poster here ... Code:
<a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a> Badger |
1 Attachment(s)
Quote:
upload the attached arrow image to your skins button folder then use this replacement code for the postbitlegacy. Code:
<a href="{vb:raw relpath}#top" onclick="document.location.hash='top';return false;"><img src="{vb:stylevar imgdir_button}/top.png" alt="{vb:rawphrase top}" />{vb:rawphrase top}</a> |
Thanks for this, and a big thanks also to AliceHoward. Works perfectly, and the little green arrow looks great!
|
1 Attachment(s)
I think this icons are the best.
|
They are pretty nice. Am I allowed to add them to first post?
|
Yes. Does somebody know, how to make hover image???
|
With CSS it's possible. Do you need a version? Perhaps I can make one tomorrow
|
Kolbi, I know that it can be made with CSS like editing button, and yes, it will be great if you provide us a version with hover image. ;-)
|
One issue I noticed is once you click the top link and scroll down again, the link no longer works if you click it a second time. Not a big deal, but is there a workaround?
|
Hi I will have a look at it maybe on Monday. :)
|
Quote:
|
For me, FF works fine just Chromium browser which has the problem
|
Seems to be a Chrome Bug? IE8 also works for me...
|
All times are GMT. The time now is 03:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|