
Introduction
The Code
Microsoft® FrontPage® 98 Users
The Code for a Page in a Subdirectory
What If I'm Using Microsoft® FrontPage® 97?
Resetting the Counter (sites without Microsoft® FrontPage® 2000)
Resetting the Counter (sites with Microsoft® FrontPage® 2000)
Let's assume you are a customer of ours. If not,
you'll be in big trouble if you do this, because the boss (Jim) likes to stay up late at
night and check the counter log files and will secretly replace your counter with Folgers
crystals.
OK, your page at "http://yourdomain.com/index.html" needs that cool odometer graphic. Insert this code into the HTML code of your page:
<img src="http://yourdomain.com/cgi-bin/nph-count2?width=5&link=http://yourdomain.com/index.html">
Please Note: If you are a
FrontPage 98 user with the Microsoft® FrontPage® 98 extensions installed on your site, please see below. If you are a
Microsoft® FrontPage® 97 user, please see further below.
If you are a Microsoft® FrontPage® 98 user with the Microsoft® FrontPage® 98 extensions installed on your site, you will use this path instead:
<img src="http://yourdomain.com/cgibin/nph-count2?width=5&link=http://yourdomain.com/index.html">(The difference is that you are using "cgibin" instead of "cgi-bin".)
Also, Microsoft® FrontPage® 98 users with
Microsoft® FrontPage® 98 extensions installed on their sites may use a FrontPage WebBot Hit Counter.
Please review your Microsoft® FrontPage® 98 documentation and help menu, or consult the Microsoft® FrontPage®
98 site
for details (Microsoft® FrontPage® 97 users, please see below).
Hmm, what about my page at http://yourdomain.com/somewhere/else.html? Follow this example instead:
<img src="http://yourdomain.com/cgi-bin/nph-count2?width=5&link=http://yourdomain.com/somewhere/else.html">
Microsoft® FrontPage® 97 WebBot Hit Counters will not operate on our UNIX operating systems. You may use a third party script if you wish but we will not be able to provide technical support for it. To use ours, follow these steps:
2. Open the page with the FP editor, place the cursor where you want the counter.
3. =>Insert => HTML Markup => (insert the counter script) => OK => save file, Done.
You can set the counter by editing the
file named "count_file" in your DocumentRoot directory. This is the directory to
which you upload your web pages. In most cases, this will be called www or wwwfp.
Download this file via FTP (in ASCII mode) and use a simple text
editor (such as notepad) to change the number shown at the end of the line that contains
the name of the page that the counter you wish to set is on. Save the file and ftp it back
up (also in ASCII mode).
Done.
Please Note: If you are a
Microsoft® FrontPage® 98 user with the FrontPage extensions installed on your site, please see below.
You cannot ftp files to your
Microsoft® FrontPage® 98 directory if you have Microsoft® FrontPage® 98 extensions installed, you must use
Microsoft® FrontPage® 98to edit
files in the Microsoft® FrontPage® 98directory structure. Start your
Microsoft® FrontPage® 98and in the
"open" dialog box, type your domain name and extension. Enter your user id and
password and you are now viewing your Microsoft® FrontPage® 98site as it exists on our server. Right
click on count-file and choose "open with". Then choose "text
editor:notepad.exe". Edit the count at the end of the line that corresponds to the
page you wish to count and click on "save" under the file menu. Click the close
box (x) to close notepad then and close your Microsoft® FrontPage® 98explorer. When you view the page
with the counter on it in your browser, you will see that the count is what you set plus
one.