Closed (fixed)
Project:
Community Tags
Version:
6.x-2.x-dev
Component:
Rules integration
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2008 at 01:21 UTC
Updated:
31 Mar 2011 at 15:01 UTC
Would this be possible in the future (maybe 6.x version)? ie: awarding a user points for tagging an item to encourage participation.
This seems like a great module!
Comments
Comment #1
DjC4 commentedAgreed. I second the motion. That would be an amazing add on.
Comment #2
DjC4 commentedUpdating status with new issue settings.
Comment #3
giorgio79 commentedsubs
Comment #4
WildBill commentedYeah, I concur, integration with Userpoints would be awesome.
Comment #5
jlevis commentedI agree that the ability to award user points for tagging with keywords from your taxonomy vocabularies would encourage participation in creating a folksonomy.
Comment #6
Canadaka commentedsubscribe
I actualy hacked together a solution until something is added proper. I replaced the function in the community_tags.ajax.inc file with this. So It just gives 1 point for each tag added. No points are deducted when a tag is removed though.
Comment #7
Melissamcewen commentedsubscribe
Comment #8
chrisbuck commentedIs that feature unavailable through rules/actions? +1 for the idea anyway. subscribing.
Comment #9
entrigan commentedCBFPLC: I dont think this is available through rules because there is no action for "A term has been added to a node". I think however that rules integration would be the way to go to accomplish this so I am changing the title.
Comment #10
marcoka commentedthe best workflow for a user point integration would be.
1.) user tags content
2.) an admin or mod must approve the tags -> accept and move to vocavulary X (accepted)
3.) User gets an amout of points for that.
if the tags are rejected nothing happens or the user gets a message "not accepted ...."?
Comment #11
queryblitz commented+1 for Rules integration. + a few more for everyone here: http://drupal.org/node/941538
Comment #12
Amy_M commentedSubscribing
Comment #13
chaps2 commentedI've added some Rules support to 6.x-2.x-dev.
Included is a "tag" event for tags added via community tags form or node edit form. Tags added as a result of a rebuild don't fire the event.
With the user points application in mind I included a couple of conditions for a) first tag (i.e. first user to tag node with particular term) and b) tagging user is node author.
Comment #14
chaps2 commentedAnybody need an un-tag rule event?
Comment #15
queryblitz commentedCan I set a condition if tagged node is type X, etc?
Comment #16
chaps2 commentedYes you can. The node, user, and term are all available for any conditions you care to add.
Comment #17
queryblitz commentedWow cool thanks! This is great, I can't wait to implement it. I can't think of a use-case for untagging, but you can bet someone will come along and need it.
edit: sorry one more question. This will allow me to both tag something as an action, and set another action to occur when I've tagged something, right? I haven't had a chance to set up the site yet so I haven't checked.
Comment #18
chaps2 commentedI haven't put any tag actions in. It seems an unlikely requirement as community tagging is all about user interaction. I would expect actions to flow from the tagging event - not vice versa. Would you care to share your use-case?
Comment #19
queryblitz commentedWell let's say I have Feeds set to automatically import nodes of type x, and I would like to have tags automatically added to it through community tags to jump-start the discussion. I'm not sure if Rules would be the best way to do it, or even - like you say, if it's necessary. I don't need it right now, but it seems like as soon as I think I don't need something, I build another site that does.
Comment #20
chaps2 commented@paidvideoreviews - Community Tags does this already if the feed includes tags. The tags are added as terms to the node by Feed API and Community Tags adds those terms as community tags. Note that in the latest 2.x-dev snapshot, the sub module "Community Tags Node" must be enabled and synchronisation option "Sync community tags with node terms" must be set for this to happen.
Also the latest 2.x-dev adds views support via a sub-module so that must be enabled as well. On the plus side - I have added an un-tagging event. This latest snapshot also makes a clear distinction between actual user tagging actions - i.e. that occur via the CT ajax form or API calls to community_tags_tag() and community_tags_untag() - and adding and removing tags due to some other operation e.g. node term synchronisation or Unitag processing or API calls to community_tags_add_tags() and community_tags_remove_tags(). Rules events are fired only for the actual user tagging/un-tagging operations.
I'm going to mark this as fixed as the original requirement was for Rules events which has been implemented. If somebody reading this needs Rules actions then feel free to raise another issue.