Mabie there is misunderstood, but my understanding was the + is in your
functuion, "drupalhub_reputation_update_score". all what I did is to take
the value of the vote and multiplicate  it with the value of the variable.
So if vote is -1 and value is 2 we'll get -2.


2014-03-09 11:53 GMT+02:00 RoySegall <notifications@github.com>:

> In
> drupalhub/modules/drupalhub/drupalhub_reputation/drupalhub_reputation.module:
>
> >   */
> > -function drupalhub_reputation_vud_votes(&$votes) {
> > +function drupalhub_reputation_votingapi_insert($votes) {
> > +  foreach ($votes as $vote) {
> > +    $wrapper = entity_metadata_wrapper($vote['entity_type'], $vote['entity_id']);
> > +    if(!$wrapper)
> > +      continue;
> > +    if($vote['entity_type'] == 'comment')
> > +     $type = entity_metadata_wrapper('node',$wrapper->raw()->nid)->getBundle();
> > +    elseif($vote['entity_type'] == 'node')
> > +      $type = $wrapper->getBundle();
> > +    if($type != 'question')
> > +      continue;
> > +    $add_points = $vote['value'] * variable_get('drupalhub_points_for_vote_question_' . $vote['entity_type'], 1);
>
> Also why * and not +
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/DrupalHub/drupalhub/pull/4/files#r10413213>
> .
>



-- 
---
בברכה
יצחק קרומביין- כל אתר ואתר.
0525-802-579