TalkPHP
 
 
Account Login
Latest Articles
» How to keep your forms from double posting data
» cURL Basics
» Securing your PHP applications Part 1
» The way the function rolls
» Database Abstraction with Zend_Db - Part 2
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Display Modes
Old 06-24-2008, 04:18 PM   #1 (permalink)
The Acquainted
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 162
Thanks: 5
CoryMathews is on a distinguished road
Default 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?
CoryMathews is offline  
Reply With Quote
Old 06-24-2008, 04:58 PM   #2 (permalink)
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
Old 06-24-2008, 05:45 PM   #3 (permalink)
The Acquainted
 
drewbee's Avatar
 
Join Date: May 2008
Posts: 175
Thanks: 9
drewbee is on a distinguished road
Default

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 :)
Send a message via AIM to drewbee
drewbee is offline  
Reply With Quote
Old 06-25-2008, 11:24 AM   #4 (permalink)
The Acquainted
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 162
Thanks: 5
CoryMathews is on a distinguished road
Default

thanks guys, I think it just clicked, I was making it harder then it needs to be.
CoryMathews is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:33 AM.

 
     

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