TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-24-2008, 04:18 PM   #1 (permalink)
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
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
 
Ross's Avatar
 
Join Date: Jan 2008
Location: England, UK
Posts: 83
Thanks: 3
Ross 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.
Ross 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 Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
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 Search this Thread
Search this Thread:

Advanced Search
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 10:43 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design