?
Solved

Frontpage Hit Counter Will not Work

Posted on 2004-10-26
11
Medium Priority
?
882 Views
Last Modified: 2013-11-30
A Friend of mine hosts their own website that I built and I can't get the Frontpage Hit Counter to start counting.  This website is running on SBS 2003 and the Frontpage Extensions are installed.  I have tried publishing the web internally and just editing the html home page.  

Is there something else I'm missing?
0
Comment
Question by:sdcoker
  • 5
  • 3
8 Comments
 
LVL 6

Expert Comment

by:Eric
ID: 12412764
does anythign display where the counter should be ??  

0
 

Author Comment

by:sdcoker
ID: 12416293
Yes, just the number 1.

When people hit the site, the number doesn't change.
0
 
LVL 6

Expert Comment

by:Eric
ID: 12421149
it might be looking at the computer that is hitting the counter.  if it's the same computer ip (like  a proxy server, or gateway, etc.) the counter won't change if it's within a certain period of time..

if this doens't answer it, i'll keep looking..

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 

Author Comment

by:sdcoker
ID: 12422727
This SBS 2003 server is acting as the Gateway and Proxy Server.  We have had the counter on their for a couple of weeks and it's never changed from the number 1.  People are hitting the site from outside and inside.  The web address is
www.bhammusiccoop.org
She just now took it off so I'll tell her to reinsert it.
0
 
LVL 6

Expert Comment

by:Eric
ID: 12422758
gotcha..

i'll keep looking for ya..
0
 
LVL 6

Accepted Solution

by:
Eric earned 1000 total points
ID: 12422809
this might help.  it's just something i found on the interet..  i can't help with this posting though.  i don't use frontpage extensions on my web host.



Checking FrontPage Counters

When you use the Frontpage counters on many of your pages, there's no decent way for you as an the proprietor of your web site to have a quick glance at the counters on each page without visiting them all.  The Frontpage Extensions keep those counts using files in the _private subdirectory of your web root, and they bear the name of the web page they're on with ".cnt" appended.  This little script reads those files and displays the counts inside them.  This script does things the hard way - there are installable MSWC components (if they're installed) that could read the data without using a text stream - but you still have to enumerate and loop through the available counters.

' build path to .cnt files...
WebPath = Request.ServerVariables("APPL_PHYSICAL_PATH")
FileSpec = WebPath & "_private"
' stolen code to get list of files in folder...
DIM fs, f, f1, fc
SET fs = CreateObject("Scripting.FileSystemObject")
SET f = fs.GetFolder(FileSpec)
SET fc = f.Files
' loop through each file in folder...
FOR EACH f1 IN fc
  ' is it a cnt file...?
  IF RIGHT(f1.name,4) = ".cnt" THEN
    SET mfo = Server.CreateObject("Scripting.FileSystemObject")
    SET tf = mfo.OpenTextFile(FileSpec & "\" & f1.name)
    ' file has format: FPCountData 00000000000
    ' get the numbers out of it...
    WHILE NOT tf.AtEndOfStream
      fname = LEFT(f1.name,LEN(f1.name)-4)
      CntData = tf.ReadLine
      Count = MID(CntData,INSTR(CntData," ")+1)
      Response.Write(fname & ": " & Count & "<BR>")
    WEND
    tf.Close
    SET mfo = Nothing
    SET tf = Nothing
  END IF
NEXT
0
 

Author Comment

by:sdcoker
ID: 12460196
Do you place this code somewhere in here?

<address style="text-align: center">
            <!--webbot bot="HitCounter" i-image="0" I-ResetValue="0" I-Digits="0" U-Custom startspan --><img src="_vti_bin/fpcount.exe/W:/?Page=index.html|Image=0" alt="Hit Counter"><!--webbot bot="HitCounter" i-checksum="26977" endspan --></address>
      <address style="text-align: center">
            &nbsp;</address>
      <address style="text-align: center">
            &nbsp;</address>
      </td>

Are you saying that placing this code will make the number of hits show up in the index.html.cnt file in the _private folder?
0
 
LVL 6

Expert Comment

by:Eric
ID: 12462596
i don't use frontpage extensions on my web host, so i can't really help you out with the code from above..  i found it on a website..

try taking a look at http://www.teamits.com/internet/support/index.php?/internet/support/fp_faq_main.html

or try removing the counter, putting it back into the page, and then republishing the site, and see what happens.

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These seven tips can help you create an extraordinary website, one that captivates audiences and has them wanting to return regularly for more. Keep reading to find out what your site is missing and what you need to add!
Magento is the best technology for eCommerce start-ups as it offers the technical expertise and visual appeal to create a store that pulls sales and earns high ROI (Return on investment).
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question