1 click counts as 2

Post your Click counter digestion problems here
Post Reply
MIKEY S
Posts: 2
Joined: Sun Mar 26, 2006 8:37 pm

1 click counts as 2

Post by MIKEY S »

Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:

PHP Click counter 1.1

PHP version 4.4.1

www.bluehost.com

My site http://www.scottsalmonchaters.com

I have searched...


I have installed this script with no problems but when clicking on links, it counts double per click.

click once it counts as 2 clicks, click again it should be 3 but goes to 4.

Any Help would be great.....TY :roll:
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

What is the URL of your Ccount?

http://www.scottsalmonchaters.com doesn't open by the way.

Regards
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
MIKEY S
Posts: 2
Joined: Sun Mar 26, 2006 8:37 pm

The correct URL

Post by MIKEY S »

It seems my fingers where a little faster than my brain the other day.

http://www.scottsalmoncharters.com/movies.php

Thankyou for your help... :D
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

The problem is the way you use ccount - if you click for example
http://www.scottsalmoncharters.com/ccou ... k.php?id=3
directly, it will only count one click.

However, the Javascript/HTML code you use to display movies uses the click.php?id=3 twice and that's why it problably counts as two clicks:

First in the <param name="url" value="HERE"> tag and second in the <embed ... src="HERE" ..> tag within the same <object> (Javascript function PlayIt )

I don't know if there is a way to avoid it unless you allow direct downloads of movies to PC instead of watching them embedded into your page.

Hope all above makes at least a little sense :lol:

Regards
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
Post Reply