Solved

Hiding FrontPage Counter

Posted on 2003-11-12
8
376 Views
Last Modified: 2013-12-24
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?

Thanks,
Jim
0
Comment
Question by:jimmyr
  • 4
  • 3
8 Comments
 
LVL 31

Accepted Solution

by:
seanpowell earned 300 total points
ID: 9731768
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.

Thanks.
0
 

Author Comment

by:jimmyr
ID: 9734102
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?

Thanks,
Jim
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9734141
Is this page (index.htm.cnt) in the _private folder?
0
 

Author Comment

by:jimmyr
ID: 9734670
Yes it is.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 31

Expert Comment

by:seanpowell
ID: 9734701
Then try removing the forwad slash from in front of the image in the Hit Counter Custom Dialog
0
 
LVL 5

Expert Comment

by:M256
ID: 9749242
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.

Matthew
0
 
LVL 31

Expert Comment

by:seanpowell
ID: 9831631
Hi Jim,

Did you manage to get this working for you?

Thanks,
seanpowell
0
 

Author Comment

by:jimmyr
ID: 9848565
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.

Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

760 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

19 Experts available now in Live!

Get 1:1 Help Now