Extension talk:VoteNY/Archive

maxRating should be configureable
I think the maximum rating value should be configurable in LocalSettings.php because different sites have different needs. On my website e.g. I need a maximum rating of 10. --87.176.46.19 18:04, 16 March 2013 (UTC)

"You gave this..." overlaps following elements
"You gave this..." overlaps following elements, e.g. a horizontal line. See this screenshot: http://img854.imageshack.us/img854/1986/voteoverlap.png --87.176.46.19 18:18, 16 March 2013 (UTC)

Anonymous users seem to be able to vote
When using type=1 anonymous users (not logged in) seem to be able to vote when hovering the stars with the mouse. When a star is clicked the vote element disappears from the site. --87.176.46.19 18:23, 16 March 2013 (UTC)

don't work in 1.170
don't work in 1.170 —The preceding unsigned comment was added by 221.129.245.100 (talk • contribs). Please sign your posts with ~ !

Don't work here too
Can't vote

Looks like that everything is ok, but I can't select and vote.

Any ideas? —The preceding unsigned comment was added by 189.38.206.71 (talk • contribs). Please sign your posts with ~ !


 * Here too... MW 1.17.0 --Singlespeedfahrer 03:35, 5 November 2011 (UTC)
 * Get this JS-Error:

VoteNY is not defined onmouseoutonmouseout (Zeile 3) event = mouseout clientX=276, clientY=247 [Bei diesem Fehler anhalten] VoteNY.startClearRating("", "0.00", 0);
 * --Singlespeedfahrer 03:37, 5 November 2011 (UTC)


 * I totally forgot how much 1.17 and its ResourceLoader sucks. I'd suggest upgrading to 1.18.0 once it's out (beta 1 was released a few days ago). --Jack Phoenix (Contact) 22:17, 12 November 2011 (UTC)
 * Thank you for your response. MediaWiki 1.18.0 Beta1 doesn't fix it for me. Same JavaScript error as above (the solution you posted on the next section doesn't work too). Singlespeedfahrer 22:32, 15 November 2011 (UTC)

javascript load problem fix (running 1.17.0)
i added Vote.js to \skins\common and then included that file in LocalSettings:

$wgExtensionFunctions[] = 'efAddJquery'; function efAddJquery { global $wgOut; $wgOut->includeJQuery;

$wgOut->addScriptFile( 'Vote.js' );

}

works like a charm! --Baranyad 21:45, 14 November 2011 (UTC)


 * It might work, but it's a bad solution in pretty much every imaginable way. You'll find the correct solution on the jQuery page, under the Before ResourceLoader header &mdash; it's the solution which doesn't require changing anything else than your wiki's LocalSettings.php. --Jack Phoenix (Contact) 15:31, 15 November 2011 (UTC)

How to allow Anonymous users to vote?
how can I allow anonymous users to vote? Ektip (talk) 05:55, 4 April 2013 (UTC)


 * looks like the extension adds another "right" object which is by default not granted to anonymous users. you probably have to set that.

Hello,

In your LocalSettings.php, add the following line :

$wgGroupPermissions['*']['vote'] = true;

Works for me.

-- 16 June 2014

I think that for making it work with Anonymous users it should be:

$wgGroupPermissions['*']['voteny'] = true;

--Marenostrum2014 (talk) 22:52, 13 April 2015 (UTC)

Working Example?
Anyone have a working example that they can link so I can check it out in action?
 * +1 Leucosticte (talk) 06:00, 21 October 2013 (UTC)

Refresh Page
None of the elements work after voting, removing a vote, etc. A page refresh is required to make anything work again. I've tried adding a location.reload(true) into the .js but this breaks the script even further. (new to js, bear with me) Even this would be a sub-par fix. Anyone else run into this problem/have any ideas?

Order
Hi, thanks for this great extension! I have one feature request though: I think it would be cooler if the order of the pages in Special:TopRatings is not alphabetical but based on the score. Cheers, --Till Kraemer (talk) 15:59, 7 October 2013 (UTC)

Refresh issue - add a message
Hi, I was trying to add a message to the display to encourage users to log in and vote: "Was this article helpful? Log in and rate it!". I was able to get the text to display, but when I click on the stars to vote, the text is not removed when the display refreshes. This results in two lines of text being displayed.

I also noticed that if I vote, I can't remove my vote until I reload the page. I also cannot change my vote until I reload the page. Reloading the page clears my duplicate message and allows me to change my vote.

Any help in addressing these concerns would be greatly appreciated. Thanks! Becky

Displaying Overall/Average votes?
Is there a way to display Overall/Average votes on a page?

VoteNY.php naming inconsistency
Just wanted to share an observation: After installing VoteNY for MW 1.21, I received a php error while running the update.php script. The problem was that the installation line in LocalSettings.php referenced a file in /extensions/VoteNY called VoteNY.php. However, the actual name of the file in the v1.21 is Vote.php. To fix, I changed the installation line to: require_once "$IP/extensions/VoteNY/Vote.php";

Easy enough to discover and fix but could confuse new users.

Anonymous and refresh issues
Hi, just wanted to let you know that I've got the same problems with this extension. Even with the line provided here (set group permissions for vote on true), it still won't work for anonymous voters. Whenever I go to my wiki anonymously, the rating bar just disappears when I click it. And then there's the refresh page thing. Every time I vote I have to refresh the page before I can do anything else regarding the vote bar. I hope there's a solution somewhere out there, especially for the anonymous rating thing.

Magic word to get current vote
Would it be possible to add another magic word to get the current rating (average vote) for the page? Similar to but returning the average vote instead of the number of people who have voted? I am marking up my pages with HTML microdata and I'd like to be able to include the page's rating in that. Thanks! -- Malvineous (talk) 10:05, 16 May 2015 (UTC)