showing total amount of clicks

Post your Click counter digestion problems here
Post Reply
Herman

showing total amount of clicks

Post by Herman »

is there a way I can show the total amount of clicks on one of my pages?

I got a games site and I want to show my visitors how many games have been played all together.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Try using this file:
http://www.phpjunkyard.com/extras/total_clicks.zip


USAGE:

Add this code where you want the total to be displayed (change the URL to your total_clicks.php url!):

Code: Select all

<script language="javascript" src="http://www.yourdomain.com/ccount/total_clicks.php"><!--
//-->
</script>
Regards
Last edited by Klemen on Mon Feb 04, 2008 7:08 pm, edited 1 time in total.
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
Herman

Post by Herman »

sweet that works :D

thanks a lot :D great script btw :)
dg-zg
Posts: 2
Joined: Sun Feb 03, 2008 11:49 pm

Post by dg-zg »

Well, it is not working with 1.2

Any help ?

Regards,

DG
dg-zg
Posts: 2
Joined: Sun Feb 03, 2008 11:49 pm

Post by dg-zg »

But this does.
<script language="Javascript">
var all = ccount_link[1]+ccount_link[2]+ccount_link[3];
document.write(all);
</script>
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Yeh, the code has changed a bit since 1.1. I've updated the download file, should work now:
http://www.phpjunkyard.com/extras/total_clicks.zip
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