JD-666 / wwsc

forum based website
Apache License 2.0
0 stars 0 forks source link

User Rank #44

Closed JD-666 closed 7 years ago

JD-666 commented 7 years ago

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?))

JD-666 commented 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.

JD-666 commented 7 years ago

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.