Log in

View Full Version : Tracking number of times a link is clicked


amykhar
09-19-2001, 10:35 PM
How can I maintain a counter of how many times a link has been clicked?

I am working on the related links here:
http://www.eaforums.com/forumdisplay.php?s=&forumid=28

and would like to add a column to the table and to my database tracking how many times each link has been clicked.

Then, I might choose to order the links by popularity instead of just the order in which they are entered in the database.

Sorry for the stupid question :)

Amy

Sinecure
09-19-2001, 10:56 PM
Well I dont think its a stupid question. I have no idea what so ever :( I guess we'll just have to wait and see what the gurus say :D

mister
10-19-2001, 02:43 PM
Has that 'Related Links' hack been released?
I'd be interested in that :)

(i can help you out with the link counter, also, if you havent figured it out yet)

amykhar
10-19-2001, 02:49 PM
No. I never documented it. Sorry :(

Bane
10-19-2001, 02:57 PM
Amy, I actually have this in the works to go along with vbStats. Just didnt make it in yet.

maestrosdelweb
01-20-2003, 02:19 AM
Hi.

I need this for my forum and would like to help.

Any advance?

I can program something next weekend but first I need to know if there's any advance with this?

This is what we need:

A new table with 2 fields:

url
visits

A .php file to add all the new links to a database and compare if it exists. If the link is allready in the database it will add a visit.
And then just redirect to the link.

And a template modification where we'll add the url of the .php file before the url.

maestrosdelweb
01-28-2003, 03:17 PM
I achive this hack. :banana:

So, now my first hack is ready.

Check it out:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=48241