Hi! I know that this is not an issue for this module. But maybe someone can suggest, how to subtract one flag count from another flag count for the same node and print the result? Would be very gratefull for help.

Comments

mooffie’s picture

Status: Active » Fixed
// Put in node.tpl.php, for example.

$flag_like = flag_get_flag('like');
$flag_hate = flag_get_flag('hate');

print $flag_like->get_count($node->nid) - $flag_hate->get_count($node->nid);
Gus24’s picture

Thanks a lot!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.