humanmade / comment-popularity

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

How to enable voting for guest users (not logged). #109

Closed brunomonteiro3 closed 8 years ago

brunomonteiro3 commented 8 years ago

Hello, could you please provide more details on how to enable the voting feature to guest users? I have followed the instructions from the docs, but I may be missing something, since it's not working as expected.

Thanks in advance!

swissspidy commented 8 years ago

Installed it on a site today and adding add_filter( 'hmn_cp_allow_guest_voting', '__return_true' ); to my plugin worked without a problem.

The vote buttons are now displayed for guests too and they can vote as usual.

pdewouters commented 8 years ago

thanks @swissspidy for confirming. I did check but forgot to update here.

aitorserra commented 6 years ago

I did it creating a new mu-plugin and now I'm getting this error:

Warning: Invalid argument supplied for foreach() in /home/honestin/public_html/wp-content/plugins/comment-popularity/inc/class-comment-popularity.php on line 363

swissspidy commented 6 years ago

@anonimo32 I'd suggest opening a new issue for this for visibility

aitorserra commented 6 years ago

Done! thank you.