Log of /contributions/modules/votingapi/votingapi.module
Parent Directory
|
Revision Log
|
Revision Graph
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.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.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.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.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.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.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.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.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.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.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.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.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.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.
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.