Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Our wordpress application requires users to log in to post comments.
Why not just let anyone comment? Logged in users can still comment too.
We have to modify the wordpress code on every upgrade to make this work.
That’s really not a good idea and probably not necessary. What modification are you making?
Our customer makes the requirement: Users must log in to post comments.
Files modified to allow anonymous comments:
wp-comments-post.php
wp-admin\includes\class-wp-comments-list-table.php
wp-includes\comment.php
comments-popup.php (our custom comment box)
functions.php (in our theme)
Is there another way to not display the user’s avatar, name, and email everywhere an anonymous comment is listed?
(@pdirac)
11 years, 6 months ago
Our wordpress application requires users to log in to post comments. We also allow anonymous comments. We have to modify the wordpress code on every upgrade to make this work. It would be nice if there was an option to allow anonymous comments.
Our customized comment box has a checkbox for ‘comment anonymously’, and the text area for making a comment. The database table that stores comments has an extra column to indicate anonymous.
For anonymous comments, we don’t display the user avatar, name, or email anywhere the comment is displayed, including on the admin page.
The ‘Author’ field is just ‘Anonymous’.