Log in

View Full Version : "To the top" link in every reply


StarBuG
08-02-2005, 10:00 PM
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

You can find the vB 3.6.x Version >> HERE << (https://vborg.vbsupport.ru/showthread.php?t=136576)
(https://vborg.vbsupport.ru/showthread.php?t=136576)

In postbit template search for:


<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>


after that add


<a href="#top"><img src="$stylevar[imgdir_button]/top.gif" alt="To the Top" border="0" /></a>


Now download the image I attached and upload it to /forum/images/buttons

The Image was made for my forum 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.hiphop-battles.com/forum/index.php
Just view any thread you like to see the top button

StarBuG

Gio~Logist
08-03-2005, 06:52 PM
Maybe it would help users if you actually had attatched an image.

Tony G
08-04-2005, 04:34 AM
Yeah, it would be nice if you had an image that users could use. Also, it would be nice if you could put your instructions in a .txt file and attach them rather than in the thread too. :)

StarBuG
08-04-2005, 10:39 AM
I have attached the image. Sorry was a little in a hurry ;)

I feld it unnecessary to make a text file but here it is.

StarBuG

Tony G
08-05-2005, 03:50 AM
The reason we enforce that rule is for the convienience of members using your mod - they are able to refer back to it without having to find this thread again if they require to. :)

StarBuG
08-05-2005, 09:21 AM
Yeah no problem ;)

peterska2
09-03-2005, 07:56 PM
nice and handy. thanks.

StarBuG
09-07-2005, 08:07 PM
you?r welcome ;)

GrendelKhan{TSU
11-16-2005, 09:47 AM
heres another top button if anyone is interested

49er
11-19-2005, 06:59 PM
......Yes works fine.....
Thank you :rolleyes:

rike-online
11-26-2005, 11:18 AM
hi,

it doesn't work in FF...

Is there any solution?

Thanks
rike

Snake
11-26-2005, 12:39 PM
Screenshot? :p

peterska2
11-26-2005, 10:11 PM
Works in FF for me

rike-online
11-27-2005, 07:17 AM
hm...

I'm using mod_rewrite and postbit_legacy... and it doesn't work.

Now, I've made code-changes to:

<a href="#top" onclick="self.scrollTo(0, 0); return false;"><img src="$stylevar[imgdir_button]/top.gif" alt="To te Top" border="0" /></a>

and... no problems.

Thanks for your feedbacks!

Greetings
rike

TheMusicMan
11-29-2005, 06:01 PM
... and here's a 'Top' button that matches the default vB3.5.1 style... I'd implemented this on my forums a year or so ago and only just saw this otherwise I would have added the image sooner.

StarBuG
12-08-2005, 10:45 AM
There is no reason why this "hack" would not work on FF.
I use FF myself and it works just fine ;)

I don?t think a screenshot is necessary but I added a link to my forum as Demo so you can check how it will look like ;)

Thanky you GrendelKhan{TSU and TheMusicMan for supplying other Button images ;)

eNforce
12-08-2005, 11:13 AM
I have no idea why this isn't working for me...

Here's my postbit_legacy

Edit: Got it to work

Kroby
12-29-2005, 10:51 AM
Easy to do and work nice, thank you :D