Extension talk:QPoll

Has anyone used this? Can someone provide a link to an example? I am looking to add polls to my site but can't decide which extension to use. --Jake4d 13:45, 20 July 2009 (UTC)
 * There's an example link in the infobox, though there's still no example in English (July 2009). I'd place an example in English somewhere, if the site has the extension installed. Here I can provide only source code examples. I've checked them and they were working at my local wiki. You may try to download and install the extension, then create the test page and paste the examples code to it. As of the different polls extensions, you may install all of these to find out which fits your needs better. QuestPC 07:36, 24 July 2009 (UTC)
 * Thanks for pointing me to the Russian example, I will try them all the next time I have a free day. QPoll looks like a nice extension. --Jake4d 17:30, 24 July 2009 (UTC)
 * a percentage bar will be great Vev 15:24, 30 August 2009 (UTC)
 * I've made simple bars in v0.5.0. No time to make something more complex right now. Please check the updated documentation to see how to display these, if you are interested. QuestPC 07:37, 15 September 2009 (UTC)
 * Right now, voting statistics (percents) are available to end-user only in numerical format. The diagrams and bars can only be built by the administrator of the site: One have to export the stats of poll to XLS-file (at Special:PollResults) page, then draw diagrams in Calc or Excel. Maybe someday I'll find the time to add built-in drawing (probably using ploticus), and JS-made bars, perhaps, too. QuestPC 06:49, 31 August 2009 (UTC)
 * Since v0.6.0, it's possible to place separate statistical output (bars, percents) on any user-edited page by using statistical display mode. I hope to extend it to draw diagrams some day. QuestPC 07:57, 28 October 2009 (UTC)
 * Since v0.6.0, it's possible to place separate statistical output (bars, percents) on any user-edited page by using statistical display mode. I hope to extend it to draw diagrams some day. QuestPC 07:57, 28 October 2009 (UTC)

Versions
I know it says it on the extension page, but just to be clear: this extension does not work with MediaWiki 13.2. --Robinson Weijman 14:00, 25 September 2009 (UTC)

MySQL: "1054: Unknown column 'qp_users.uid' in 'field list' (localhost)"
Hi, I'm running MediaWiki 1.15.1, PHP 5.3.0 (apache2handler) and MySQL 5.1.37 on a local instalation using XAMPP (Apache Friends Edition). The extension installed fine and created the tables. Then I reloaded the special page, as requested. The new page has two links: "List all users" (enabled) and "List all polls" (disabled). I click "List all users" and get a DB error in function "qp_UsersList::getIntervalResults". MySQL returns error "1054: Unknown column 'qp_users.uid' in 'field list' (localhost)". Now, looking at the DB, all QPoll tables were created with the prefix of my wiki. So, there is a "cultiwiki_qp_users" table and it has the uid field. The function "qp_UsersList::getIntervalResults" seems to be ignoring the table prefix. If I remove the "cultiwiki_" prefix from the table name, then the extension complains that some tables are missing, so it expects the table to have a prefix. So, I'm stuck. Any thoughts? Thanks. Hamilton Abreu 22:58, 17 November 2009 (UTC)
 * Hi! I am sorry for delay, I am currently busy with very different job. I've identified the issue. The possible fix is uploaded into SVN. You may download it by using SVN client, or, just by overwritting local file from the direct link: qp_results.php QuestPC 11:24, 19 November 2009 (UTC)
 * Problem fixed. Many thanks. Hamilton Abreu 18:32, 19 November 2009 (UTC)

help?
could I get a bit of help with this extension? I'm just trying to ask a simple question like "what is your favorite character?" and then have a list of ~5 characters where users can choose only one option and then submit it. But i seem to keep running into errors with it, I tried looking at the examples here but there are way beyond anything that I'll need, Thanks redekopmark 18:09, 9 March 2010 (UTC)
 * Please try copy/paste the following code into the page:

 {Choose one of the characters below: What is your favorite character?
 * layout="proposals transpose" type=""}
 * Littlefoot | Cera |  Ducky |  Petrie |  Spike
 * In case that doesn't work, let me know. QuestPC 08:39, 10 March 2010 (UTC)


 * thanks, that worked :) redekopmark 20:47, 11 March 2010 (UTC)

Unable to call qp_Setup
I can get to the special version page and the tables are all setup. I have added the lines in local settings: require_once( "extensions/QPoll/qp_user.php" ); qp_Setup::$cache_control = false; qp_Setup::$global_showresults = 1; qp_Setup::$anon_forwarded_for = true;

I get this error: Unable to call qp_Setup::renderPoll in /var/www/html/mediawiki-1.15.4/includes/parser/Parser.php on line 3243

Can anyone help or know how to correct this?

I am using version: QPoll-trunk-r68481.tar.gz and I have also tested on QPoll_0.6.5.tgz

Thank you,

Nimish Patel
 * Which version of PHP do you use? I cannot reproduce this error with MediaWiki 1.15.4 / PHP 5.2.9-2. If your version is earlier than PHP 5.2.3, callbacks in string form (like "qp_Setup::renderPoll") might not work. I haven't checked an extension with such old PHP builds, so there might be another incompatibilities as well. I've modified the code to pass the callbacks differently in r68762, so try to checkout latest version from SVN, please. QuestPC 06:39, 30 June 2010 (UTC)
 * Apologize for the late response back- I tried the r68762 build from svn and it seemed to work :). I am using PHP version 5.1.6. I'll give and update once I test it some more :) Thanks for your help!! =D

Nimish Patel

LocalSettings changes not working
Hi - I've installed QPoll and confirmed it in SpecialVersion. When I try to add options in LocalSettings.php (i.e. the qp_Setup options) I get this message:  Any idea what is going wrong? We have MediaWiki 1.15.4 (r518) & PHP 5.3.3 (cgi-fcgi) --Robinson Weijman 12:45, 28 September 2010 (UTC)


 * Or are they only for version 0.6.5 (and therefore MediaWiki 1.16? --Robinson Weijman 12:52, 28 September 2010 (UTC)
 * Before 0.6.5, there were global variables $qp_enable_showresults, $qp_AnonForwardedFor used for setup Extension:QPoll. However, v0.6.5 probably should work with MW 1.15.4 too, although I haven't checked this. In case it doesn't, please report a bug on this talk page. QuestPC 16:26, 1 October 2010 (UTC)


 * Good to know, thank you. I'll get back to you about 0.6.5. --Robinson Weijman 13:07, 4 October 2010 (UTC)

Default MW 1.16 download is 0.6.4
Currently the default download for MW 1.16 is 0.6.4 - shouldn't it be 0.6.5? --Robinson Weijman 13:22, 4 October 2010 (UTC)
 * These should be tagged in svn repo. I am currently busy with another projects and still haven't checked v0.6.5 with 1.15.5 and 1.17alpha. I know I should do that, however there is not enough of time for that right now. With 1.16 pre-release it was working, in fact I've used former 1.16 trunk to develop it. Also, with PHP 5.3.x, to make it "look into the future, not the past". QuestPC 05:53, 5 October 2010 (UTC)

New line
I notice that the poll question blocks automatically appear next to each other on the page. I'd like them to appear underneath each other (i.e. like adding a new line character). E.g. in Declaration/voting mode, I'd like the four sections to go underneath each other instead of in a 2 x 2 block. Anyone know how to do that? --Robinson Weijman 15:06, 11 November 2010 (UTC)


 * Solution - I should have seen this: just a question of changing the  value from 2 to 1 (  specifies the number of questions per line). --Robinson Weijman 15:25, 11 November 2010 (UTC)