1 link giving multi clicks

Post your Click counter digestion problems here
Post Reply
zellahh
Posts: 3
Joined: Mon Jul 16, 2007 4:57 pm

1 link giving multi clicks

Post by zellahh »

Script URL:
Version of script: 1.1
Hosting company:no
URL of phpinfo.php: http://ccgi.uproar.force9.co.uk/phpinfo.php
URL of session_test.php: http://ccgi.uproar.force9.co.uk/session_test.php
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello im new to php and having problems with 1 link giving multi clicks

<li><a href="http://ccgi.uproar.force9.co.uk/ccount/click.php?id=1" target="_blank" onClick="javascript:PlayerOpen('Track. 1: MOTA - Any City You Like',this.href); return false">Play MOTA - Any City You Like</a> (3.37mb)</li>
</ul>

can you help me with what i've done wrong if i do it without the javascript it works fine

link to page http://www.uproar.force9.co.uk/Downloads.html
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Probably the Javascript is opening the link twice, not sure hot to solve it unless you try to rewrite the Javascript. Can't really help here.
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
zellahh
Posts: 3
Joined: Mon Jul 16, 2007 4:57 pm

Post by zellahh »

it seems to do a random number of clicks not just two click
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If you remove all the Javascript and use simple original links it works fine, doesn't it?
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
zellahh
Posts: 3
Joined: Mon Jul 16, 2007 4:57 pm

Post by zellahh »

yep it works fine without the javascript :cry: but i need it to work with it isnt their a way to to limit the clicks an ip can give so if they click it 3-4 times in 30 mins it will only show once?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

My first advice would be to find someone to check your Javascript.

The limit of 1 click per IP (or cookie) has been mentioned here before and some guidelines posted somewhere on this forum, try finding it.

I won't be able to do any of the above as I'm writing my diploma at the moment...
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