View Full Version : Show Thread Enhancements - To The Top Button
Bernd Glasstett
05-16-2007, 10:00 PM
This is a rather small product and it was something which I used to add to our forums everytime an update occured. Now with a news template hook on the right place, which was in 3.6.6 released this edit is finally a thing from the past and I made a product out of it. I used the product, as one phrase needs to be added. It's small, but I think that's ok :) I personally don't know if anyone also had this idea. However the code was all developed by myself :)
What it does:
It adds a graphic to every postbit to the right of quick-reply. It's an arrow which points to the top and upon a click brings you to the top of each page. This is very handy if you are down into a loooong page and want quick access to the navbar i.e. It works both with postbit and postbit_legacy.
What to do:
0 template edits
1 file to be uploaded (an image)
1 xml-file to be imported
1 phrase added
1 template added
Please click install, if you use this product.
sross
05-17-2007, 11:42 AM
didn't work for me, the image doesn't show. most likely because i have a custom postbit legacy template? Any idea what i need to manually add to my template to get the button to show? thanks!
deezelpope
05-17-2007, 11:46 AM
<i>Didn't work for me either...even did an overwrite with the xml...</i>
Acido
05-17-2007, 12:09 PM
didn't work for me too :(
hcmagix
05-17-2007, 12:25 PM
Alternate solution is.
edit template postbit/postbit_legacy
find
$post[iplogged]
add above
<a href="#top"><img src="$stylevar[imgdir_button]/top.gif" alt="Top" border="0" /></a>
upload your arrow picture like (top.gif) to /images/buttons
see results
PS. you can also use another place for the arrow picture in the template
Bernd Glasstett
05-17-2007, 01:00 PM
The template MUST have $template_hook[postbit_controls] in it, which hasn't been added until version 3.6.6 and if you have custom postbits, you need to revert first or add this template hook.
@hcmagix: Of course it can also be done like this, but it's more nifty without template edits ;)
Tungsten
05-17-2007, 02:39 PM
Heh... I've been doing this on my forum for a while now too after seeing it on an IPB forum once. I too thought about using the postbit template hook for it. Nice to see someone else took the initiative and did it! :)
Do you have the PSD file for the graphic you used for the button? I'd like to recolor it and use that instead of the one I use now.
Bernd Glasstett
05-17-2007, 05:56 PM
Download the first version of the graphics pack and select the Arrow Buttons.psd. Download it here:
http://members.vbulletin.com/membersupport.php
Get the first one, as it is the one with layered Photoshop .psd-files.
I am not sure, if I may post the .psd-file here :)
Tungsten
05-17-2007, 07:00 PM
Excellent, I didn't realize that graphic was in the PSD pack.
Muellmann
05-17-2007, 08:59 PM
Very handy thx.
DieselMinded
05-17-2007, 10:09 PM
This is great but i have an issue its lower than the rest of the buttons see attachment
Ive also included the tothetop i customized for my board
DieselMinded
05-17-2007, 10:16 PM
I found the problem i just had to ad more of a space under the .gif in PS
Barakat
05-17-2007, 10:22 PM
i like it ..... installed
Hornstar
05-18-2007, 06:36 AM
nice work, i will more then likely install this. thanks.
Bernd Glasstett
05-18-2007, 07:34 AM
This is great but i have an issue its lower than the rest of the buttons see attachment
I looked into your board. Seems you already worked it out :)
jluerken
05-18-2007, 09:19 AM
Hi,
this should be a standard vB admincp option
"Turn on /off Move-to-top Feature" :)
Thanks!
Bernd Glasstett
05-18-2007, 11:43 AM
this should be a standard vB admincp optionI would be floating in space, if that happens :D
bhen13
05-18-2007, 12:31 PM
I couldn't get it to work on my site :(
Bernd Glasstett
05-18-2007, 12:52 PM
Which version of vB do you have? It only works with version 3.6.6 and above and with non-customized postbit or postbit legacy.
Kihon Kata
05-18-2007, 01:46 PM
I have used something like this for years on my boards. See the example here: http://www.makeuptalk.com/forums/f58/makeover-i-did-kandyce-33890.html
It does help
deezelpope
05-18-2007, 08:00 PM
<i>Pssst...hey Mike! Cuz some people are too lazy to do template edits.</i>
Bernd Glasstett
05-19-2007, 11:47 PM
It's not about lazyness. I think, that it's always the best to not alter the original code of vBulletin and to use the products and plugins. That's why they are there. Jelsoft wanted to have the code clean and without edits. So I should ask back:
Hey Mike-D,
why using a template edit, if this can be done through the product-system... :)
KURTZ
05-20-2007, 01:38 AM
installed thx :))
Rider69
05-20-2007, 08:42 PM
tried to get to work through the product system...no luck.
Then tried the template setup and no luck either...What am I doing wrong?
Vbulletin 3.6.6 website: TX-SS.com/forums
Rider69
05-21-2007, 12:39 AM
nevermind...got it working...thanks
KURTZ
09-14-2007, 01:02 AM
3.6.8 not working :(
Bernd Glasstett
09-14-2007, 06:13 AM
hm, can't test it on 3.6.8 right now, as we haven't updated yet. And we need to wait at least until 9/23/2007. We are running an important poll with a tool developed for 3.6.7 and can't risk to update until the poll is over. It is not a usual one, it works with categories in the poll.
gmattox
09-18-2007, 04:49 PM
Does anyone know what the anchor is if I wanted to reverse this? The users have their up arrow, now they want their down arrow to go to the last post on the page, not the last post of the thread...
DjEddie
11-16-2007, 04:47 PM
Hi,
Any news on when this will work with 3.6.8, I have it installed and it doesnt show up anywhere...
Thank you
Eddie
Fungsten
11-16-2007, 08:40 PM
Hi,
Any news on when this will work with 3.6.8, I have it installed and it doesnt show up anywhere...
Thank you
Eddie
Same here. :(
LouiseDM
11-17-2007, 05:07 PM
Hi I Got this working by adding in your postbit or postbit legacy
Find
$post[iplogged]
add above this code
<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img src="$stylevar[imgdir_button]/top.gif" alt="$vbphrase[tothetopbutton]" border="0" /></a>
Fungsten
11-17-2007, 05:36 PM
Hi I Got this working by adding in your postbit or postbit legacy
Find
$post[iplogged]
add above this code
<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img src="$stylevar[imgdir_button]/top.gif"
Top.gif should tothetop.gif.
Thanks though!!
MV Blackie
11-17-2007, 06:18 PM
Top.gif should tothetop.gif.
Thanks though!!
that does the trick, man ? what a thrill
StarBuG
11-18-2007, 02:30 AM
My hack exists since 3.0 ;)
https://vborg.vbsupport.ru/showthread.php?t=136576
but as a product it's easier for people to install.
LouiseDM
11-19-2007, 04:05 PM
Top.gif should tothetop.gif.
Thanks though!!
depends what you called the image :rolleyes:
mystic10
11-19-2007, 07:33 PM
i got the image to work but when i click on it..doesnt go to the top..confused what should i do now please guide
mystic10
11-19-2007, 07:38 PM
nevermind it worked thanks
Dingo14
01-13-2008, 02:02 AM
works good have it in postbit legacy
erateinow
12-27-2008, 01:27 PM
work perfect in 3.7.4 & 3.8 thank you :)
inciarco
01-26-2009, 11:16 PM
For vB3.7.x, (I don't know if for vB3.6.x), is needed to Change on the Plugin "To The Top", the Hook Placing to "postbit_display_start"; (the currently used one don't Display the Code inside the Plugin). ;)
My Best Regards.
:)
inciarco
01-31-2009, 10:42 PM
Also, guided by the #Top Code on the footer Template is a Good Idea to add the Code
onclick="self.scrollTo(0, 0); return false;"
To the Template "to_the_top_addon" Like This:
<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img src="$stylevar[imgdir_button]/tothetop.gif" alt="$vbphrase[tothetopbutton]" title="$vbphrase[tothetopbutton]" border="0" /></a>
The reason is because sometimes when Clicking on the Button when Browsing from a Forum with "Go To Last Post" or "Go To New Post" Link, this Addresses Cause that the Page Reloads and Go To The Top, Not Only To The Top.
You'll also Notice that is also Faster (Like the Botton To The Top Link that Comes With vBulletin footer).
My Best Regards.
:)
earthome
05-24-2009, 09:01 AM
谢谢,good
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.