Is there a way to have the vote up/down module automatically assign a +1 vote to all newly created content?

Cheers

Comments

drewish’s picture

Version: 5.x-1.0 » 6.x-1.x-dev

I think that'd be handy. That said new feature typically go into the latest version first.

funana’s picture

Same feature request for the Drupal 5 version here...

ntt’s picture

subscribing

Flying Drupalist’s picture

Isn't it possible with rules?

stevebayerin’s picture

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.

nirad’s picture

subscribing

nirad’s picture

Issue tags: +autovote

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.

DomDoze’s picture

This would be ideal. Was there any takeup anywhere?

marvil07’s picture

Version: 6.x-1.x-dev » 6.x-3.x-dev

No 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.

marvil07’s picture

Status: Active » Postponed
greggles’s picture

Issue tags: +gdolove

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.

marvil07’s picture

Status: Postponed » Closed (duplicate)

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?.