Gravity mode for submissions voting would rock

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 11-15-2007, 08:07 PM
not2serious's Avatar
Pligg Donor
Pligg Version: 1.1.5
Pligg Template: Westie
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 229
Quote:
Originally Posted by hobgobbler View Post
I'm trying to divide the number of votes by the number of days ago it was submitted to get "gravity" and use that to decide the order of links on index.php. I think it would work well with the Stars voting method. I just don't know how to do it.
I am in the same boat with you, as far as writing code goes. I would suggest a modification to the formula for the five star method.

Instead of using the vote total, how about using the vote average? This would allow the posts with higher vote averages to decend down the index list at a slower pace than the votes with a lower average rating.
Reply With Quote
  #12 (permalink)  
Old 12-29-2007, 06:58 PM
New Pligger
Pligg Version: 9.8.0
Pligg Template: hacked yget
 
Join Date: Nov 2007
Location: Savannah GA
Posts: 22
Excellent hack. Thanks!
Reply With Quote
  #13 (permalink)  
Old 12-29-2007, 08:06 PM
Constant Pligger
Pligg Version: Pligg 9.9
Pligg Template: Custom
 
Join Date: Jul 2007
Location: Ottawa, Ontario
Posts: 146
Can someone make a small how-to on how to modify the code to create something like everyone has been suggesting:

Gravity = Averagevotes/timeofsubmission

Then sort the published page by gravity. But we must not forget that the story should disappear after a defined amount of time that we can set.

I hate formulas, I cant manage to configure anything in it.
Reply With Quote
  #14 (permalink)  
Old 02-04-2008, 10:30 PM
nzbullet's Avatar
Constant Pligger/Coder
 
Join Date: Jun 2007
Location: New Zealand
Posts: 115
Quote:
Originally Posted by dollars5 View Post
Actually we did for a client to have a very custom formula and it involved few code changes that did more than just ordering the posts. If you are looking for just ordering based on any recent activity linka's code would come to your rescue.
Was the "gravity mod" a paid mod or something that has/will be shared with the pligg community. I ask as I would like to have Gravity and not just recently modified.
Reply With Quote
  #15 (permalink)  
Old 02-06-2008, 11:03 AM
New Pligger
 
Join Date: Feb 2008
Posts: 16
can someone shed some light on this:

gravity = link_votes/$days

and then

if(!isset($_REQUEST['search'])){$search->orderBy = "gravity DESC";}


Using this or similar formula to allow stories to re-surface as they receive more votes? Shouldn't be that difficult to implement, i'm just not sure what variables to use or where to incorporate the code? Anyone?
Reply With Quote
  #16 (permalink)  
Old 02-27-2008, 07:33 AM
jacksparrow's Avatar
Pligg Donor
Pligg Version: 9.9.0
 
Join Date: Feb 2007
Location: NJ
Posts: 27
Is it possible to modify Linkas's code to eliminate 'bury' clicks...

Thanks.
Reply With Quote
  #17 (permalink)  
Old 06-18-2008, 11:37 AM
New Pligger
Pligg Version: beta 9
 
Join Date: Mar 2008
Posts: 8
Quote:
Originally Posted by jacksparrow View Post
Is it possible to modify Linkas's code to eliminate 'bury' clicks...

Thanks.
Bump.

I haven't mastered SQL yet, but I'm learning a bit.

I know we can find out the number of days since a story was published with something similar to "select datediff(day,link_published_date,today)"

Does anyone know how to realize this in PHP code so that we can sort by votes/days since submission?
Reply With Quote
  #18 (permalink)  
Old 06-18-2008, 12:23 PM
keg01's Avatar
Pligg Donor
Pligg Version: 1.0.0
Pligg Template: exp realnews
 
Join Date: Oct 2007
Location: Atl
Posts: 74
There was a similar request over here I stumbled on this week:

http://forums.pligg.com/general-help...ber-votes.html


I suggested a custom filter that could be an example to follow to accomplish what you're after in this thread, I think.

This example was for gen3ric's desire to only have items that have been published in the last 4 hours displayed on the index (published) sorted descending by votes. Not exactly what you're asking but I think the outline of the steps will help you get there with your own understanding of sql.
Reply With Quote
  #19 (permalink)  
Old 06-18-2008, 02:02 PM
dollars5's Avatar
Pligg Donor
 
Join Date: Dec 2006
Location: India
Posts: 1,960
Gravity mode is something totally different and works the same way as reddit ordering the stories by rate of activity and you can see it live at Buzzdup / Published (previously linka.co.nz) or at Kwoff / FRONT PAGE try voting on stories you will know how it works. This mod is available under a commercial license - if you want an exclusive demo or purchase contact sales [at] dollars5 [dot] com

We also have it implemented on few more sites - but we cannot disclose here due to NDA. A total of 8 sites are using this gravity mode now.
Reply With Quote
Reply

Thread Tools
Display Modes




Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development