Website error

Post your Click counter digestion problems here
Post Reply
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Website error

Post by SKh »

Hi

I am getting an error on every page I install the ccount

This how it is in the header of my pages

<script language="Javascript" src="http://www.kalemati.com/ccount/click.php?id=1">
<!--
//-->
</script>


Any help?
:roll:

Thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Who told you to put this header onto your pages? Did you read the readme.htm?
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
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Post by SKh »

I saw this

----
1. Add this code in your HTML document HEAD (paste it somewhere between <head> and </head> HTML tags):

<script language="Javascript" src="http://www.domain.com/ccount/display.php">
<!--
//-->
</script>

CHANGE http://www.domain.com/ccount/display.php to the URL of display.php on your server!
----

What should I do so ?
Thanks
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

You should only change te path to your display.php file so

Code: Select all

<script language="Javascript" src="http://www.domain.com/ccount/display.php">
<!--
//-->
</script> 
should be changed to

Code: Select all

<script language="Javascript" src="http://www.kalemati.com/ccount/display.php">
<!--
//-->
</script> 
That code should be placed where you now have

Code: Select all

<script language="Javascript" src="http://www.kalemati.com/ccount/click.php?id=1">
<!--
//-->
</script>


Then in the body of you page you should place links like

Code: Select all

<a href="http://www.domain.com/ccount/click.php?id=5">This is my link description</a>
as mentioned in the admin panel of ccount.
Where in your case www.domain.com should be changed to www.kalamati.com.

Greetings,
Henrie
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Post by SKh »

Thanks a lot
but the counter stopped counting after I did so

Let me make it more clear for both of us:

<head>
<script language="Javascript" src="http://www.kalemati.com/ccount/display.php">
<!--
//-->
</script>
</head>
<body>
<a href="http://wwwkalemati.com/ccount/click.php?id=1">VoIP</a>
</body>


I would like to indicate that I dont want to display the counter on my page.

Thanks
Last edited by SKh on Sun Oct 21, 2007 1:10 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Just use

Code: Select all

</head> 
<body> 
<a href="http://wwwkalemati.com/ccount/click.php?id=1">VoIP</a> 
</body> 
That's it (you forgot to add a . after www in the above code).

If it doesn't count it's probably because the link is cached in your browser, try clearing cache again, close all browser windows and test the code above.
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
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Post by SKh »

OK
Now I found something

even it gives me error (my own wrong setup)
the counter was counting every visitor correctly as my code was inside the <head>

With your code inside the <body> only, the counter will work just whenever someone clicks on that link from the other page only

If someone came directly to that page (let us say google .. etc)
the counter will not run then!!! as the visitor did not came by clicking the link to have the counter run !!!!

I want someting inside the <head> not the body

Hope my idea is clear

Many thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Of course it will count only clicks on links, this is a CLICK COUNTER and this is what it was built to do :lol:

If you want a HIT counter that counts every visitor, look at
http://www.phpjunkyard.com/php-text-hit-counter.php
or
http://www.phpjunkyard.com/php-graphica ... ounter.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
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Post by SKh »

Thanks for explanation. I mixed the click with the hit counter
I should have used the hit.

Best wishes
Soubhi
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Post by SKh »

I have installed the hit counter
but wanted the same admin page as the click counter to watch all pages at once and no need for the counter to be displayed on the pages.

That would be great if possible !
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Not possible with the original script, try with this add-on script:
viewtopic.php?t=291
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
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Post by SKh »

Sorry to disturb you again
http://www.kalemati.com/counter/
it is not working!
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Post by SKh »

I don't want to show my website visitors the counter
I want to know which page has been more visited than the others only

This Hit counter is not doing that,
and the Click counter is not ready for that either.

Just a very small work from you, it will be done.

Plz do it.
regards
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well just because I offer free scripts doesn't mean I am a free programmer... If I would say yes to every wish like yours I could be sitting behind my PC programming for free 24 hours per day.

Try using text hit counter and perhaps delete line
echo 'document.write(\''.$count.'\');';
if you don't want to display the count to visitors.
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
SKh
Posts: 10
Joined: Sun Oct 21, 2007 9:29 am

Post by SKh »

OK, I can understand

I need the index.php file which shows me all the pages of my site listed with their clicks as it is in (ccount)

How much do you like to charge me ?

thanks
Post Reply