Closed (fixed)
Project:
Radioactivity
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
28 Apr 2008 at 22:20 UTC
Updated:
31 Jul 2008 at 04:46 UTC
Hi,
I was thinking about extending the functionality of this wonderful module like that:
A node could gain energy when someone votes for it, through Voting API for instance, insted when someone views it. That way it will be moremore flexible and will allow creating of different scenarios - like pligg/drigg for example and many others.
How does it sound?
Comments
Comment #1
skiminki commentedI'm thinking that maybe we should create plug-in support, because I don't want to include non-core drupal stuff for core radioactivity (except for views). This definitely sounds like "Radioactivity VotingAPI Support" module features. The implementation could be as follows:
<module>_radioactivity_info()hook, which would return the module-provided energy types. For example: voteradioactivity_add_energy($nid, 'vote');and the node would receive 5 energies. I believe VotingAPI has the appropriate callbacks for this.How about this? I could write the radioactivity plug-in support, but anyone interested in writing the VotingAPI plug-in? Naturally, I would be pleased to include the plug-in into radioactivity package.
Comment #2
eikes commentedit sounds good to me, I'm interested in this too!
Comment #3
skiminki commentedI've received some additional interest for this feature outside this issue. So, I'm going to write the plug-in support and the VotingAPI plugin. Expect patches in a week or two.
Comment #4
kufeiko commentedUnfortunately, I'm not a good coder, but I can help with testing, or if you have any other idea, I will be glad to help.
Comment #5
skiminki commentedVotingAPI support patched in, amongst others, see #255000: Energy provider and energy target plug-in support.
Comment #6
skiminki commentedComment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.