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
|
Posted: 29 June 2011 06:30 PM |
|
|
|
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
|
Posted: 30 June 2011 05:40 PM |
# 1
|
|
Developer
|
Hey Andrea,
Can you try using the {like_score} variable? I think that might accomplish what you are looking for.
Michael
|
|
|
The Outfit, Inc
|
Posted: 30 June 2011 06:02 PM |
# 2
|
|
Developer
|
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
|
Posted: 30 June 2011 06:05 PM |
# 3
|
|
|
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
|
|
|