count image clicks

Post your Click counter digestion problems here
Post Reply
bondigor69
Posts: 2
Joined: Mon Jun 18, 2012 9:58 pm

count image clicks

Post 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.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: count image clicks

Post 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
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
bondigor69
Posts: 2
Joined: Mon Jun 18, 2012 9:58 pm

Re: count image clicks

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Re: count image clicks

Post by Henrie »

yes, you can replace any link you want.
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply