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 2 of 2

Thread: Download Count

  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    61
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Question Download Count

    I want to make it so everytime the link is clicked there is a number count like next to the link so people can see how many times it was downloaded. Also, it only can go up once for every ip or something that can stop people from raising the count a ton.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,471
    Thanks
    8
    Thanked 1,085 Times in 1,076 Posts
    How secure or reliable does that count need to be? Just sort of an "idea" of how many?

    IP addresses are dynamic and change from connection to connection.
    Basically, reliable only for the time the person is online at that specific time.

    If the download and count is critical, a registered member log-in is the
    only way to control those downloads. The next decision is whether or not
    to retain the IP address forever? So once an IP address downloads, they cannot
    ever download again? Or will you have a time period, like the IP cannot download
    again for 24 hours?

    These decisions affect the method and scripting you will use.

    In any event, you are going to retain the count for each link, so you'll need a
    database of some kind ... most likely using PHP and MySQL.

    This idea of yours sounds sort of like a voting script where a person can vote
    one time for an item (or a link). It retains the number of votes for that item
    and also won't let that IP vote again. You can find scripts like that and simply
    change the "concept" of the script to your own needs. Instead of "votes", it will
    be "downloads".

    EDIT:
    See if this script (or others on this site), might be something you could use:
    http://www.hscripts.com/scripts/php/...ad-manager.php


    .
    Last edited by mlseim; 10-18-2008 at 03:05 AM.

  • Users who have thanked mlseim for this post:

    nathan130 (10-18-2008)


  •  

    Posting Permissions

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