Extension talk:ArticleFeedback/Archive

From MediaWiki.org
Jump to navigation Jump to search

Dependencies

Does this depend on SimpleSurvey?

Relation to ReaderFeedback?

What is the relation of this to Extension:ReaderFeedback? Is this intended to replace ReaderFeedback in the future? --Vigilius 11:32, 10 January 2011 (UTC)

See also Thread:Talk:Article feedback/Extension:ReaderFeedback. Helder 13:26, 27 July 2011 (UTC)

A question about usage in other wikis

Thank you all a lot for this greatest tool ever. I decided to test this extension on my wiki (MediaWiki-1.16.1) and now I have installed it with required database tables and SimpleSurvey extension. But I cannot understand what should I do to turn on ArticleFeedback form on some (or probably all) articles of my wiki? How to choose which article will use this tool? Thank you in advance for any response. AvalarMS 15:52, 21 January 2011 (UTC)

Set $wgArticleFeedbackCategories (see ArticleFeedback.php). —Emufarmers(T|C) 01:43, 22 January 2011 (UTC)
Have you back-ported this extension ot 1.16.1? The current version can work with MediaWiki 1.18alpha+ ... --Katkov Yury 11:03, 28 November 2011 (UTC)

Changing the number of rateable items

I'm trying to change the number of values that can be voted from 4 (Trustworthy, Objective. Complete, Well-written) to 2. Or at least to make 2 of them invisible. Can this be done? I tried to play with ext.articleFeedback.js, but I got only errors. --79.112.69.251 19:36, 20 June 2011 (UTC)

I've created Bug 29500 requesting an easy way to make the number of rateable categories configurable.
For now, you could try to hide two of the categories applying CSS to hide the appropriate elements. E.g.:
.articleFeedback-ratings div[rel="trustworthy"],
.articleFeedback-ratings div[rel="wellwritten"] {
    display: none;
}
Helder 20:59, 20 June 2011 (UTC)
Thank you. I also managed with $wgArticleFeedbackRatings = array( 1, 2); and deleting from ArticleFe~articleFeedback/ext.articleFeedback.js two of the options from "var config = {'ratings':". Of course, your solution is more elegant. Thank you again.
--79.112.69.251 21:18, 20 June 2011 (UTC)

how do you rename the values?

Before I install an astounding 5 extensions, can i change the Trustworthy, Objective. Complete, Well-written to something different? thank you. Igottheconch 21:32, 19 July 2011 (UTC)

Yes, I'd be very interested to know this too. I'm sure it won't be too difficult to dig into the code to see how it works, but if anyone directly involved could shed any light and save us all repeating this, that would be great! Neil --94.31.14.3 15:13, 20 July 2011 (UTC)

Yes! I would very much appreciate the same information, I have been trying to figure out how to customize the questions as well.

Indeed, I'm amazed to see this isn't configurable! --Dan Bolser 16:40, 12 October 2011 (UTC)

Don't worry everybody, Roan Kattouw says you can do this 'just fine'. https://bugzilla.wikimedia.org/show_bug.cgi?id=29500

He doesn't say how.

It seems a shame that the table isn't designed so that any number and name of value could be used without modifying the table to store the data (i.e. using a normalized data model. I guess this isn't done for reasons of efficiency, but I'm surprised the impact is so large that such an inconvenient model was chosen.) --Dan Bolser 16:51, 12 October 2011 (UTC)

Hmm, I guess you're right that it would've been more convenient to use rating names instead of rating IDs, or to store the mapping outside of the database. But the AFT database schema is not something I'm very proud of anyway.
I thought changing this cleanly was possible, and I was about to do it on a WMF wiki, but I've discovered an additional issue which means I'll have to refactor a few things such that this'll actually work nicely. I'll report back here when that's done. --Catrope 15:06, 25 October 2011 (UTC)
Alright, so I fixed ArticleFeedback in r100806. You can now add custom rating types as follows.
  • Come up with a name for your new rating type. Ideally this is all lowercase without any special characters, e.g. 'wellwritten'. Rating names must be unique. The rating types used by default are 'trustworthy', 'objective', 'complete' and 'wellwritten'.
  • Create MediaWiki: pages for the various rating type messages. For e.g. the 'wellwritten' type, these are MediaWiki:articlefeedback-field-wellwritten-label (the name of the rating), MediaWiki:articlefeedback-field-wellwritten-tip (the tooltip for the question mark to the left of the rating name) and MediaWiki:articlefeedback-field-wellwritten-tooltip-1 through -5 (the tooltips for each of the five rating stars). The messages for the standard four rating types are built into the extension, for custom rating types you'll have to create MediaWiki: pages yourself.
  • Set $wgArticleFeedbackRatingTypes accordingly. This is an array mapping integers (rating IDs) to strings (rating types). The default value is array( 1 => 'trustworthy', 2 => 'objective', 3 => 'complete', 4 => 'wellwritten' ) . Rating IDs can be any number (they don't have to be sequential, for instance), as long as each rating ID is greater than zero and is used only once. You should make sure that rating IDs are never reused; funny things may happen if you reuse them.
This is what I used to customize AFT on meta, enabling it for a few fundraiser translation pages and setting $wgArticleFeedbackRatingTypes = array( 5 => 'accurate', 4 => 'wellwritten', 6 => 'errorfree' ); . Someone should probably reshape this into a proper howto or documentation thingy, I don't have much time to spend on ArticleFeedback these days. --Catrope 10:05, 27 October 2011 (UTC)