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.
< Of rdf feeds and high-bit characters | Need Some Help Talking To Scoop's MySQL Database >

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
  34 Scoop users have viewed this story.

Display: Sort:
Patch For AdminStories.pm | 4 comments (4 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





Payday Loans (none / 0) (#2)
by Pervez on Sun Apr 15, 2018 at 02:00:19 AM PST

When I the truth am ended up simply just seeking your easiest dissertation generating consultant firms moreover founded your internet site the good news is. We've been drastically written content moreover you may have defined your thinking nevertheless could always maintain researching our web-site Payday Loans In addition to thanks a lot while for several complete the same task. Preserve producing.



bathroom remodeling staten island (none / 0) (#3)
by Pervez on Sun Mar 31, 2019 at 12:09:00 AM PST

Even though amazing web page, on the other hand maybe you have developed this great site cooler if you happen to may possibly configure your current words and phrases changer including on the other hand the same you've gotten attained a wonderful career. Now just click this specific bathroom remodeling staten island Kind regards associated with amazing work.



aliana (none / 0) (#4)
by hasnainkhatri on Tue May 05, 2020 at 07:45:44 AM PST

I'm impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, you ve hit the nail on the head. Your blog is important.. best CBD oil for pain



Patch For AdminStories.pm | 4 comments (4 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