View Single Post
Old 06-24-2008, 05:58 PM   #2 (permalink)
redSHIFT
The Contributor
 
redSHIFT's Avatar
 
Join Date: Jan 2008
Location: England, UK
Posts: 69
Thanks: 3
redSHIFT is on a distinguished road
Default

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.
redSHIFT is offline  
Reply With Quote