Extension talk:ReaderFeedback

From mediawiki.org
Latest comment: 11 years ago by Gustavormello in topic A way to exclude certain pages?

Undefined variable: stylepath on line 27[edit]

Notice: Undefined variable: stylepath in PATH/extensions/ReaderFeedback/ReaderFeedback.hooks.php on line 27.

Download[edit]

Hi there, the download of this extension is not available throught the extension-distributor or has another name there. Who may help? Thank you --kgh 19:53, 5 August 2009 (UTC)Reply

Now testing[edit]

Here: http://readerfeedback.labs.wikimedia.org/ and here: http://strategy.wikimedia.org --Nemo bis 11:24, 24 August 2009 (UTC)Reply

The former could use some administrative help due to vandalism. I volunteer.   — Jeff G. ツ 21:41, 8 December 2010 (UTC)Reply

Change rating[edit]

From the testing on Strategic planning wiki: you should be able to change rating, or at least add votes (e.g., if I have rated "Feasibility" and then, after some discussion or other, I want to rate "Priority", too). It would be useful also to remember what the user voted. Pages can change greatly over time... Nemo bis 11:28, 24 August 2009 (UTC)Reply

LikedPages and ProblemPages should show more results[edit]

On Stratecic planning wiki, LikedPages shows just one item: this is not so useful. (I report here because I'm not sure it's a real bug and I suppose the developers already know that, but maybe they don't.) --Nemo bis 13:44, 26 August 2009 (UTC)Reply

Ratings for all pages in one table as output[edit]

On http://strategy.wikimedia.org/ I'm trying to use reader feedback intensively on all proposals. There are over 700 proposal pages. I would like to have the reader feedback on all 700+ proposal pages. What I imagine is one table (space or comma delimeted) with title, and number of votes per weight, per tag, for example:

P r i o r I m p a c F e a s i D e s i r
1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
A "be bold" campaign 0 0 2 4 5 0 0 4 3 4 0 1 2 2 6 0 0 0 0 0
A series of videos to dissuade vandals, encourage new editors, welcome and inform newbies of key editing policies and perhaps more 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 0
Bei JahresrĂźckblicken Fernsehereignisse schreiben. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Brand name consolidation 7 3 3 3 3 3 0 2 7 7 6 3 1 2 4 0 1 1 0 0
Can Wikimedia Become A 300 Million People Movement By 2020? 0 0 0 0 3 0 0 0 0 3 0 0 2 0 0 0 0 1 0 0
Directed community fundraising 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0

Can someone help me in retrieving these data without having to manually visit over 700 pages? Dedalus 14:01, 16 September 2009 (UTC)Reply

Database Error[edit]

If I want to rate a page in my wiki, a database error occures.


YPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> Internal Error

A database error has occurred
Query: SELECT rfb_ratings FROM `wikirevision` FORCE INDEX (page_timestamp),`wikireader_feedback` WHERE rev_page = '36' AND (rev_id = rfb_rev_id) AND (rfb_timestamp >= '20090920000000') AND (rev_timestamp >= '20090911123847')
Function: ReaderFeedback::getVoteAggregates
Error: 1052 Column 'rfb_ratings' in field list is ambiguous (localhost)


What does this mean?--Harmageddon 13:49, 21 October 2009 (UTC)Reply


At some point ReaderFeedback was changed to use this column when it didn't before? I know it was missing from the postgres table spec. Take a look at ReaderFeedback.sql and add update your wikireader_feedback table to include the missing rfb_ratings column (and any others missing, maybe rfb_timestamp?). It's a mediumblob not null. --Reed Hedges 12 May 2010

Issue in the display of text for rating[edit]

After implementing it today (Nov 1, 2009), this is how the text appears in the box ...

<readerfeedback-Relevance>: <readerfeedback-Completeness>: <readerfeedback-Quality>: <readerfeedback-Presentation>:

Basically, it is showing "<readerfeedback-" at the begining of the rating tag and ">" at the end of the tag.

Does anyone else has encountered this issue? I downloaded today's development version (File Name: ReaderFeedback-trunk-r58393.tar.gz)

Also on special pages (page rating), in the dropdown box, the list has similar issue. Displaying all those extra characters with the tag.

Thanks, Neeraj

Generally that means pages in mediawiki namespace weren't created properly. (Note this is just a geuss, i don't actually know what i'm talking about). Did you run maintenance/update.php? Maybe try creating the pages mediawiki:readerfeedback-Relevance (and anything else that appears like that). Bawolff 07:17, 30 December 2009 (UTC)Reply

I have the same problem, as above. Thanks, KornĂŠl

Bawolff's suggestion worked like a charm. For every rating type (Relevance, Completeness, etc) you must create a page and put text in it. That text becomes the label that precedes the dropdown.

--Stanimalz 12:41, 15 February 2012 (UTC)Reply

(Resolved) What happened to Problem and Liked pages?[edit]

I see references to Special:ProblemPages and Special:LikedPages, but these are missing from my installation and from the labs wiki. What happened to them or what am I missing? Thorncrag 02:15, 31 January 2010 (UTC)Reply

Okay so I found the answer to my own question here, but yet I'm still a little unclear as to how this works. Thorncrag 02:18, 31 January 2010 (UTC)Reply
Okay, got it... =) Thorncrag 02:24, 31 January 2010 (UTC)Reply
# What number of page votes (for the average above) is considered significant?
# (number of recent reviews to be a decent sample size)
$wgFeedbackSizeThreshhold = 1;

