Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Link Counter

  1. #1
    Ray
    Ray is offline
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Perth Western Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up Link Counter

    I am new to all this so go easy, thanks... First G'day all, I am Ray from downunder. I have a problem, I need to have a counter fitted to every link in my download section of my new web site I am building. How do I get a text counter to count the times the link is click. ? I need it to look like {Cessna 152.zip Downloads 3453} I hope you can help me.. Thanks again.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    sorry to tell you that this cannot be chieved using javascript, your best bet will be PHP to make a counter or anything to record stats
    photoshop too expensive? use the GIMP! www.gimp.org

  • #3
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    also, checking the number of times the link is clicked wouldn't necessarily tell you the number of times the file is downloaded. you'd need a system in place to tell you the number of times the file was requested. most systems for keeping track of site traffic will do this for you, so if you have one of those, you should be all set.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #4
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Welcome Ray, to do what your asking you would need a couter for your page(s). This will create logs for you to show you who is visiting your pages, when, with what browser, etc., depending on the counter you use. You don't really 'fit' it to all of your links, but you can set-up the counter so your site logs will show you, for example, how many times 'Cessna_152.zip has been accessed.

    Unless you use a web based counter like IndexTools, which is relatively less reliable and provides you with more limited information about your visitors than something server-side, you'll need to set something up 'server-side' for your counter. There are counter scripts available in quite a few different server side languages. Does your host allow you to use PHP or CGI? What does your host allow? Reply back with some details about your host and / or preference of server side languages and someone will help you further. Good luck .
    Last edited by boxer_1; 06-29-2002 at 12:50 PM.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #5
    Ray
    Ray is offline
    New to the CF scene
    Join Date
    Jun 2002
    Location
    Perth Western Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for pointing me in the right direction. This can save a lot of time..


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •