Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Jump to top/bottom of page mod
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Jump to top/bottom of page mod

 Post Reply Post Reply
Author
ibaker View Drop Down
Groupie
Groupie


Joined: 22 July 2005
Location: Australia
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote ibaker Quote  Post ReplyReply Direct Link To This Post Topic: Jump to top/bottom of page mod
    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
Pay for a WWF licence - I did - help this great software to get even better!
Back to Top
Mikey View Drop Down
Senior Member
Senior Member

1979

Joined: 06 October 2003
Location: United Kingdom
Status: Offline
Points: 839
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mikey Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2006 at 10:57am
Well done, Congrates on your first mod Clap
Handyman man?
Back to Top
Ali Bilgrami View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 April 2005
Location: Pakistan
Status: Offline
Points: 492
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ali Bilgrami Quote  Post ReplyReply Direct Link To This Post Posted: 21 May 2006 at 12:49pm
Nice...
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.