![]() |
"To the top" link in every reply
Hi
Desc: This is a simple modification. It adds an image link next to every quick reply (or quote) button in every thread and reply that brings you back to top. Time to install: About 1Min Templates to edit: 1 Versions: All vB Versions In postbit template search for: Code:
<if condition="$show['moderated']"> Code:
<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img src="$stylevar[imgdir_button]/top.gif" alt="$vbphrase[top]" border="0" /></a> I made you an image for the standard vBulletin Buttons but you can change it or add a different image. Hope you like it.... and if you do don?t forget to click INSTALL DEMO: http://www.elternfragen.net/showthread.php?t=107 Just view any thread you like to see the top button StarBuG |
Thanks for this. :)
|
You'r welcome ;)
|
Thank you!
very useful. |
works fine in 3.6.4 Kartel Style, also uploaded a pic that fits better with this style.
my question is: this mod will take the user to the top of the page, but can this be adjusted so that it takes the user to the top of the thread if it is a multiple-page thread? tnx for sharing this. |
Adjust the onclick="self.scrollTo(0, 0) to what ever pixel height you want it to jump to (counted from the top beeing 0)
|
I always have this in my forums, why it isn't a standard, I don't know. I hate having to scroll ALL the way to the bottom, just to click top. One could say, why don't you just scroll to the top then, and I answer - what's the point of convenience then? ;)
|
Quote:
Code:
<a href="#top" onclick="self.scrollTo(0, 10); return false;"><img src="$stylevar[imgdir_button]/top.gif" alt="Top of Page" border="0" /></a> i'm not a coder so i wanted to make sure i understood what u mean. TIA |
Perfect, thank you!
|
ummm I have an English language only board... so I changed the *alt* 'nach oben' to 'To Top' as follows:
PHP Code:
|
Quote:
|
Ups, missed the german phrase ;)
the self.scrollTo(0, 10) is a pixel specification not a page specification ;) |
thanks for that little hack.
For those which use the old forum style, edit template postbit_legacy. find: PHP Code:
PHP Code:
|
Thank you StarBuG
Just what I always wanted :D Install |
All right this is not working for me, i have the pic uploaded to button and the code where it is. Nothing is shwoing up though. Thanks
|
Then you have made something wrong.
Check the placement of the code in your template. This is a simple link with an image, there is nothing in this code that can be wrong except your placement of the code. ;) StarBuG |
working in both postbit and postbit_legacy.
|
me too .this is not working for me, i have the pic uploaded to button and the code where it is. Nothing is shwoing up though. Thanks
anyone show me how to fix |
If you want you can copy your postbit template into a txt file and attach it to your post, I will then have a look ;)
|
I just installed it and it didn't work. I had to install it in both postbid and postbid_legacy for it to work. I have custom styles so maybe this is why I had to do that.
|
you can't use both postbit and postbit legacy at the same time.
For this there can't be any dependencies. But maybe you installed it in postbit first but watched your forum in postbit legacy, which is why you did not see it. Anyway the only thing that counts is that it is working now ;) |
It would be better to use the already existing phrase in vBulletin:
Code:
$vbphrase[top] |
Quote:
|
This phrase only replaces the alt text of the img, nothing more.
So you still need all the code above. StarBuG |
works fine with 3.7.2
|
Hi, does anyone know how can i also add also add a "to the bottom" button to each post? this "to the top" is very helpful--thank you!
|
Hi, any tips on implementing this in 4.0?
I tried, but no change. We miss it, terribly. :mad: Thanks! |
All times are GMT. The time now is 05:04 AM. |
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:
|