Integrate VotingApi with Activity module

Junro - September 1, 2009 - 00:46
Project:Voting API
Version:6.x-2.3
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review
Issue tags:activity2-integration
Description

Hello,

It will be cool if we could integrate VotingApi in Activity module.

I'm not a developer, so I can't help a lot... :(

Activity module provide an extensible API to allow other modules to integrate by using Activity hooks.

Here the Activity issue about integrate VotingApi to Activity #455906: Integration with Votingapi.

I attach DEVELOPER.txt file from Activity module.

I hope someone could help :)

AttachmentSize
DEVELOPER.txt8.66 KB

#1

Junro - September 1, 2009 - 00:46
Title:Make VotingApi work with Activity» Integrate VotingApi to Activity module

#2

Junro - September 1, 2009 - 00:52
Title:Integrate VotingApi to Activity module» Integrate VotingApi with Activity module

#3

Scott Reynolds - November 26, 2009 - 18:58
Status:active» needs review

Here is a patch for it. So it provides the following features
1.) Record voting api activity to streams for node and comment content_types (users are hard, will come back to why later).
2.) After User A votes on the node 14, all Activity around that node 14 can be placed in that User's A Activity stream via Activity Access Votingapi: User voted on node.
3.) After User A votes on comment 34, all Activity around that comment can be placed in User's A stream via Activity Access Votingapi: User voted on same Comment
4.) After User A votes on comment 65 on node 17, all Activity around node 17 can be placed in User's A stream via Activity Access Votingapi: User voted on node.

User voting activity is hard, because of Token. Using token, you can only have one 'user' object for the entire string. So in this case, the 'user' object is the user who does the activity. See votingapi_activity_objects_alter(). So it becomes a little complicated.

#4

Scott Reynolds - November 26, 2009 - 19:03

forgot the patch.

AttachmentSize
votingapi_564904-3.patch 4.97 KB

#5

Scott Reynolds - November 30, 2009 - 19:40
Issue tags:+activity2-integration

Added the tag so i can find this again

#6

Scott Reynolds - November 30, 2009 - 20:30

typo in the table name (comment != comments)

AttachmentSize
votingapi_564904-6.patch 4.67 KB
 
 

Drupal is a registered trademark of Dries Buytaert.