Print Page | Close Window

Jump to top/bottom of page mod

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19957
Printed Date: 29 March 2026 at 4:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Jump to top/bottom of page mod
Posted By: ibaker
Subject: Jump to top/bottom of page mod
Date Posted: 20 May 2006 at 1:28am
Hi all
I have ventured out to create my first mod and although it is a simple one by the pros standards I needed it in my forum so I just thought I would share it.

This mod places 2 buttons at the bottom of each post with one to allow the user to jump up to the top of the page and the other to jump to the bottom of the page. These instructions are based on a default v8.01 install.

The end result is shown in this picture (apart from the Quote & Reply buttons shown):


1. firstly you need to include the bookmarks on your pages.

a) I have placed in the header.asp page (found in the includes folder) right below the <body> tag:
<a name="#topofpage"></a>

b) I then placed in the forum_posts.asp page found in the main forum folder at line 999:
Response.Write("<a name=""#bottomofpage""></a>")

My line 999 is inbetween:
%>
</table><%
insert here
'Else display there are no posts to display so display error message
Else


2. Next you need to copy these two images to your forum_images folder naming one jump_up.png and jump_down.png:


(note that if anyone wants to improve these button images then that would be great as I just made them from the "move post" button)

3. You now need to include the following code to bring it together
In the forum_posts page add this following code just before the:
'Display the report post feature if email is enabled.

Response.Write("<span>&nbsp;<a href=""##topofpage""><img src=""" & strImagePath & "jump_up.PNG"" align=""absmiddle"" border=""0""/></a></span>")
Response.Write("<span>&nbsp;<a href=""##bottomofpage""><img src=""" & strImagePath & "jump_down.PNG"" align=""absmiddle"" border=""0""/></a></span>")


And that is it, as I said it is only a basic mod but a big one for me to even attempt Wink





-------------
regards
Ian
http://www.recreationalflying.com.au/forum - http://www.recreationalflying.com.au/forum
Pay for a WWF licence - I did - help this great software to get even better!



Replies:
Posted By: Mikey
Date Posted: 20 May 2006 at 10:57am
Well done, Congrates on your first mod Clap

-------------
Handyman man?


Posted By: Ali Bilgrami
Date Posted: 21 May 2006 at 12:49pm
Nice...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net