Text hit counter not showing on my computer.

In case you have problems with some other PHPJunkyard script (not that there are THAT many).
Post Reply
Keithmj
Posts: 3
Joined: Wed Jun 14, 2006 3:26 pm

Text hit counter not showing on my computer.

Post by Keithmj »

Script URL: http://www.keithmj.com
Version of script: newest one.. PHPcount 1.0
Version of PHP: 4.4.1
Hosting company: lunarpages.com
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try: redid everything. restarting computer. running Crapcleaner. Chmod logs dir to 777. Ect.

Write your message below:

Hi..The text hit counter works but the number of hits will not show up on my computer, just another computer. And all I get is just a number, nothing that says "number of hits". If I use another computer I can read the hits that I have had on that page but not on my computer? The number is suppose to be right under your PHPJunkyard graphic. I have also noticed that if the Lunarpages graphic to the left of the PHPJunkyard graphic shows that the hit counter doesn't showup. Here is my code <SCRIPT LANGUAGE="Javascript" SRC="http://www.keithmj.com/counter/counter. ... index.html"><!--
//--></SCRIPT>
. :D Thanks for any info...Keithmj
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hello,

Exactly what have you set for $referers in counter.php?

Do you have $check_referer set to 1? Does it work if you set $check_referer = 0; ?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Keithmj
Posts: 3
Joined: Wed Jun 14, 2006 3:26 pm

Post by Keithmj »

Klemen Stirn wrote:Hello,

Exactly what have you set for $referers in counter.php?

Do you have $check_referer set to 1? Does it work if you set $check_referer = 0; ?

Hi..I set it back to 0 and it works. Check it out at http://www.keithmj.com but all I get is just the hit number in the lower right of the page. Is that the way it is suppose to work? Thanks..Keithmj
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

It should also work with $check_referer set to 1 and
$referers = array("keithmj.com");

Yes, what counter displays is only a simple number. You can edit the location and look of the number with appropriate HTML code. A simple trick how to do it and have it displayed exactly where you want is here:
http://www.phpjunkyard.com/tutorials/cut-paste-code.php
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Keithmj
Posts: 3
Joined: Wed Jun 14, 2006 3:26 pm

Post by Keithmj »

Klemen Stirn wrote:Hi,

It should also work with $check_referer set to 1 and
$referers = array("keithmj.com");
Hi..Thanks for the help. It now works the way it is suppose to..I had the $referers = array("keithmj.com"); set to $referers = array("http://www.keithmj.com"); so I changed it to $referers = array("keithmj.com"); and check it and it works great..Thanks for the help. Something so simple..Keithmj :D
Post Reply