Page 1 of 1

Website error

Posted: Sun Oct 21, 2007 9:32 am
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

Posted: Sun Oct 21, 2007 10:20 am
by Klemen
Who told you to put this header onto your pages? Did you read the readme.htm?

Posted: Sun Oct 21, 2007 10:35 am
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

Posted: Sun Oct 21, 2007 11:38 am
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

Posted: Sun Oct 21, 2007 1:03 pm
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

Posted: Sun Oct 21, 2007 1:10 pm
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.

Posted: Sun Oct 21, 2007 10:18 pm
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

Posted: Mon Oct 22, 2007 12:27 pm
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

Posted: Mon Oct 22, 2007 9:44 pm
by SKh
Thanks for explanation. I mixed the click with the hit counter
I should have used the hit.

Best wishes
Soubhi

Posted: Sat Oct 27, 2007 8:20 pm
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 !

Posted: Sat Oct 27, 2007 9:58 pm
by Klemen
Not possible with the original script, try with this add-on script:
viewtopic.php?t=291

Posted: Tue Oct 30, 2007 9:26 am
by SKh
Sorry to disturb you again
http://www.kalemati.com/counter/
it is not working!

Posted: Mon Nov 19, 2007 11:56 am
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

Posted: Mon Nov 19, 2007 3:00 pm
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.

Posted: Mon Nov 19, 2007 10:24 pm
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