General Community > Scripting Help

Click counter on HTML Image?

(1/4) > >>

OzzyMozzy:
Hi, I'm using SMF 2.0.2 with SimplePortal. I have a left block Custom HTML that is an image members can click on to take them to a web page.

I want to be able to count how often the image is clicked on, can this be done? I would also like it if only i could see the count.

Labradoodle-360:
It'd have to be a custom PHP block, and you'd have to integrate it with $modSettings, or a database table of some sort.

ApplianceJunk:
One way would be to use https://bitly.com/.

Create a shorten link with https://bitly.com/ and use it in place of the regular link.
https://bitly.com/ will track the stats for you.

Old Fossil:
Hi OzzyMozzy

As this is a portal themed question you should ask in the mods support topic or on www.simpleportal.net

I myself am not sure if or how this could be done however I know someone at the above link will be in a better position to help.

ApplianceJunk:
I see no reason why https://bitly.com/ won't work for them.

Navigation

[0] Message Index

[#] Next page

Go to full version