Suggestion[edit]

It would be nice if there was a magic word to return the ratings to be used in templates. Danilo.mac 21:47, 20 February 2010 (UTC)Reply

Label characters in PNG Page ratings over time graphs[edit]

The PNG graphs produced on the Page rating history page often don't render row label characters correctly. For example:

The labels just show three square boxes. The "View as SVG" version of the same graph renders correctly.

Compare the above with the graphs produced for the same article when the selected Time period value is last year.

Does anyone know what causes this to happen, or what the remedy is?

--Obliquemotion 18:03, 22 March 2010 (UTC)Reply

It needs to be changed to render svgs on the image scaler cluster, not the general apaches...they don't have the same settings are render wrongly. File: pages render on the image scalers. Aaron 19:39, 12 May 2010 (UTC)Reply

PostgreSQL[edit]

I was able to get ReaderFeedback r65963 to work in Postgres by adding some missing fields to the reader_feedback table:

  rfb_timestamp TEXT NOT NULL DEFAULT '',
  rfb_ratings  BYTEA NOT NULL,

(these are in ReaderFeedback.sql but are missing from ReaderFeedback.pg.sql)

I also made this change in ReaderFeedback.class.php line 186:

  global $wgDBtype;
  if ($wgDBtype == 'postgres')
      $cutoff = $dbr->addQuotes( wfTimestamp( TS_POSTGRES, $cutoff_unixtime ) );
  else
      $cutoff = $dbr->addQuotes( wfTimestamp( TS_MW, $cutoff_unixtime ) );

