/[drupal]/contributions/modules/votingapi/votingapi.module
ViewVC logotype

Log of /contributions/modules/votingapi/votingapi.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.46.2.23.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 21 03:54:12 2009 UTC (4 months ago) by eaton
Branch: DRUPAL-7--2
Changes since 1.46.2.23.2.3: +5 -5 lines
Diff to previous 1.46.2.23.2.3 , to branch point 1.46.2.23 , to next main 1.46.2.24
Minor tweak to the *_single_value() functions that lets them pop off the top result even if the query results aren't numerically indexed.

Revision 1.46.2.23.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 20 22:24:45 2009 UTC (4 months ago) by eaton
Branch: DRUPAL-7--2
Changes since 1.46.2.23.2.2: +34 -130 lines
Diff to previous 1.46.2.23.2.2 , to branch point 1.46.2.23
Porting internal query-building functions to the D7 DB layer.

Revision 1.46.2.23.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 20 16:16:35 2009 UTC (4 months ago) by eaton
Branch: DRUPAL-7--2
Changes since 1.46.2.23.2.1: +1 -3 lines
Diff to previous 1.46.2.23.2.1 , to branch point 1.46.2.23
  #496454 - PHPDoc incorrectly listed 'uid' and 'vote_source' as valid filtering criteria on cached aggregate results.

Revision 1.46.2.24 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 8 16:09:45 2009 UTC (4 months, 2 weeks ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-2, DRUPAL-6--2-3
Changes since 1.46.2.23: +1 -3 lines
Diff to previous 1.46.2.23 , to branch point 1.46
#496454 - PHPDoc incorrectly listed 'uid' and 'vote_source' as valid filtering criteria on cached aggregate results.

Revision 1.46.2.23.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 1 07:26:12 2009 UTC (4 months, 3 weeks ago) by eaton
Branch: DRUPAL-7--2
Changes since 1.46.2.23: +9 -9 lines
Diff to previous 1.46.2.23
Initial pass at D7 cleanup and tweaking. Haven't yet touched the internal query builder; it's up next.

Revision 1.46.2.23 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 24 19:52:37 2009 UTC (5 months ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0, DRUPAL-6--2-1
Branch point for: DRUPAL-7--2
Changes since 1.46.2.22: +3 -3 lines
Diff to previous 1.46.2.22 , to branch point 1.46
Oh look more tweaks. Cleaning up the Views relationships code to make better use of the metadata.

Revision 1.46.2.22 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 24 19:13:31 2009 UTC (5 months ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.21: +5 -4 lines
Diff to previous 1.46.2.21 , to branch point 1.46
#322720 - minor doc fixes by Moshe.

Revision 1.46.2.21 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 24 18:57:26 2009 UTC (5 months ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.20: +66 -1 lines
Diff to previous 1.46.2.20 , to branch point 1.46
A smattering of bug fixes, documentation tweaks, and cleanups preparing for the final 2.0 release.

Revision 1.46.2.20 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jun 24 14:33:23 2009 UTC (5 months ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.19: +4 -3 lines
Diff to previous 1.46.2.19 , to branch point 1.46
#396820 - anon vote window didn't work correctly when "no rollover" was selected.

Revision 1.46.2.19 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 26 03:50:00 2009 UTC (6 months ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.18: +8 -8 lines
Diff to previous 1.46.2.18 , to branch point 1.46
Random whitespace corrections, prepping for D7.

Revision 1.46.2.18 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Feb 11 21:51:27 2009 UTC (9 months, 1 week ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.17: +9 -5 lines
Diff to previous 1.46.2.17 , to branch point 1.46
#366108 - expose a limit on the number of results returned for votingapi_select_votes(). By DeeLay with input from greggles.

Revision 1.46.2.17 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 1 00:47:50 2009 UTC (10 months, 3 weeks ago) by chriskennedy
Branch: DRUPAL-6--2
Changes since 1.46.2.16: +2 -2 lines
Diff to previous 1.46.2.16 , to branch point 1.46
Follow-up for #344097 - add value_type to GROUP BY clause to ensure pgsql compatibility.

Revision 1.46.2.16 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 1 00:40:30 2009 UTC (10 months, 3 weeks ago) by chriskennedy
Branch: DRUPAL-6--2
Changes since 1.46.2.15: +2 -2 lines
Diff to previous 1.46.2.15 , to branch point 1.46
#344097 - Fix undefined index error for option votes in _votingapi_get_standard_results().

Revision 1.46.2.15 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Oct 9 21:12:35 2008 UTC (13 months, 2 weeks ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0-RC2
Changes since 1.46.2.14: +6 -6 lines
Diff to previous 1.46.2.14 , to branch point 1.46
#318166, #317918, and #310327 - bug fixes and tweaks, and migrating older DB updates to SchemaAPI.

Revision 1.46.2.14 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Oct 1 15:47:46 2008 UTC (13 months, 3 weeks ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.13: +20 -16 lines
Diff to previous 1.46.2.13 , to branch point 1.46
#315364 - code style improvements and syntax tweaks by stella.

Revision 1.46.2.13 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Sep 19 01:51:48 2008 UTC (14 months ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0-RC1
Changes since 1.46.2.12: +14 -32 lines
Diff to previous 1.46.2.12 , to branch point 1.46
More file reshuffling. Moving the devel functions to a conditional include rather than a separate module.

Revision 1.46.2.12 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Sep 18 06:50:45 2008 UTC (14 months, 1 week ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.11: +6 -3 lines
Diff to previous 1.46.2.11 , to branch point 1.46
Some restructuring -- moved Views code into a dedicated subdirectory, moved API docs and a rewritten VotingAPI Vote Generator into a developers directory.

Revision 1.46.2.11 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 16 19:55:10 2008 UTC (14 months, 1 week ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0-BETA7
Changes since 1.46.2.10: +5 -5 lines
Diff to previous 1.46.2.10 , to branch point 1.46
Adding basic unit tests, originally written by paul.lovvix. (#284010) Also fixing a couple of subtle bugs that the test flushed out.

Revision 1.46.2.10 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Sep 7 03:03:29 2008 UTC (14 months, 2 weeks ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.9: +8 -1 lines
Diff to previous 1.46.2.9 , to branch point 1.46
Updating Views integration for compatability with the latest dev snapshot and the upcoming dev release.

Revision 1.46.2.9 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jun 10 19:43:45 2008 UTC (17 months, 2 weeks ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0-BETA6
Changes since 1.46.2.8: +45 -20 lines
Diff to previous 1.46.2.8 , to branch point 1.46
Cleaning up PHPDoc to clearly differentiate between votingapi_set_votes and votingapi_add_votes.

Revision 1.46.2.8 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 6 00:56:14 2008 UTC (17 months, 2 weeks ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0-BETA-5
Changes since 1.46.2.7: +5 -3 lines
Diff to previous 1.46.2.7 , to branch point 1.46
Fix for #260232 by telega.

Revision 1.46.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 6 00:06:57 2008 UTC (17 months, 2 weeks ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.6: +2 -2 lines
Diff to previous 1.46.2.6 , to branch point 1.46
Fix for #260320 by telaga

Revision 1.46.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 5 21:11:18 2008 UTC (17 months, 2 weeks ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0-BETA4
Changes since 1.46.2.5: +21 -19 lines
Diff to previous 1.46.2.5 , to branch point 1.46
Fixed a serious bug that kept VotingAPI from deleting old cache results, and added sorting by vote and result values to the Views integration. "List of nodes sorted by average rating" is finally possible again.

Revision 1.46.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Fri May 16 04:11:40 2008 UTC (18 months, 1 week ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.4: +78 -45 lines
Diff to previous 1.46.2.4 , to branch point 1.46
Refactoring result calculation for dramatically reduced memory overhead when large vote sets are used. Earl and Jared and Dave, this one is for you.

Revision 1.46.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Apr 9 00:54:19 2008 UTC (19 months, 2 weeks ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0-BETA2, DRUPAL-6--2-0-BETA3
Changes since 1.46.2.3: +5 -17 lines
Diff to previous 1.46.2.3 , to branch point 1.46
Several important bug fixes for the D6 version of VotingAPI. #223517, #232233, #232236, and #235174 fixed thanks to patches posted by quicksketch and sammys. Also checked in an initial stub file for views2 integration, removing the old hook_init() code since Views2 handles pulling the inc files in itself.

Revision 1.46.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 15 06:57:07 2008 UTC (22 months, 1 week ago) by eaton
Branch: DRUPAL-6--2
CVS Tags: DRUPAL-6--2-0-BETA1
Changes since 1.46.2.2: +3 -3 lines
Diff to previous 1.46.2.2 , to branch point 1.46
Cleaning up a handful of other broken checks. Next step, I believe, is updating the documentation, adding indexes to the tables, and rolling a beta.

Revision 1.46.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 14 22:55:08 2008 UTC (22 months, 1 week ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46.2.1: +2 -2 lines
Diff to previous 1.46.2.1 , to branch point 1.46
Fixing a silly inverted empty check, found by quicksketch.

Revision 1.46.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Nov 18 07:46:51 2007 UTC (2 years ago) by eaton
Branch: DRUPAL-6--2
Changes since 1.46: +133 -125 lines
Diff to previous 1.46
Further progress on VotingAPI 2. Cleaning up utility functions, unifying the param types, and so on.

Revision 1.46 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 1 04:34:25 2007 UTC (2 years, 3 months ago) by eaton
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1, DRUPAL-6--2
Changes since 1.45: +100 -56 lines
Diff to previous 1.45
Many, many bugs fixed. 2.0 API still in flux.

Revision 1.40.2.10 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jul 19 14:13:44 2007 UTC (2 years, 4 months ago) by eaton
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-6
Changes since 1.40.2.9: +2 -2 lines
Diff to previous 1.40.2.9 , to branch point 1.40 , to next main 1.46
#154995 and #160561

Revision 1.45 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 17 05:54:17 2007 UTC (2 years, 4 months ago) by eaton
Branch: MAIN
Changes since 1.44: +8 -35 lines
Diff to previous 1.44
Further updates, restoring the previously deleted insert and delete hooks. Also switching the calculate hook to drupal_alter().

Revision 1.44 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jul 10 13:53:44 2007 UTC (2 years, 4 months ago) by eaton
Branch: MAIN
Changes since 1.43: +107 -102 lines
Diff to previous 1.43
Reworking some bits, and adding the insert and delete ops back into the mix.

Revision 1.40.2.9 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 9 01:15:20 2007 UTC (2 years, 4 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.40.2.8: +429 -324 lines
Diff to previous 1.40.2.8 , to branch point 1.40
Argh. Rollback to a previous version of the module after an accidental HEAD commit to the DRUPAL-5 branch.

Revision 1.40.2.8 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 9 01:08:24 2007 UTC (2 years, 4 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.40.2.7: +315 -416 lines
Diff to previous 1.40.2.7 , to branch point 1.40
Argh. Rollback to a previous version of the module after an accidental HEAD commit to the DRUPAL-5 branch.

Revision 1.43 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jul 9 00:53:56 2007 UTC (2 years, 4 months ago) by eaton
Branch: MAIN
Changes since 1.42: +315 -416 lines
Diff to previous 1.42
Major refactoring for the VotingAPI 2 branch. This'll break everything, though the conversion is pretty easy. May not make it to a real release branch, depending on response from other developer.

Revision 1.42 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jul 6 03:02:34 2007 UTC (2 years, 4 months ago) by eaton
Branch: MAIN
Changes since 1.41: +47 -45 lines
Diff to previous 1.41
Early stab at VotingAPI for Drupal 6 -- HEAD is the proper place for it, not the mistaken DRUPAL-5 branch checking made earlier. This branch will be moved to the appropriate D6 branch when related issues are sorted out.

Revision 1.40.2.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jul 4 07:03:16 2007 UTC (2 years, 4 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.40.2.6: +11 -15 lines
Diff to previous 1.40.2.6 , to branch point 1.40
Initial Drupal 6 compatability release.

Revision 1.40.2.6 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Mar 30 15:10:59 2007 UTC (2 years, 7 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.40.2.5: +5 -2 lines
Diff to previous 1.40.2.5 , to branch point 1.40
Some fixes to make the views integration code more reliable.

Revision 1.40.2.5 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Mar 19 10:37:09 2007 UTC (2 years, 8 months ago) by eaton
Branch: DRUPAL-5
CVS Tags: DRUPAL-5--1-3, DRUPAL-5--1-4, DRUPAL-5--1-5
Changes since 1.40.2.4: +8 -1 lines
Diff to previous 1.40.2.4 , to branch point 1.40
#128134, missing hook_perm kept non-admins from adminstering the module.

Revision 1.40.2.4 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Mar 19 10:32:53 2007 UTC (2 years, 8 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.40.2.3: +5 -5 lines
Diff to previous 1.40.2.3 , to branch point 1.40
#108592, improve handling of server address. Thanks to ChrisKennedy

Revision 1.40.2.3 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Mar 19 09:59:55 2007 UTC (2 years, 8 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.40.2.2: +14 -14 lines
Diff to previous 1.40.2.2 , to branch point 1.40
Adding cleaner support for vote result formatters in views, and fixing code style issues.

Revision 1.40.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Mar 17 06:59:26 2007 UTC (2 years, 8 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.40.2.1: +4 -1 lines
Diff to previous 1.40.2.1 , to branch point 1.40
Working VotingAPI integration with Views. No, seriously.

Revision 1.40.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Mar 8 05:31:11 2007 UTC (2 years, 8 months ago) by eaton
Branch: DRUPAL-5
Changes since 1.40: +15 -22 lines
Diff to previous 1.40
First stab at the next round of updates, including votingapi_actions for 5.0.

Revision 1.41 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 8 04:08:33 2006 UTC (2 years, 11 months ago) by eaton
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40
Minor fixes: Updating capitalization and menu positioning.

Revision 1.40 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Oct 14 02:01:43 2006 UTC (3 years, 1 month ago) by eaton
Branch: MAIN
CVS Tags: DRUPAL-5--1-2
Branch point for: DRUPAL-5
Changes since 1.39: +35 -19 lines
Diff to previous 1.39
Hooray for Drupal 5. Views integration is no longer inherent to the module; votingapi_views.module will be coming shortly.

Revision 1.39 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Sep 27 03:20:18 2006 UTC (3 years, 1 month ago) by eaton
Branch: MAIN
Changes since 1.38: +1 -156 lines
Diff to previous 1.38
First stab at a Drupal 5.0 conversion for VotingAPI. Important changes:

votingapi_actions is now a completely separate but bundled module. It's very rough and its admin screens are not yet working w/5.0, but actions module hasn't been converted yet either so there's a bit of time.

4.7-style Views integration has been removed. A new system is being worked on that's more reliable, pending a couple of important patches for Views module. Further updates as events warrant.

Revision 1.38 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jul 1 14:07:46 2006 UTC (3 years, 4 months ago) by eaton
Branch: MAIN
CVS Tags: DRUPAL-4-7--1-1
Branch point for: DRUPAL-4-7
Changes since 1.37: +2 -2 lines
Diff to previous 1.37
Simple mistake in votingapi_recalculate that kept things from working in non-cron scenerios.

Revision 1.37 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jun 9 00:15:01 2006 UTC (3 years, 5 months ago) by eaton
Branch: MAIN
Changes since 1.36: +14 -43 lines
Diff to previous 1.36
As it turns out, my modules are the only ones that used hook_votingapi() directly. I've removed it in favor of the discrete hooks; SimpleVote and nmoderation will follow.

Also, added support for taxonomy terms in the internal _votingapi_load_content() function.

Revision 1.36 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 8 15:52:41 2006 UTC (3 years, 5 months ago) by eaton
Branch: MAIN
Changes since 1.35: +27 -10 lines
Diff to previous 1.35
Better testing. Old-style 'modulename_votingapi()' impelementation now works alongside the new hooks. Old-style is now considered 'deprecated' -- it won't be going away right now, but developers are encouraged to move to the new more intuitive hooks.

Revision 1.35 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jun 8 02:08:17 2006 UTC (3 years, 5 months ago) by eaton
Branch: MAIN
Changes since 1.34: +12 -3 lines
Diff to previous 1.34
Unstable development version. Do NOT use this checkin on production sites! Stick with the DRUPAL-4-7 branch.

Revision 1.34 - (view) (download) (as text) (annotate) - [select for diffs]
Thu May 25 14:17:20 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33
#65505 - Typo in the cron function. Thanks, grohk!

Revision 1.33 - (view) (download) (as text) (annotate) - [select for diffs]
Mon May 8 11:48:55 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.32: +4 -2 lines
Diff to previous 1.32
Fixed a subtle but SERIOUS bug that prevented votingapi_cache records from being deleted when new results were calculated.

Revision 1.32 - (view) (download) (as text) (annotate) - [select for diffs]
Thu May 4 22:52:05 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.31: +16 -2 lines
Diff to previous 1.31
Renamed the cache handling function, to make it clear that other modules can call it to flush the action cache. Also, added a votingapi_delete_votes() function to batch-delete individual vote objects.

Revision 1.31 - (view) (download) (as text) (annotate) - [select for diffs]
Tue May 2 04:25:19 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.30: +124 -132 lines
Diff to previous 1.30
The action loading and caching infrastructure has been made much more robust, and CRUD functions are in place for reading and writing user-created actions.

voting_actions.module has now been added to facilitate direct user manipulation of action criteria, etc. It's the part that's still heavily under development. In many installations, it'll be unecessary.

The votingapi_delete_vote() function no longer automatically recalculates. Modules using it should call recalculate manually after explicitly removing a vote.
Those needing a consistent, stable VotingAPI should probably still stick with the 4.7 branch. This version will be branched as soon as the issues are ironed out.

Revision 1.30 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 29 17:19:26 2006 UTC (3 years, 6 months ago) by eaton
Branch: MAIN
Changes since 1.29: +86 -74 lines
Diff to previous 1.29
More work on streamlining the actions system, and the beginnings of a UI for managing module-supplied voting action sets.

Also, a new setting has been introduced -- vote result calculation can be deferred until cron-time. This can be useful on heavy-load sites where MANY votes are being cast and complex, db-intensive calculations are used to weight the results.

Revision 1.29 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Apr 24 02:32:35 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.28: +130 -2 lines
Diff to previous 1.28
Major enhancements to the actions subsystem, the addition of an experimental widgets library, and the (beginnings) of major enhancements to views integration.

Using the latest CVS version of Views.module, it's now possible to display a particular vote result (say, the number of people who've voted) without using esoteric combinations of filters.

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 22 16:52:20 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.27: +11 -1 lines
Diff to previous 1.27
Automatically build the actions cache if it's not there.

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 22 15:45:29 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.26: +39 -0 lines
Diff to previous 1.26
Major development: there is now a working infrastructure for modules to expose their own 'voting actions' without requiring user customization. This is happy news. Further updates as events warrant.

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 21 19:57:54 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.25: +6 -6 lines
Diff to previous 1.25
Expose public votingapi_add_vote and votingapi_delete_vote functions to allow modules to override normal behavior. This makes it possible to implement anonymous voting, though future explicit support is coming.

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 21 00:59:50 2006 UTC (3 years, 7 months ago) by eaton
Branch: MAIN
Changes since 1.24: +7 -9 lines
Diff to previous 1.24
#59678, #59676, #59637, #59636 -- assorted misc. issues. Thanks, markus_petrux!

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Mar 12 18:10:20 2006 UTC (3 years, 8 months ago) by eaton
Branch: MAIN
Changes since 1.23: +14 -5 lines
Diff to previous 1.23
Lots of small but important fixes, courtesy dado. Thanks!

#53512 - Vote and cache values correctly inserted as floats. (%f is your friend)
#53499 - Incorrect use of %s in a query.
#50748 - Added votingapi_get_vote_by_id($vote_id) for specific retrieval
#53187 - deleting an individual vote now updates the cache, even if only the vote id is passed in.

Also, fixed the .install file to support prefixed tables. Thanks, Bart Jansens!

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 24 05:12:52 2006 UTC (3 years, 9 months ago) by eaton
Branch: MAIN
Changes since 1.22: +8 -8 lines
Diff to previous 1.22
Added indexes to content_type and content_id fields, cleaned up some unecessarily long bits with the aggregate functions, and made the format $ops return sensible default values if no modules handle them.

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 24 04:36:28 2006 UTC (3 years, 9 months ago) by eaton
Branch: MAIN
Changes since 1.21: +1 -1 lines
Diff to previous 1.21
One more little tweak. VotingAPI auto-capitalizes tags/criteria if no other  module formats them.

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 24 04:21:36 2006 UTC (3 years, 9 months ago) by eaton
Branch: MAIN
Changes since 1.20: +81 -39 lines
Diff to previous 1.20
Important commit -- the data type of the value_type field has been changed to accomodate a wider range of voting systems, especially in situations when several are used on one site.

If you're using the latest 4.7 cvs, hit your site's update.php, and run the VotingAPI updates. All existing table data will be converted automatically.

A new votingapi $op is now available as well, allowing modules to format their own data for use in tables, etc. See SimpleVote module for an example.

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Feb 12 04:38:31 2006 UTC (3 years, 9 months ago) by eaton
Branch: MAIN
Changes since 1.19: +6 -2 lines
Diff to previous 1.19
First stab at Views integration with VotingAPI. Configuring it is a little ugly -- mainly useful for custom modules that want to expose a vote-based default_view without coding all the table/field/filter stuff for Views.

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Feb 9 06:19:04 2006 UTC (3 years, 9 months ago) by eaton
Branch: MAIN
Changes since 1.18: +1 -4 lines
Diff to previous 1.18
Misc. bug fixes, .install file now included, value field now signed to allow for negative vote values

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 31 22:17:52 2006 UTC (3 years, 9 months ago) by eaton
Branch: MAIN
Changes since 1.17: +28 -3 lines
Diff to previous 1.17
Made IP logging more robust for proxied visitors, added additional function to retrieve all votes for a piece of content, keyed by uid:

votingapi_get_content_votes('node', 1);

Thanks to Budda for the requests

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 29 03:28:59 2006 UTC (3 years, 9 months ago) by eaton
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16
Incorrect data was being left in the cache array for post calculate ops. Fixed.

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Jan 21 05:47:10 2006 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.15: +4 -1 lines
Diff to previous 1.15
Fun with utf8.

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 19 03:40:48 2006 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Branch point for: DRUPAL-4-6
Changes since 1.14: +8 -5 lines
Diff to previous 1.14
Added an addition $op -- 'post calculate' -- for responses to vote calculations.
Also added additional params ($content_type and $content_id) on the end of the 'calculate' op for cleaner filtering of incoming calculations.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 17 04:31:26 2006 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.13: +16 -1 lines
Diff to previous 1.13
Cleaned up an incorrect comment, added two utility functions.

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 16 22:37:12 2006 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.12: +27 -1 lines
Diff to previous 1.12
Added a convenience function to retrieve a single user's vote by type/nid/tag/etc. Someday, these helper bits should probably be consolidated into a streamlined set of functions, but for now it works.

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 12 23:48:57 2006 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11
Fixed a silly typo that kept fully-qualified recalculation requests from completing.

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 12 16:09:35 2006 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.10: +11 -5 lines
Diff to previous 1.10
Fixes for <a href="http://drupal.org/node/44426">#44426</a> and <a href="http://drupal.org/node/44424">#44424</a>. Thanks, Xteven!

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Jan 5 06:45:34 2006 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.9: +13 -2 lines
Diff to previous 1.9
http://drupal.org/node/43395 -- allow _get_raw_votes() to use an array of uids. Thanks, klimbermann!

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 31 22:07:06 2005 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.8: +28 -1 lines
Diff to previous 1.8
Added the singular votingapi_get_voting_result(), allowing a single aggregate value to be retrieved rather than an array of aggregate functions.

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 28 17:14:41 2005 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7
Whoops. (double-set a property. Fixed.)

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 28 17:13:15 2005 UTC (3 years, 10 months ago) by eaton
Branch: MAIN
Changes since 1.6: +8 -1 lines
Diff to previous 1.6
http://drupal.org/node/41433 -- fixes incorrect defaults for value_type and tag if a vote object is submitted, but the  properties are never set.

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Dec 17 13:31:34 2005 UTC (3 years, 11 months ago) by eaton
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
Show-stopping bug that broke simple vote scenerios

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Dec 11 07:44:48 2005 UTC (3 years, 11 months ago) by eaton
Branch: MAIN
Changes since 1.4: +281 -60 lines
Diff to previous 1.4
Major revisions. Votingapi now supports:
Single or multi-criteria voting on arbitrary content
Multiple types of votes (percentage votes, up-or-down voting, etc)
Automatic calculation and caching of voting results data for efficient node sorting/filtering
Hooks for other modules to implement additional voting types, or add new calculated data based on raw voting scores (adjusted_averages based on user karma, etc)

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 29 18:34:37 2005 UTC (3 years, 11 months ago) by eaton
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3
39333 and 39334. Thanks again, Budda!

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Nov 29 17:02:16 2005 UTC (3 years, 11 months ago) by eaton
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2
Fixed goofy typo that resulted in a bad raw_votes array. (http://drupal.org/node/39324) Thanks, Budda!

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Nov 28 07:23:11 2005 UTC (3 years, 11 months ago) by eaton
Branch: MAIN
Changes since 1.1: +127 -58 lines
Diff to previous 1.1
Completely rewritten version of the votingapi with new hooks for other modules and a streamlined system for casting, changing, and retrieving votes. More to come.

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Oct 10 14:01:12 2005 UTC (4 years, 1 month ago) by eaton
Branch: MAIN
A generic voting API based on voting.module.

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2