TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Digg like system (http://www.talkphp.com/general/3000-digg-like-system.html)

CoryMathews 06-24-2008 04:18 PM

Digg like system
 
I have been looking into writting a digg like system but I'm having a bit of a problem with the logic of how to make it work.

The part that is getting me is the part about a topic hitting the front page only if it has so many votes in a set amount of time or however they calculate it.

Any tips on where to start or how to go about this? Im not looking for all the fancyness that digg and others have on the site. Just a basic Main page, categories, and upcoming sections.

Also a side note anyone ever used Pligg - Pligg Content Management System or have heard of any other systems that are capabale of doing this?

Ross 06-24-2008 04:58 PM

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.

drewbee 06-24-2008 05:45 PM

Yeah its kind of weird that your asking us this? Your the one that is suppose to determine your business logic, mate. For something like this... the programming part is easy... its determing what you actually want it to do... and how to determine it... those are all on your business logic rules :)

CoryMathews 06-25-2008 11:24 AM

thanks guys, I think it just clicked, I was making it harder then it needs to be.


All times are GMT. The time now is 05:39 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0