Hiding FrontPage Counter

I'm a newbie with this.  I just want to hide the front page counter and then read the hits.  If I do the comment out <!--     --> I believe, correct me if I'm wrong, that I won't be able to see the actual number of hits unless I take the comments out and republish briefly.  Anywork around?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Here's the best way to handle this:

Create an image 3px by 3px or larger as a solid .gif (.jpg will not work), the same color as your background, and save the image in the 'images' folder of your web using the 'save as' command from the drop-down. Do not make the image transparent.

In FrontPage, open the page you want to insert the hit counter in, and choose Insert | Component | Hit Counter, then choose Custom Picture in the Hit Counter Properties box. Type in '/images/yourpic.gif' in the box. (Substitute the name of your picture and use the forward slash as the first character in your file path.) Click OK and save the page. Publish to your server.

To view the count for a particular page, just type in 'http://www.yoursite.com/_private/page.htm.cnt' into the web browser address bar to see your page hit count. Substitute 'page' in the address for the name of the actual page hits you want to view.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jimmyrAuthor Commented:
It certainly sounds like it should work, but I can't make it so.  I created a white.gif.  I saved it to the images folder.  I was careful to not make it transparent. I made sure that I kept the same path the name of the picture and the gif extension.  I used the forward slash before images.  I copied the path listed with website/_private/index.htm.cnt path, since I'm using index.htm as the same page.  I made sure it wasn't an .html doc.  

Doesn't work.

Any tips? Anything that could be missed?

Is this page (index.htm.cnt) in the _private folder?
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

jimmyrAuthor Commented:
Yes it is.
Then try removing the forwad slash from in front of the image in the Hit Counter Custom Dialog
I think your original idea sounds good, and it is simple too :-)

Try putting the comments <!--  --> around your counter, publish your page, then view it in your browser.  Right click on the page, and click "View Source".  You should be able to see the text between the comment tags.

Be aware, though, savvy web surfers will be able to view this as well.

Hi Jim,

Did you manage to get this working for you?

jimmyrAuthor Commented:
Not really.  But I did a workaround based on what you told me.  I find using the comments resets, but if I use the image same as the background and then take it off to see the actuall number, then the counter doesnt' reset.  For that reason, I'll give you the points.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.