Commit graph

42 commits

Author SHA1 Message Date
Wikinaut e90b945be7 adding the forgotten table row to the table schema sql
Bug: 55481
Change-Id: If720850cec32cda933d20f1321002e10aaae36d4
2013-10-09 23:10:21 +02:00
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 ad55b3419a localizing submit message text in javascript using resource loader
bug 49162

Change-Id: I528344369341d8c43f196b5d52fd47ae6012521e
2013-06-05 02:24:18 +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 7071ff5967 restricting the clickable area and colour when hovering, and pointer cursor, to really only the label tag area 2012-03-18 08:08:35 +00:00
Thomas Gries 11654ce306 improved marking of the vote (less is marked); hex colour codes instead of web colour names. 2012-03-18 07:15:30 +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 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 dd726ae7b6 follow up r113641 . making it backwards compatible: allow again everyone to vote by default as proposed by Ashley 2012-03-12 20:00:05 +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 4ad087cd30 changing the default to nobody can vote. changing the English text to the more polite 'You are not entitled to vote' 2012-03-12 18:15:01 +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 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
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
Thomas Gries 36fdb56e11 version number update 2012-02-19 17:25:22 +00:00
Thomas Gries 7164ae3bc9 wrapped into class AJAXPoll 2012-02-19 17:24:15 +00:00
Thomas Gries 26d55ee8f8 code cosmetics and first step towards solution of my still to-do: fix the usage of , , and inside of a parser function. 2012-02-18 08:46:28 +00:00
Raimond Spekking 0320880cb4 r111696: Consistency tweaks in preparation for adding extension to translatewiki.net
* Add description message
* Move comments to message documentation section qqq
2012-02-17 14:57:54 +00:00
Thomas Gries 25ae0fd950 canged all class names and all message name prefixes from poll- to ajaxpoll- . jquerified everything what was possible. previous onmouseout- and onmouseover-event inline-code rewritten as two functions which will now be resued for all anwser divs. Still to do: use resourceloader; fix the usage of , , and inside of a parser function. 2012-02-16 22:55:06 +00:00
Thomas Gries 50c5d02c1d first step going jquery. changed all id and class names to be in conformity with css coding conventions lower-and-dashes. To-Do: more jQuery and refactoring html/jquery source code layout. (this version of the extension is working of course) 2012-02-16 07:59:32 +00:00
Thomas Gries f12204dad1 removing unnecessary db->addQuotes() wrappers as the extension uses standard select,update wrappers (usernames were added with quotes in the database). Breaking compatibility with older database entries of older polls. (this could be supplied in a one-time run of an updater (ToDo)). removing spaces in javascript inline. Declaring myself as maintainer of the extension. 2012-02-16 06:27:52 +00:00
Thomas Gries d217d8c942 bug fixed: marker for our own vote was not shown; green coloured border for our own vote; corrected German translation (AJAX poll extension is not in translatewiki.net for unknown reason). 2012-02-15 20:32:53 +00:00
Thomas Gries 7f932688e6 add path to ExtensionCredits so that the svn version is shown in Special:Version. BTW, this is a very neat extension. 2012-02-15 07:44:34 +00:00
Brion Vibber 804f94f3f9 Update a butt-ton of extension about URLs to point to https://www.mediawiki.org/ 2011-12-13 23:49:33 +00:00
Jack Phoenix 0798ccf8e1 adding AJAX Poll extension. JavaScript should be cleaned up (and maybe rewritten to use jQuery?) so that we can support ResourceLoader and functions in AJAXPoll.php should be moved into a new class instead of them being in the global scope. 2011-10-09 18:35:17 +00:00