| /[drupal]/contributions/modules/advpoll/advpoll.module |
Parent Directory
|
Revision Log
|
Revision Graph
| Links to HEAD: | (view) (download) (as text) (annotate) |
| Sticky Tag: |
Made the title of the Latest Poll block link to the node
#420522 suggested by koyauni: Add a date field to the Votes tab.
#376294: (sponspored) Refactor drag-and-drop to use built-in tabledrag.js and allow click-to-add. Also fix various other bugs.
#426966 by xurizaemon: Typo in _advpoll_electoral_list_access() prevented UID > 1 from accessing electoral list.
Follow-up to #401710 - Tweak the access settings a bit.
#401710 - Fix and refactor "reset votes" to "clear all votes."
#402202 by heyrocker: title field in poll add/edit form is too small.
Fix two lingering bugs with ajax vote submission.
#373076 - Fix bug that allowed anonymous users to administer write-in votes.
Remove commented out D5 menu system code.
#347647 reported by igorik: Correctly display results tab in d6 port.
When merging the last write-in choice, forward user to the main tab rather than /write-ins.
#357448 - (sponsored) Add drag and drop support for ranking polls if jquery_update and jquery_ui are available. Also fix write-in handling in D6. Schweet.
First attempt to fix write-in JavaScript in D6 port.
#301834 by flobruit and me: Add basic Views support to Advanced Poll.
Fix electoral lists in d6.
#353574 reported by Radiating Gnome - Fix accidental inclusion of beta code in previous commit.
#345058 by me: Only check menu item access for advpoll nodes.
Fix form handling arguments for write-ins tab.
Fix handling of choices when no write-in is selected.
Fix a few minor notices.
#308780 by pearcec: Fix GROUP BY pgsql error.
#308780 by pearcec: Fix GROUP BY pgsql error.
#332646 reported by maulwuff: Add missing {} to users db table reference.
#32646 reported by maulwuff: Add {} to users db table reference.
Initial port to Drupal 6, with minimal functionality and plenty of bugs. Woot.
#199717: Fix validation of the maximum choice limit when dynamically adding choices.
#199160: Fix validation of the number of choices submitted.
#168007: Show 20 full votes on the votes tab, not just 20 rows from the database.
Follow up to #199103. Don't check for choices to delete for newly created polls.
#168401 by udvranto: Add isset() to two default settings lines in advpoll_form().
#199103: Restore the ability to delete choices (regression due to the advpoll_choices refactoring patch).
#100427: Make validation to check if user has already voted work. Also removed some JS that were in place to prevent this, since it's not needed any more.
#196864: Increase the length limit of poll choices from 128 to 2,048 and allow the limit to be customized by a Drupal variable.
#155864: Add documentation for _advpoll_insert_choices.
Remove unneeded check_plain() when promoting writeins.
Explain the use of check_plain() before adding user-submitted writeins to the database.
Fix a few spacing errors (thanks coder.module).
#190607 by me: Refactor the advpoll_choices db table. Rename vote_offset to weight, change it to not null & remove its extra key, and add an auto_increment id to each choice.
#182339: Properly check if default values are set. Fixes a bug where maximum choices couldn't be set to 0 (No limit).
#186485: Provide default choices.
Fix invalid use of format_plural()
Patch #181805: Remove write-in choices when resetting a poll's votes.
#181570: Shorter code in advpoll_view().
Typo in last commit.
#181298: Question field was shown when creating new content and improve help text, followup to #163340.
#163340: Optional question field.
#174121: Only show note for choices when editing.
#175192 by me: Fix latest poll block (broken by coding style patch).
Followup to #173135: Fixed missed variable rename. Removed unused $ok. Renamed $addjs to $add_js.
Fix for missing $status variable when previewing a poll.
#173135 by me and Anders: Ye shalt have clean code and update thy database.
Fix clearing of the electoral list.
#100496 (follow-up): Actually fix the content type settings for write-ins.
#100496 by J.D., me, and Anders: Support write-in choices.
#172616: no gettext for "No limit" value.
#163773: Improve use of permissions. NOTE that permissions need to be reassigned to roles. * Removed 'delete polls' permission. As for other content types delete is handled by the 'administer nodes' permission. * Added 'edit polls' and 'edit own polls' permission. It replaces the 'create polls' permission when editing polls. * Removed 'view polls' permission. * 'access content' permission is used instead of 'view polls' permission' for the result tab and the polls page. * Added 'access electoral list' which is used instead of 'view polls' permission for accessing the electoral list tab. * Access to the "Latest poll block" which used the 'view polls' permission should be handled on the block edit page. * The settings "Show individual votes" and "Restrict voting to electoral list" on the edit poll page are now only available for users with the 'administer polls' permission. * Fixed a bug when users without 'access user profile' could use autocompletion on the electoral list page which results in an error.
#100098 by me and Chris: Refactor date handling.
Don't collapse "Administer electoral list"
Added "3 weeks" to duration dropdown.
Only set $mode when it's needed. Code comments.
Collapse poll settings fieldset, made possible by previous commit. Adresses #162146.
#164887 by me and Chris: Replace global settings page with much more powerfull per-content-type settings.
Coding style for db queries: Added ' around every %s. One line.
#164917: Fix recent poll block on postgres.
Simplify display of algorithm option: * Removed unused hidden field * Capitalizing is handled in advpoll_algorithms_[mode]() * Proper names (borda count -> borda_count, instant runoff -> instant_runoff).
#164770: Clean up validate()
#143194 by fajerstarter: Allow polls to be viewed before they are open.
#152739: Binary poll choices showing up as "n/a". Now better implementation of check_markup.
Don't hardcode title and body title, instead use title_label and body_label. Also more flexible translating by introducing "name_label" in advpoll_info.
#158236 by gajillion: Hide cancel vote button when a poll is closed
#156368: Clear cache when poll is reset using votingapi_recalculate_results as suggested by Chris.
Return a more helpful text when there are no votes.
Improvements to advpoll_reset: * Removed redirect to edit page as the form is reset anyway, which is confusing. * Delete the votes in votingapi_cache (fixes a bug where the result page showed the old votes after reset) * Minor code style.
#154440: add weight to poll to always stay below body.
Line endings (again)...
Missed a $node argument in last commit.
Simplify function arguments: $nid instead of $node when only nid is used in the function.
Added missing check_plain().
Change line endings to unix.
#146071 by Axel: add missing table prefix braces to an electoral list SQL query.
#145160 by me: add closing paragraph tag to "Older polls" link.
#143107 by me: revert IP-checking for logged in users, as introduced in #107990.
#142343 by me: start date does not default month field properly.
Update electoral list button labels.
#107693 by me: add to the electoral list by role.
#133470: Simplify block code
Show message if user is ineligible to vote; minor translation string change.
#110296 by me: Remove old broken code to automatically add users to the electoral list.
#138672: Allow rich text in choices.
#138160: Remove check_plain() on choices saved to the database.
Set text/plain content-type header in ajax response. Fixes so devel module doesn't break ajax voting,
#129945 by JamieR: Fix PostgreSQL support in the 4.7 branch.
#106210 by jaydub: postgresql compatible string concatenation for vote counts
#110295 by me: change SQL double quotes into single quotes for postgresql compatibility
Conform to drupal coding standards (thank you coder.module).
Don't load the node from cache when recalculating results (e.g. algorithm change correctly recalculates results).
#107990: stop logged in users from voting a second time after first casting a vote anonymously
Also retrieve number of votes in node_load()
Fix removal of content types on uninstall; rename type defaults to ucfirst($mode) . ' poll'
Rename block to "Latest poll".
Patch #9412:7: validation errors refresh to the incorrect poll.
Patch #101639 by mr700 and me. Properly count the number of votes in a poll.
Remove old view_electoral_list function
Remove drupal_set_message from advpoll_cron
#101181 by fajerstarter - display descriptions
Fix block errors if there are no polls to display
Remove manual node/add menu items to allow customization via admin/content/types
advpoll_view_voting() is no more * removed deprecated theme funtion * simplified theme funtion added to the modes
Cleaned up code comments: Consistency, capitalization, punctuation, XXX, TODO.
* Bugfix: Fixed typo which caused the current input format not to be selected on node/edit. * Use ['body_filter'] as core does and moved $form['body_filter']['format'] to come directly after form['body_filter']['body'] * Removed some empty rows
Patch #101178 by mr700: drupal_set_error should be drupal_set_message
Don't use an object to store intermediate results in _advpoll_user_voted()
* Separate error and status messages from the Ajax response. * Fade in messages * Sneaked in a code comment..
Don't rely on poll module being enabled for styling of results etc.
Use form_values rather than _POST for Reset votes
#100560 Display blocks correctly when viewing results with Ajax
Unique ids for voting forms and vote submit buttons Fix bug where form response is always sent as ajax Check if user has already voted in _validate #100427, On a poll submit, disable vote button for each of that poll's forms Properly check if vote is cancellable when using ajax Make progress on correctly displaying block code when submiting a vote via ajax
Update block to not use LIMIT (for postgresql compability) and to only show published polls
Merge DRUPAL-5 branch with HEAD
#94128 Fix block display in 4.7 version
Remove Drupal 5.0 transition code
#99252 Cast votes using Ajax; refactor some results handling and split javascript into two main files - patch by fajerstarter and me
#98992 - server-side (formapi) support for dynamic updating of maxchoices select
#100098 - first stab at a startdate for polls
Capitalization fixes to be consistent with Drupal core. Note that we still use "Advanced Poll" though. Also removed overuse of "Poll".
"Remove" link added for each choice on the edit page, made possible with javascript. As the javascript now is rather complex there's probably room for improvements. Tried to keep code comments down as they will add to the filesize.
Rewrite of the javascript for "Add choise". * It's now in an external file * Maximum choices are updated, see #98992 * Link instead of a button
Abstract choice insertion, fix _insert, fix ranking total_votes display, fix bug in ranking vote
Add the correct algorithm in advpoll_insert
Add check_plain for poll choice labels
Fix jQuery add choice button in drupal 5.0
#97355, Fix reset votes due to undocumented change in confirm_form()
Remove two unneeded lines in js
Fix two missing dashes in label construction from previous patch
Condense javascript code by better using the jQuery api
Don't assume that advpoll is the only module using votingapi on advpoll nodes
Improve deletion handling
Convert tabs to spaces
Properly theme poll results
Fix blocks in 5.0
Abstract modes and algorithms
Only show algorithm select box if there are multiple algorithms for this mode, otherwise use hidden form element
List advanced polls at /polls (thanks poll.module)
Partial, but incomplete, fix for Add choice jquery button
Small code cleanups
Drupal 5.0 compability! A few UI bugs remain though.
Sync the 4.7 release with HEAD
Let's fade in the new form elements while we're at it
Dynamically add poll choices if jQuery is enabled in 4.7
Error checking for adding usernames to electoral list
Typo in electoral_list status message
Add and remove users from electoral list; clear electoral list
Cache ranking results
Properly cache binary votes
Only call set_vote() once for approval voting
Remove obsolete message_access() per Harry_Slaughter's bug report
Merge the 4.7 branch with HEAD
Fix settings unification between 4.7 and 5.0
#92096 - start checkboxes at 1 rather than 0
Unified content-type descriptions between 4.7 and 5.0
Various minor fixes
Allow votes to be reset
Show the number of votes cast in the teaser and on the ballot
Better db definition for advpoll_choices: rename chtext to label and chorder to vote_offset
Remove debugging output
Always set node->body and node->teaser when viewing
Don't show blank choices (esp. in preview)
Advanced Poll - a sophisticated polling module for voting, elections, and group decision-making.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |