homepage Welcome to WebmasterWorld Guest from 23.20.91.134
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Digg, how do they do their "Popular"
alphacooler




msg:1291446
 8:17 pm on Jun 26, 2006 (gmt 0)

How would one go about displaying "popular" entries like Digg does on their front page? I would think the easiest way would be to query the entries with the most "votes" within a time period (say 24hrs), but there is definitely more to this than just that.

Any ideas?

 

eelixduppy




msg:1291447
 8:39 pm on Jun 26, 2006 (gmt 0)


I would think the easiest way would be to query the entries with the most "votes" within a time period (say 24hrs), but there is definitely more to this than just that.

I guess it would depend on what you thought of as popular--Whether it be the number of votes, the rating from those votes, or how many people actually viewed that specific content, or a combination of the these and more. Once you figure that out, a simple query correctly executed should give you the results you want, that is, if the data is stored correctly too ;)

Good luck!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved