Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Patch For AdminStories.pm New Code
By Talez , Section Code []
Posted on Sat Mar 23, 2002 at 12:00:00 PM PST
This is my first patch so it may be badly coded or even incorrect in some parts. Hopefully, if it does work, this patch will change the frontpage posting algorithm to be more in tune with the community's wishes.

At the moment, the scoop frontpage algorithm only takes into account the +1 votes for a story to put it on the front page. I do think this is sort of unfair because to stop a story from appearing on the front page, you have to +1 section and a -1 won't affect it.

I did write a Meta/K5 article about it but quickly withdrew it after I got a couple of responses to the tune of "tweak the code yourself". So anyway, here I am with my first scoop patch. The actual diff file is here.

I hope the code is mostly self-explanatory, but the basic algorithm is that now all +1 and -1 votes count towards the total. Since more votes are now counted, the frontpage thresthold has been lowered to 35% of the total. The number of frontpage votes also must outnumber the number of "Dump It" votes.

Anyway, I ran it past a few people in #scoop on slashnet and they said it looked fairly OK. If it is badly coded or just plain wrong, could someone possibly help me out with this patch. I hope it's worth accepting into the scoop codebase.
< Add images, background tints, sounds, etc | Story Vote Redirect Change >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Poll
This patch is...
· Fairly Good 100%
· Badly Coded 0%
· Pointless 0%

Votes: 1
Results | Other Polls

Related Links
· Scoop
· here
· More on New Code
· Also by Talez

Story Views
  32 Scoop users have viewed this story.

Display: Sort:
Patch For AdminStories.pm | 1 comment (1 topical, 0 hidden)
Perhaps (none / 0) (#1)
by Mysidia on Sun Mar 24, 2002 at 01:33:38 PM PST

Posting to the front page should be a different decision from posting.

For example, instead of just having +1 fp; +1; 0, and -1 votes, have: +1 fp, section; +1 section; +1 section, no fp; +1 fp, no section; +0 fp, section; -1 fp, section

In other words.. have "two" scores a section score and a front-page score, both or one of which could be modded by a vote.

IOW, it maps like this.. if a story gets rejected from its section then section is demoted to diary or replaced with a "special" section or someting but it could still be fp, ie, possible votes:


			   fp score   sec score
Post: front page, section     +1	 +1   
      front page	      +1	 +0
      section		      +0	 +1
      don't care	      +0	 +0
      front page only	      +1	 -1
      section only	      -1	 +1
      dump it		      -1	 -1





Patch For AdminStories.pm | 1 comment (1 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search