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
Fractional ratings for comments Bugs
By Defect , Section Code []
Posted on Fri Dec 15, 2000 at 12:00:00 PM PST
By adding and manipulating a couple variables in the get string request, a user can rate comments in fractions as opposed to the default integers [0..5].

Not a serious bug, all the details i could come up with are below, as well as some side-notes regarding abuse of the GET string in scoop with respect to comment rating.

By adding the two variables and values :

rating_[COMMENT #]=[RATING VALUE]
and
rate=Rate%20All

to the end of a url (as long as it has sid and op set correctly) you can give the comment (comments, if you add more than one rating_[#]) [COMMENT #] any rating you want (fractional or otherwise), as long as it is between 0 and 5 (or 1 and 5 if the user is not trusted).

For examples of the result, go to my last bug report. The two comments (that are not mine) have fractional values (3.73, 4.04) and have only been rated by one person, me (if the values are different, then someone else rated them as well, so the example loses all meaning, sorry.)

If you want to see this for yourself, go to a story that has an unrated comment (diaries work best) and find the # of an unrated comment. Let's say the comment number is '1' and you want to rate it 3.99 : add "&rating_1=3.99&rate=Rate%20All" to the end of the url for the story (excluding quotes of course). When the page reloads, the comment will have the rating 3.99 and the drop down will show that you voted '4'.

This is not a serious bug, i tried to abuse it several ways to see if i could. Tried to rate my own comments by filling in my comments ID, doesn't work. Had an untrusted coworker try to rate comments lower than 1, doesn't work. Tried to rate comments lower than 0 and higher than 5, they just default to either min/max number.

One related thing to note: by adding a correct pid to the url and the two above variables you can rate comments that are nested several levels without actually going to them. it's not a bug so much as just a pointless i'm-too-lazy-to-go-read-comments-that-deep-but-i-really-really-want-to-rate-em-anyway hack. (it just occurred to me, since it makes it easier to rate comments by cutting the time to rate in half or more, it makes it easier for malicious (or benevolent, but i haven't seen many of those) users to mass rate a thread or user's comments to a certain number.)
< Remove comment moderation from diaries. | Formatting in polls not consistent >

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

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· last bug report
· More on Bugs
· Also by Defect

Story Views
  17 Scoop users have viewed this story.

Display: Sort:
Fractional ratings for comments | 5 comments (5 topical, 0 hidden)
That's... odd (none / 0) (#1)
by rusty on Fri Dec 15, 2000 at 12:59:46 PM PST

I completely know why this works. It honestly never occurred to me that anyone would try entering fractional ratings.

As you note, it does protect against all the kinds of abusive rating that we could think of. I'm actually kind of amused by this. I almost want to leave it as just a weird quirk of the system.

Anyway, it's another one-line fix. Just add an int() to the rating filter. If anyone wants to do it, feel free. Otherwise I'll probably pop it in there next time I'm poking at stuff.



one more note (none / 0) (#2)
by Defect on Mon Dec 18, 2000 at 04:36:21 PM PST

The fractional ratings just round to the nearest integer the next time someone rates, so this whole hack is virtually pointless except for a little fun at the beginning (unfortunately :( ).



Thanks (none / 0) (#3)
by jacksmith on Wed Jan 22, 2014 at 02:08:15 AM PST

but it didn't work and pass4sure HP2-Z27 braindumps have that, so I removed it again. I've gone through all the vars and blocks, and I've gone through all of the kuro5hin HTML source, and I can't figure out what I'm missing. Since my "dynamic insertion" links are obviously messed up, http://www.pass4sures.co/HP2-Z27.html



reply (none / 0) (#4)
by merlinjohn on Thu Jun 01, 2017 at 08:34:54 AM PST

It is always possible to change the settings of the comment section as per the requirement. This write up explains about rating the comments in fractions as opposed to the default integers. I found them really useful and keep sharing more like this again in your blog. medical billing outsourcing companies



best bathroom remodeling queens (none / 0) (#5)
by Pervez on Sat Apr 13, 2019 at 12:45:48 PM PST

It was eventually subsequently dependably thus enjoyment to ascertain you are waiting by your webpages. Uncover a wonderful statistic, by means of regards when suggesting. Already go along with right best bathroom remodeling queens That should advantage many people an unusually great amount right into great understanding.



Fractional ratings for comments | 5 comments (5 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