adds count every time the page is loaded

Post your Click counter digestion problems here
Post Reply
rhawkes
Posts: 4
Joined: Sat Aug 07, 2010 11:24 am

adds count every time the page is loaded

Post by rhawkes »

Script URL:
Version of script:1.2
Hosting company: Go Daddy
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
CCounter adds a click count to every link I have assigned every time the web site is loaded as well as every time someone clicks on it. Did I do something wrong maybe or is this normal.
Thanks
Ron
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

It's not normal, it's because you have a ccount link loaded every time you load a page.

If you post the URL to the problematic page I might be able to check and help.
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
rhawkes
Posts: 4
Joined: Sat Aug 07, 2010 11:24 am

Post by rhawkes »

Klemen wrote:It's not normal, it's because you have a ccount link loaded every time you load a page.

If you post the URL to the problematic page I might be able to check and help.
www.mainesportsreport.com
Thanks
Ron
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You are loading images with ccount. This is how you use it:
<a href="URL"><img src="CLICK.PHP"></a>

It should be the other way around:
<a href="CLICK.PHP"><img src="IMAGE.GIF"></a>

An exmaple from your website. You are using:

Code: Select all

<a href='http://www.mykdkdesigns.com' target=new><img border=4 alt='image 1' src='http://www.mainesportsreport.com/ccount/click.php?id=4'></a>
But it should be:

Code: Select all

<a href='http://www.mainesportsreport.com/ccount/click.php?id=4' target=new><img border=4 alt='image 1' src='http://www.mainesportsreport.com/constant/KDK125px.jpg'></a>
And
http://www.mainesportsreport.com/ccount/click.php?id=4
should then redirect to mykdkdesigns.com
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
rhawkes
Posts: 4
Joined: Sat Aug 07, 2010 11:24 am

Post by rhawkes »

Thank you very much. I copied the code you said I should be using and replaced what I had and now when I click on the image it opens a new window with a picture of the button or banner ad but does not go to the web page.
Ron
Klemen wrote:You are loading images with ccount. This is how you use it:
<a href="URL"><img src="CLICK.PHP"></a>

It should be the other way around:
<a href="CLICK.PHP"><img src="IMAGE.GIF"></a>

An exmaple from your website. You are using:

Code: Select all

<a href='http://www.mykdkdesigns.com' target=new><img border=4 alt='image 1' src='http://www.mainesportsreport.com/ccount/click.php?id=4'></a>
But it should be:

Code: Select all

<a href='http://www.mainesportsreport.com/ccount/click.php?id=4' target=new><img border=4 alt='image 1' src='http://www.mainesportsreport.com/constant/KDK125px.jpg'></a>
And
http://www.mainesportsreport.com/ccount/click.php?id=4
should then redirect to mykdkdesigns.com
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In the CCount admin panel you need to modify the URL from the image URL the target page URL. The URL needs to be set to the URL you want CCount to redirect people to.
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
rhawkes
Posts: 4
Joined: Sat Aug 07, 2010 11:24 am

Thank you

Post by rhawkes »

That took care of it. Thanks for all your help, really appreciate it.
Ron
Post Reply