Commit graph

30 commits

Author SHA1 Message Date
Wikinaut f60c7b3c67 add optional id parameter; make extension working in templates
as proposed in
https://www.mediawiki.org/w/index.php?title=Extension_talk:AJAXPoll&dir=prev&offset=20130129204525&limit=20&lqt_mustshow=31153#Does_not_work_properly_within_templates_31145 and
https://www.mediawiki.org/w/index.php?title=Extension_talk:AJAXPoll&dir=prev&offset=20130129204525&limit=20&lqt_mustshow=31153#adding_an_id_parameter_would_be_helpful_31153

Change-Id: I5e633c1e76cbef9e78a5b1225794e11492b44c3c
2013-08-15 17:20:10 +00:00
Wikinaut fc1261a5cc code cosmetics: extension now uses Html class
Change-Id: I62a0c1fa0bcc541a533432a0a742b06894ad2c00
2013-06-14 00:05:51 +02:00
Wikinaut 0a73018060 fixed a problem with fractional percentages
when rendering the result bar do not use localized percentage string
width must contain a dot like 33.33% but must not come with a comma like 33,33%

Change-Id: Id2dd68cb8df339358b274df08d713eee351adf42
2013-05-31 08:41:13 +02:00
Wikinaut 3c92a31066 (bug 35119) show poll results only for users who voted (options to override)
0. bump version 1.81 20130526

1. new: poll results are by default _not_ shown when the user has not voted

2. a new optional (per-poll) tag parameter "show-results-before-voting" is introduced
   <poll show-results-before-voting>
   <poll show-results-before-voting=1>

3. introduction of new group permissions:

   * ajaxpoll-viewresults
   * ajaxpoll-viewresults-before-voting

4. schema change
   this version requires a database update ( php maintenance/update.php )
   updater included

Change-Id: Iae1f3f2806afecbca3e3c41460dbbf20fc557525
2013-05-26 22:04:04 +02:00
Wikinaut 9d3e41b3a3 (bug 48613) fixes a CSRF vulnerability; bump to version 1.80
depends on https://gerrit.wikimedia.org/r/#/c/21986/10

Change-Id: Ib63fde498e1731502530c752b5387e642998d0b2
2013-05-26 10:47:40 +02:00
Wikinaut d53c0dd89b removed depreacted wfMsg; added db->begin which fixed a database error message
version 1.792 20130526

Change-Id: I86849ed7b3e64032e6f78b0becc4a87cbface24f
2013-05-26 09:34:30 +02:00
Wikinaut 342f495936 maintenance fix: version 1.791
changed variable name $user to $userName to make that clear

Change-Id: I02fe6485076fe24bbc64c3228764654c06f9aed4
2013-05-26 08:58:04 +02:00
Wikinaut ecc219eeb1 mw1.19 compatible db;version 1.79
Change-Id: Icdbd485d1c1e879964495a46725be7c780eab679
2013-01-01 09:42:59 +01:00
Thomas Gries f7533800ee removed the redundant code for handling tracking categories. By using '-' for the message text ajaxpoll-tracking-category , this can be disabled easily. 2012-03-19 18:45:57 +00:00
Thomas Gries bc93f4845b best version ever: fully jqueryfied. repaired non-ajax mode for wikis with wgUseAjax false 2012-03-17 21:13:10 +00:00
Thomas Gries 1aead3f25e making corresponding change as a follow up r114050 2012-03-17 08:59:18 +00:00
Thomas Gries b87b382f2f code cosmetics. jquery improvements. 2012-03-15 07:46:55 +00:00
Thomas Gries 5be0d48bfe follow up r113839 fixes the initial database creation problem. relies on r113862 . 2012-03-14 21:43:56 +00:00
Thomas Gries f52b0c916a follow up r113837 oops, i forgot to make the corresponding database changes in the code 2012-03-14 20:28:16 +00:00
Thomas Gries 1292f3b142 version 1.72 -- schema change. database rename . dropping an unused table field. follow up r113772 2012-03-14 20:19:16 +00:00
Thomas Gries 999f2e067f follow up r113772 . getText() changed to getPrefixedText() in order to store the full page name in the database for admins convenience. It does not influence the voting and rendering of polls, because this value is never read. 2012-03-14 07:18:14 +00:00
Thomas Gries 2ff68e3efe follow up r113554 . fixing a regression which was introduced in r113554. Making now all all ids unique even when you have several polls on a mw page. using, new, the resourceloader to load common methods. just a little bit ... more of jquery. fixing a forgotten wgParser to parser variable problem. introducing and moving js and css to resources. 2012-03-13 22:31:46 +00:00
Thomas Gries a213ded538 follow up r113686 . correction of algorithm for voting for the last answer, this was wrongly treated as revoke action 2012-03-13 01:04:59 +00:00
Thomas Gries 632fd5befc added method for votersto revoke their vote. 2012-03-12 23:56:59 +00:00
Thomas Gries 3efd345740 code cosmetics: master dbw, slave dbr names 2012-03-12 22:13:51 +00:00
Thomas Gries ac7f0e1401 The unique poll-id (hash) is now invisibly with color=background-color placed into the lower right corner of the poll div. This allows admins an easier maintainance of polls, if this is needed. 2012-03-12 18:26:50 +00:00
Thomas Gries 83ce31afac follow up r113554 . forgot - and fixed now - the server-side check of the ajaxpoll-vote permission. For viewers without voting permission it does not make sense to check one of the radio buttons, buttons are now unchecked on load. 2012-03-10 11:36:01 +00:00
Thomas Gries 954938f70f fix enhancement bug35118 . add new user right ajaxpoll-vote 2012-03-10 09:26:52 +00:00
Thomas Gries 8c5275bfb9 follow up r113502 . Using also here the correct parser as passed as parameter. thanks to everyone who help, I overlooked that. Please bear with me - that extension was not written initially by me. 2012-03-09 23:24:38 +00:00
Thomas Gries c9f9a68588 follow up r113503 - correction 2012-03-09 19:27:55 +00:00
Thomas Gries 5537c8dfca follow up r113502 - readded method by reedy. Lost despite of using svn up, how can this happen? 2012-03-09 19:26:20 +00:00
Thomas Gries aa21f9774c add tracking category feature (enabled by default). Each page using this extensions get automatically the tracking category with MediaWiki:Ajaxpoll-tracking-category name (= Poll). Tracking-Cat-Feature can be disabled, or a different MediaWiki message text can be assigned. Documentation of the switch is inline and follows on MediaWiki. 2012-03-09 19:23:28 +00:00
Sam Reed 6cba21c57f Add some more __METHOD__ 2012-02-29 15:36:10 +00:00
Thomas Gries 2e6bcf6bd9 removed spurious yellow line in css stylesheet (display:none on load) 2012-02-22 19:07:58 +00:00
Thomas Gries 445ebb808e Four-file version. Class moved to AJAXPoll_body.php 2012-02-19 19:31:24 +00:00