Solved

Frontpage Hit Counter Will not Work

Posted on 2004-10-26
861 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
Question by:sdcoker
    8 Comments
     
    LVL 6

    Expert Comment

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

    0
     

    Author Comment

    by:sdcoker
    Yes, just the number 1.

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

    Expert Comment

    by:Eric
    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
     

    Author Comment

    by:sdcoker
    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
    gotcha..

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

    Accepted Solution

    by:
    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
    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
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

    856 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now