Page 1 of 1

count image clicks

Posted: Mon Jun 18, 2012 10:00 pm
by bondigor69
HELLO guys
Instead of counting the visitors I want to count
this image click.
I have the same sharing image on each page

Code: Select all

<a href ="blablashare"><img src="myimage.jpg"></a>
I want to create a script that counts each click on this image on everypage and saves it, so everytime the page refresh the count dosent reset.

can you help me with that

Obviously I want to echo the count.

But this is not that important.

Re: count image clicks

Posted: Mon Jun 18, 2012 11:08 pm
by Henrie
It is the same as for using other clicks.

So you should add the link "blablashare" in the admin panel of ccount.
Than replace your existing link in the page with http://www.yourdomain.com/ccount/click.php?id=ID where the ID is the ID as listed in the ccount admin pane. So your link would look something like this

Code: Select all

<a href ="http://www.yourdomain.com/ccount/click.php?id=1"><img src="myimage.jpg"></a>
I hope this helps.

Greetings,
Henrie

Re: count image clicks

Posted: Mon Jun 18, 2012 11:43 pm
by bondigor69
I understand by I have multiple links in the image
image map

Code: Select all

<img src="my image" usemap="#map"

<map name="map">
<!-- #$-:Image map file created by Cheetah-->
<!-- #$-:Cheetah Image Map plug-in by Jean Cheetah -->
<!-- #$VERSION:2.3 -->
<!-- #$AUTHOR:Cheetah-Reviews.com -->
<area shape="rect" coords="129,38,178,75" alt="Like us On Facebook" href="http://www.facebook.com/pages/Cheetah-Reviews/281661638554128
" target="_blank" />
<area shape="rect" coords="74,38,123,75" alt="Follow Us On Twitter" href="http://twitter.com/#!/CheetahReviews1
" target="_blank"/>
<area shape="rect" coords="194,38,250,74" alt="Add us on Google Circles" href="http://plus.google.com/10324505542yyyy59/about" />
<area shape="rect" coords="259,39,306,74" alt="Follow us On LinkedIn" href="http://www.linkedin.com/in/cyyyws
" target="_blank"/>
<area shape="rect" coords="318,38,368,74" alt="Follow us on Digg" href="http://digg.com/Cheyyiews
" target="_blank"/>
<area shape="rect" coords="384,38,430,73" alt="Stumble with us" href="http://www.stumbleupon.com/stumbler/Cggg
"target="_blank" />
<area shape="rect" coords="447,39,497,74" alt="Save us on Delicious" href="http://www.delicious.com/cheeggggws
" target="_blank"/>
</map></div>
you think it will still work

Re: count image clicks

Posted: Tue Jun 19, 2012 12:07 am
by Henrie
yes, you can replace any link you want.