Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-18-2008, 12:19 AM   PM User | #1
nathan130
New Coder

 
Join Date: Jul 2008
Posts: 61
Thanks: 10
Thanked 0 Times in 0 Posts
nathan130 is an unknown quantity at this point
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.
nathan130 is offline   Reply With Quote
Old 10-18-2008, 02:59 AM   PM User | #2
mlseim
Master Coder

 
mlseim's Avatar
 
Join Date: Jun 2003
Location: Cottage Grove, Minnesota
Posts: 9,056
Thanks: 8
Thanked 1,032 Times in 1,023 Posts
mlseim has a spectacular aura aboutmlseim has a spectacular aura aboutmlseim has a spectacular aura about
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..
mlseim is online now   Reply With Quote
Users who have thanked mlseim for this post:
nathan130 (10-18-2008)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:00 AM.


Advertisement
Log in to turn off these ads.