humanmade / comment-popularity

Allow visitors to vote on comments
MIT License
25 stars 15 forks source link

Allow anonymous voting #80

Closed pdewouters closed 10 years ago

pdewouters commented 10 years ago

Major refactoring

Introduces a Visitor class with subclasses for guests and members.

Guest voting will rely on a cookie which saves the IP address...

Guest votes are saved to a DB option which will keep all guests voting activity. Could potentially become huge.

To enable guest voting: add_filter( 'hmn_cp_allow_guest_voting', '__return_true' );

Differentiate between the concept of a vote being valid and the fact that a visitor can vote.

Rename methods to better names, ( update_comments_voted_on_for_user => log_vote )