Is there a way to have the vote up/down module automatically assign a +1 vote to all newly created content?
Cheers
I think that'd be handy. That said new feature typically go into the latest version first.
Same feature request for the Drupal 5 version here...
subscribing
Isn't it possible with rules?
I've re-tried using Work flow NG (Rules' predecessor for D5) but unfortunately there isn't an option for adding a vote for newly created content.
There is this autovote module snippet: http://drupal.org/node/176560#comment-1616326 But it isn't updated for VotingAPI v2 in Drupal 6. I thought it would work by changing
/* OK - let's vote */ votingapi_set_vote('node', $node->nid, 100, $user->uid);
into
/* OK - let's vote */ $vote['content_id'] = nid; $vote['value'] = 100; votingapi_set_votes(&$vote);
but I must be doing something wrong.
This would be ideal. Was there any takeup anywhere?
No more features to 6.x-1.x, please take a look to the update on the project page.
6.x-1.x
IMHO doing this through rules is a good idea.
#467220: Integration with rules
I'm not sure this makes sense to do with rules.
I don't think groups.drupal.org will ever run Rules so I would prefer to have this feature directly in the module.
Barring that we could have some site specific code to do this.
I am marking this as duplicate of #467220: Integration with rules, since I think it is a good idea to provide this feature through rules.
BTW, for the exact code needed to make the voting, lyricnz provided the piece of code needed to do it by hand in the #2 comment of #843298: How do I automatically assign upvote when a node is created?.
Comments
Comment #1
drewish commentedI think that'd be handy. That said new feature typically go into the latest version first.
Comment #2
funana commentedSame feature request for the Drupal 5 version here...
Comment #3
ntt commentedsubscribing
Comment #4
Flying Drupalist commentedIsn't it possible with rules?
Comment #5
stevebayerin commentedI've re-tried using Work flow NG (Rules' predecessor for D5) but unfortunately there isn't an option for adding a vote for newly created content.
Comment #6
nirad commentedsubscribing
Comment #7
nirad commentedThere is this autovote module snippet: http://drupal.org/node/176560#comment-1616326
But it isn't updated for VotingAPI v2 in Drupal 6.
I thought it would work by changing
into
but I must be doing something wrong.
Comment #8
DomDoze commentedThis would be ideal. Was there any takeup anywhere?
Comment #9
marvil07 commentedNo more features to
6.x-1.x, please take a look to the update on the project page.IMHO doing this through rules is a good idea.
Comment #10
marvil07 commented#467220: Integration with rules
Comment #11
gregglesI'm not sure this makes sense to do with rules.
I don't think groups.drupal.org will ever run Rules so I would prefer to have this feature directly in the module.
Barring that we could have some site specific code to do this.
Comment #12
marvil07 commentedI am marking this as duplicate of #467220: Integration with rules, since I think it is a good idea to provide this feature through rules.
BTW, for the exact code needed to make the voting, lyricnz provided the piece of code needed to do it by hand in the #2 comment of #843298: How do I automatically assign upvote when a node is created?.