06-24-2008, 04:58 PM
|
#2 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Location: England, UK
Posts: 83
Thanks: 3
|
For this you're going to need to log a) the topic and b) 'digg's to the topic (lets call them votes for this).
When someone 'vote's a story the vote, user and date/time (or a timestamp) needs to be logged in the database. Then when you bring up the front page stories your algorithim needs to have a) the set amount of time - might need to be dynamic; b) whether or not the story reaches the amount of votes necessary.
I'm not sure of the code you'd need to find the number of votes spread over an amount of time however.
|
|
|
|