I noticed that with every scoop created, the class 'karma_form_promoted' was automatically assigned to the form. Eventhough i hadn't voted or wasn't logged in. I thought the reason for this class was that when the user votes, the class would change.

When i changed this:

// This will be attached to the form's style
if ($o->promote) {
$is_promoted_class = '_promoted';
}

into this:

// This will be attached to the form's style
if ($existing_vote != NULL) {
$is_promoted_class = '_promoted';
}

everything worked according to expectations. I don't know if i'm doing something wrong here, so if anybody has an opinion about this?

thanks

m

Comments

mercmobily’s picture

Hi,

I am the old maintainer trying to take control again.
That class is actually used for *promoted* nodes, which in this case mean "promoted to the front page".
So, the class should only be there when the node has been promoted to the front page, and that's it. When you create nodes, do you promote them automatically? If that's the case, then the behaviour is correct...

Please let me know,

Merc.

munikho’s picture

I think the behaviour is then correct. I thought it was a class that was added if the user that is logged in, has voted for that node.

Btw, great to see that you're back trying to take control. that's really great.

mercmobily’s picture

Status: Active » Fixed

Hi,

OK cool, fixed :D

Merc.

mercmobily’s picture

Status: Fixed » Closed (fixed)