Tom's Newbie Booster

Forward 'n' Back
A dynamic navigation script for growing websites

Freeware
Version 1.0



Description

This is a script which does a similar job to the Page Chainer script which I wrote. This one is slightly more advanced in what it can do.

This is a way to link pages together for your surfers. In 'Forward 'n' Back' there are two links at the base of each web page (as we'll see in the example). There's one link for NEXT and another for PREVIOUS.

Clicking on the previous page will take your surfer to the page which comes before the one they are looking at. If they are at page 001.html and click the PREVIOUS page link, the script realizes that there isn't anything before page 001.html. It then takes them to the uppermost page in your sequence. If you had 100 pages, it would take them to 100.html. (Clicking PREVIOUS again would take you 'down' to 099.html, and so on...)


Possible Uses

- A series of full page ads you'd like to link together.
- A site where a page is added daily.
- A site where a story is added each day.
- In search engine one-pagers.


Working Example

Here is an example of the script in action. As usual, you'll need to use your imagination and pretend that each page you see is a full page ad (or some other webpage).

http://www.tomsnewbiebooster.com/resources/forward-and-back/001.html

Have a play with the links. Click on NEXT and PREVIOUS and see what happens. There are 8 pages in the sequence but it could just as easily be 800. The pages in the example go from 001.html up to 008.html. If you were to upload another 10 pages, increasing the number of pages in that folder to 18, making the last page in the sequence 018.html, all of the links on the other pages would be updated without you having to do anything. That's really what this script is about.

NOTE: You'll also see that there are links at the base of each page which appear to be hard-coded into the HTML. I put these here so that the search engines could be able to spider all your pages. It's done 'dynamically'. Don't worry if you do not want to use this - it's very easy to remove it and just have the PREVIOUS and NEXT links on their own.


Download & Installation

This is actually very straight forward - should take a matter of minutes to get up and running on your webspace.

1) Download the zip file:
forward-and-back.zip

2) Unzip the three php files.

3) Upload these three files to the folder where your 001.html, 002.html etc... pages are.

4) At the base of each HTML page, add the following code:

<A href=previous.php?page=<!--#echo var="DOCUMENT_NAME" -->><FONT FACE="Arial black, Helvetica" SIZE=4>PREVIOUS PAGE</FONT></A>

&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;

<A href=next.php?page=<!--#echo var="DOCUMENT_NAME" -->><FONT FACE="Arial black, Helvetica" SIZE=4>NEXT PAGE</FONT></A>

<BR><BR>

<!--#include virtual="all.php" -->


NOTE: To remove the links at the base of the pages to ALL of the other pages (as I mentioned earlier), simply remove this line:

<!--#include virtual="all.php" -->

Good luck and let me know how you get on. ;-)


Enter Tom's Newbie Booster here
More tips, scripts and help...