FP Counter Question

Okay I have the need to display counters from multiple pages on a stats page for the web. IE..

page1.htm
page2.htm
page3.htm   all have counters

oun page counters.htm I want to display the counter values for page1, 2 & 3.

Thanks in Advance
pinkstonmAsked:
Who is Participating?
 
ClassyLinksConnect With a Mentor Commented:
I know a good way, but it would involve turning EVERY page in your site to ASP....probably not practical for you at this point.

You are using FP's hit counter right?

You could try doing it with include files.

Just the same way you included your other pages, witht he FP include feature (not the ASP way) and include each .cnt file.  They are really just text files.

OR

Write a page called counter.asp in the root of your web.

In html mode use this:

Page1 <!--#include file="_private/foldername/filename.htm.cnt"-->

Page2 <!--#include file="_private/foldername/filename.htm.cnt"-->

You will need to change the Page1/2 to reflect something meaningful...the actual title of the page the counter is on.

Try it and let me know what happens.
0
 
ClassyLinksCommented:
HI Matt....how's this one going?
0
 
pinkstonmAuthor Commented:
THe later of your 2 recommendations works but it comes up with FPcountfile 0000000000000. Can i get rid of the text Fpcount?
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
ClassyLinksCommented:
You cannot.  You are including a text file...you need to include the whole file.

There is no way to truncate the text.
0
 
pinkstonmAuthor Commented:
THanks again!!!
0
 
ClassyLinksCommented:
Np...can we close this q now?  Or is there something else?
0
 
ClassyLinksCommented:
Pink...can you close the question now?
0
 
ClassyLinksCommented:
Matt, please return and grade the question...I don't want to have to report it to CS as abandoned.

Thanks
0
 
pinkstonmAuthor Commented:
Sorry I was on vacation and thought I had graded this before I left
0
 
ClassyLinksCommented:
np...cu next time.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.