Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Frontpage Hit Counter Will not Work

Posted on 2004-10-26
11
Medium Priority
?
875 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
11 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This program is used to assist in finding and resolving common problems with wireless connections.
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

597 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