Module

Archived
Forum
(read-only)


For official support, visit the official support site »

LikEE

ExpressionEngine 1.x, ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From The Outfit

     

Add the number of likes and dislikes

Support Request

A. DeMers
A. DeMers

Is there a way to add the number of likes and dislikes (i.e. {like_count} + {dislike_count}) and display the sum (e.g. in the form of “Votes”)?

I couldn’t find a variable for this in the documentation.

Also, I tried the the MX Calculator plugin, but couldn’t get it to work inside the LikEE template tags.

Am I missing something?

Thanks!
Andrea

The Outfit, Inc
# 1
Developer
The Outfit, Inc

Hey Andrea,

Can you try using the {like_score} variable? I think that might accomplish what you are looking for.

Michael

The Outfit, Inc
# 2
Developer
The Outfit, Inc

Hey Andrea!

Unfortunately we don’t have a variable for that right now. If you go to our main support area (get there from booyant.com/likee) and add it as an idea, if enough folks second it, we will build it in.

Michael

A. DeMers
# 3
A. DeMers

Hi Michael,

Thanks for your reply.

Doesn’t {like_score} = {like_count} - {dislike_count}?

The like_score variable outputs the disliked score subtracted from the liked score. For example, if an entry / comment had 200 likes and 25 dislikes: it would have a score of 175.

I would like to do: {like_count} + {dislike_count}, which, using quoted example, would give me 225.

Cheers,
Andrea