Page 1 of 1

1 click counts as 2

Posted: Sun Mar 26, 2006 8:51 pm
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:

Posted: Mon Mar 27, 2006 2:43 pm
by Klemen
Hi,

What is the URL of your Ccount?

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

Regards

The correct URL

Posted: Mon Mar 27, 2006 9:48 pm
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

Posted: Tue Mar 28, 2006 10:16 am
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