the format of the timestamp datatype in postgres is different than in mysql (TS_MW is one long string of numbers, postgres needs date and time separated by a space, for one.) (Maybe the Mediawiki Database class has a method that can do this though? I didn't look)

--Reed Hedges (reed at mobilerobots.com) May 12, 2010

r66285 fixes the timestamp format. Aaron 19:38, 12 May 2010 (UTC)Reply

Escaped HTML in labels output using wfMsgHtml and wfMsg (with custom tags?)[edit]

I have changed the quality tags used (from to {reliability, completeness, npov, presentation} to {Accuracy, Completeness and Clarity}), by just setting $wgFeedbackTags in my LocalSettings.php. Not sure if I should have changed anything elsewhere. I note they don't show up in Special:SystemMessages.

When the tags are shown on pages (e.g. in the feedback form at the bottom of all pages, ), I see extra HTML escape entities being added before and after, e.g. <Accuracy>. Hacking .class and files in specialpages to not pass the tag text through wfMsgHtml or wfMsg functions resolves this. I don't really know much about wfMsgHtml or wfMsg or how mediawiki output is done, so I don't know the right way to fix this. I only did this in public pages, so I don't have a complete list of where this can be done.

I'm using r65963.

--Reed Hedges (reed at mobilerobots.com) May 12, 2010

When you see items like <foo> generally means you need to create the page mediawiki:foo, even if this page does not appear in special:allmessages. Bawolff 23:21, 27 September 2010 (UTC)Reply

Exporting Data[edit]

Hi,

Is there any way to export data to CSV or Excel?

--66.9.224.147 17:02, 21 March 2011 (UTC)Reply

A way to exclude certain pages?[edit]

Hey guys, this extension is awesome! Is there a way for this to be used as a template or to exclude specific pages? It's showing up on my main page which isn't actually an article, but I'm not complaining just asking. :) ~~

Also looking for a way to do this. Did anyone find out? Gustavormello (talk) 02:44, 19 February 2013 (UTC)Reply

As this release is unmaintained I guess this has to be DIY. I found a hacky way to limit the rating to one category which worked for me:

Caveat Emptor

Modify ReaderFeedback.hooks.php

    public static function addFeedbackForm( &$data, $skin ) {
        global $wgOut;
        $title = $skin->getTitle();
        if( $wgOut->isArticleRelated() ) {
            # Modification
            $all_cats = implode (' ', $wgOut->getCategories());
            $feedbackCats = 'CategoryNameHere';
            if (!preg_match ("/$feedbackCats/", $all_cats)) {
                return true;
            }
            #/ Modification
            global $wgRequest, $wgUser;
            ...

and

public static function ratingToolboxLink( &$skinTemplate ) {
        global $wgOut;
        # Modification
        $all_cats = implode (' ', $wgOut->getCategories());
        $feedbackCats = 'CategoryNameHere';
        if (!preg_match ("/$feedbackCats/", $all_cats)) {
            return true;
        }
        #/ Modification
        if( isset( $skinTemplate->data['nav_urls']['ratinghist'] ) ) {
        ...
[[User:CookipediaChef~mediawikiwiki]] 15:54, 22 December 2015 (GMT)

ReadefeedBack error (version r85033) with MW 1.7 and Semantic MediaWiki (Version 2011-08-24.20110824)[edit]

Thank you for taking a moment to review this page! Could not create file directory! Backtrace:

  1. 0 /Library/WebServer/Documents/WikiDeb/extensions/ReaderFeedback/specialpages/RatingHistory_body.php(131): RatingHistory->makeSvgGraph('reliability', '/Library/WebSer...')
  2. 1 /Library/WebServer/Documents/WikiDeb/extensions/ReaderFeedback/specialpages/RatingHistory_body.php(67): RatingHistory->showGraphs()
  3. 2 /Library/WebServer/Documents/WikiDeb/includes/SpecialPage.php(578): RatingHistory->execute(NULL)
  4. 3 /Library/WebServer/Documents/WikiDeb/includes/Wiki.php(251): SpecialPage::executePath(Object(Title))
  5. 4 /Library/WebServer/Documents/WikiDeb/includes/Wiki.php(63): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
  6. 5 /Library/WebServer/Documents/WikiDeb/index.php(114): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
  7. 6 {main}

MediaWiki 1.23alpha[edit]

When submitting feedback, for the records:

Notice: Undefined variable: tags in 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php on line 55 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 0.4488 3439240 4. MediaWiki->performRequest() 
/vagrant/mediawiki/includes/Wiki.php:586 0.7575 4424528 5. SpecialPageFactory::executePath() 
/vagrant/mediawiki/includes/Wiki.php:285 0.7679 4515448 6. SpecialPage->run() 
/vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php:489 0.7682 4515448 7. ReaderFeedbackPage->execute() 
/vagrant/mediawiki/includes/specialpage/SpecialPage.php:374 Notice: Undefined index: in 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php on line 55 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 0.4488 3439240 4. MediaWiki->performRequest() 
/vagrant/mediawiki/includes/Wiki.php:586 0.7575 4424528 5. SpecialPageFactory::executePath() 
/vagrant/mediawiki/includes/Wiki.php:285 0.7679 4515448 6. SpecialPage->run() 
/vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php:489 0.7682 4515448 7. ReaderFeedbackPage->execute() 
/vagrant/mediawiki/includes/specialpage/SpecialPage.php:374 Notice: Undefined variable: tags in 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php on line 55 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 0.4488 3439240 4. MediaWiki->performRequest() 
/vagrant/mediawiki/includes/Wiki.php:586 0.7575 4424528 5. SpecialPageFactory::executePath() 
/vagrant/mediawiki/includes/Wiki.php:285 0.7679 4515448 6. SpecialPage->run() 
/vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php:489 0.7682 4515448 7. ReaderFeedbackPage->execute() 
/vagrant/mediawiki/includes/specialpage/SpecialPage.php:374 Notice: Undefined index: in 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php on line 55 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 0.4488 3439240 4. MediaWiki->performRequest() 
/vagrant/mediawiki/includes/Wiki.php:586 0.7575 4424528 5. SpecialPageFactory::executePath() 
/vagrant/mediawiki/includes/Wiki.php:285 0.7679 4515448 6. SpecialPage->run() 
/vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php:489 0.7682 4515448 7. ReaderFeedbackPage->execute() 
/vagrant/mediawiki/includes/specialpage/SpecialPage.php:374 Notice: Undefined variable: tags in 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php on line 55 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 0.4488 3439240 4. MediaWiki->performRequest() 
/vagrant/mediawiki/includes/Wiki.php:586 0.7575 4424528 5. SpecialPageFactory::executePath() 
/vagrant/mediawiki/includes/Wiki.php:285 0.7679 4515448 6. SpecialPage->run() 
/vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php:489 0.7682 4515448 7. ReaderFeedbackPage->execute() 
/vagrant/mediawiki/includes/specialpage/SpecialPage.php:374 Notice: Undefined index: in 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php on line 55 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 0.4488 3439240 4. MediaWiki->performRequest() 
/vagrant/mediawiki/includes/Wiki.php:586 0.7575 4424528 5. SpecialPageFactory::executePath() 
/vagrant/mediawiki/includes/Wiki.php:285 0.7679 4515448 6. SpecialPage->run() 
/vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php:489 0.7682 4515448 7. ReaderFeedbackPage->execute() 
/vagrant/mediawiki/includes/specialpage/SpecialPage.php:374 Notice: Undefined variable: tags in 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php on line 55 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 0.4488 3439240 4. MediaWiki->performRequest() 
/vagrant/mediawiki/includes/Wiki.php:586 0.7575 4424528 5. SpecialPageFactory::executePath() 
/vagrant/mediawiki/includes/Wiki.php:285 0.7679 4515448 6. SpecialPage->run() 
/vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php:489 0.7682 4515448 7. ReaderFeedbackPage->execute() 
/vagrant/mediawiki/includes/specialpage/SpecialPage.php:374 Notice: Undefined index: in 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php on line 55 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 0.4488 3439240 4. MediaWiki->performRequest() 
/vagrant/mediawiki/includes/Wiki.php:586 0.7575 4424528 5. SpecialPageFactory::executePath() 
/vagrant/mediawiki/includes/Wiki.php:285 0.7679 4515448 6. SpecialPage->run() 
/vagrant/mediawiki/includes/specialpage/SpecialPageFactory.php:489 0.7682 4515448 7. ReaderFeedbackPage->execute() 
/vagrant/mediawiki/includes/specialpage/SpecialPage.php:374 Warning: Cannot modify header information - headers already sent by (output started at 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php:55) in 
/vagrant/mediawiki/includes/WebResponse.php on line 38 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 1.0897 6691328 4. OutputPage->output() 
/vagrant/mediawiki/includes/Wiki.php:593 1.0980 6700024 5. OutputPage->sendCacheControl() 
/vagrant/mediawiki/includes/OutputPage.php:2007 1.0995 6701072 6. WebResponse->header() 
/vagrant/mediawiki/includes/OutputPage.php:1907 1.0995 6701312 7. header() 
/vagrant/mediawiki/includes/WebResponse.php:38 Warning: Cannot modify header information - headers already sent by (output started at 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php:55) in 
/vagrant/mediawiki/includes/WebResponse.php on line 38 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 1.0897 6691328 4. OutputPage->output() 
/vagrant/mediawiki/includes/Wiki.php:593 1.0980 6700024 5. OutputPage->sendCacheControl() 
/vagrant/mediawiki/includes/OutputPage.php:2007 1.1151 6701080 6. WebResponse->header() 
/vagrant/mediawiki/includes/OutputPage.php:1942 1.1152 6701320 7. header() 
/vagrant/mediawiki/includes/WebResponse.php:38 Warning: Cannot modify header information - headers already sent by (output started at 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php:55) in 
/vagrant/mediawiki/includes/WebResponse.php on line 38 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 1.0897 6691328 4. OutputPage->output() 
/vagrant/mediawiki/includes/Wiki.php:593 1.0980 6700024 5. OutputPage->sendCacheControl() 
/vagrant/mediawiki/includes/OutputPage.php:2007 1.1168 6701096 6. WebResponse->header() 
/vagrant/mediawiki/includes/OutputPage.php:1943 1.1168 6701336 7. header() 
/vagrant/mediawiki/includes/WebResponse.php:38 Warning: Cannot modify header information - headers already sent by (output started at 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php:55) in 
/vagrant/mediawiki/includes/WebResponse.php on line 38 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 1.0897 6691328 4. OutputPage->output() 
/vagrant/mediawiki/includes/Wiki.php:593 1.1195 6701080 5. WebResponse->header() 
/vagrant/mediawiki/includes/OutputPage.php:2009 1.1195 6701320 6. header() 
/vagrant/mediawiki/includes/WebResponse.php:38 Warning: Cannot modify header information - headers already sent by (output started at 
/vagrant/mediawiki/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php:55) in 
/vagrant/mediawiki/includes/WebResponse.php on line 38 Call Stack: 0.0219 645904 1. {main}() 
/vagrant/mediawiki/index.php:0 0.4032 3298480 2. MediaWiki->run() 
/vagrant/mediawiki/index.php:49 0.4044 3298480 3. MediaWiki->main() 
/vagrant/mediawiki/includes/Wiki.php:447 1.0897 6691328 4. OutputPage->output() 
/vagrant/mediawiki/includes/Wiki.php:593 1.1207 6701088 5. WebResponse->header() 
/vagrant/mediawiki/includes/OutputPage.php:2016 1.1207 6701328 6. header() 
/vagrant/mediawiki/includes/WebResponse.php:38

Internal Error & Change the rating[edit]

I'm getting an internal error, because in specialpages/RatingHistory_body.php in lines 85 and 182 the call $this->getPageTitle() could not be found. I commented out both lines and it worked. Is there a less dirty solution?

Additionally I want to support the idea of changing the rating of an article afterwards.