Closed JD-666 closed 7 years ago
To store all the users who liked a specific post; this would have to be a many-to-many field in the Post object.
Completed with the use of Ajax JS function to Http-POST like data to a view function then return and updated number of likes for a Post. Here we also hide the like/dislike buttons for everyone who has already liked the Post.
Display the Users Rank next to their name on every Post they make.
Also display like and dislike buttons in the post well meta-data. Then have JS or CSS change the background-color of the well based on the number of likes. (may need to keep track of a list of users who likes each Post. This way the same user can't like the same post more than once. (one-to-many field?))