Description
Pz-Comments adds a speech bubble layout, image attachments, and Markdown input to WordPress comments.
Guest and registered user comments appear on opposite sides, with configurable background colors.
Japanese documentation is available in readme-ja.txt.
Features
- Optional custom comment layout with speech bubbles.
- Attach images by selecting files, pasting, or dragging and dropping.
- Preview, remove, and reorder images before submitting a comment.
- Allow 0 to 10 images per comment, with a maximum file size of 1 to 100 MB per image.
- Set image display size from 24 to 320 pixels (144 pixels by default).
- Optional JavaScript image downscaling improves display quality without changing original files. Disabled by default.
- Display attachments in a horizontal gallery and click to enlarge images.
- Optionally hold image comments for moderation. Enabled by default; administrators are exempt from this additional moderation rule.
- Restrict image viewing to administrators and show image icons to other visitors.
- Markdown headings, emphasis, lists, block quotes, code, and tables.
- Always show the Markdown preview or switch between editing and preview modes.
- Optional confirmation when leaving the page with an unsubmitted comment.
- Manage attachments in the standard WordPress comment editor: add, insert, reorder, replace, and remove images. Changes are saved when the comment is updated.
- Bundled Japanese translations.
Image storage and access control
Images are stored in the WordPress uploads directory and normally served through a plugin URL that checks viewing permissions.
The plugin creates .htaccess rules for Apache and web.config rules for IIS. Protection against direct access depends on server configuration.
Servers such as Nginx do not use these files and require server-level rules to deny direct access to the storage directory.
When using administrator-only images, verify that direct access to the stored files is blocked.
Privacy
The plugin stores uploaded images, original filenames, and attachment metadata on your server.
It uses WordPress avatars for comment authors. Depending on your site configuration, avatars may connect to Gravatar.
Installation
- Upload the pz-comments folder to /wp-content/plugins/.
- Activate Pz-Comments from the Plugins screen in WordPress.
- Open Settings > [Pz] Comments Settings to configure attachments and display options.
- Enable comments on a post or page and check the comment form.
FAQ
-
Where can I change image sizes and attachment limits?
-
Use Settings > [Pz] Comments Settings. File size limits range from 1 to 100 MB, image display size from 24 to 320 pixels, and attachment count from 0 to 10.
Setting the attachment count to zero disables new image attachments. PHP and web server upload limits also apply. -
Does changing image display size resize the original files?
-
No. It changes the square display area in comments and previews. Original files remain unchanged.
-
Can I restrict images to administrators?
-
Select the administrator-only option for image viewing. The plugin image endpoint requires a logged-in user with the manage_options capability.
See Image storage and access control for direct-file access requirements. -
Where are images stored?
-
Images are stored in wp-content/uploads/pz-comments/{upload-key}/{comment-ID}/, or the equivalent location in a customized uploads directory.
The upload key is a random 32-character string available in the System settings. -
Does removing an attachment delete the image file?
-
Yes. Removing an attachment in the comment editor also deletes its image file. Deleted image files cannot be restored by this plugin.
-
What happens to images when a comment is deleted?
-
Permanently deleting a comment removes its image directory and files. Moving a comment to the trash does not delete its images.
-
What happens when I delete the plugin?
-
Uninstalling removes settings, the upload key, and attachment comment metadata.
If the System setting to delete images on uninstall is enabled (the default), the plugin storage directory is also removed.
Disable that setting to retain image files. Deactivating the plugin does not delete this data. -
Does every theme display comments the same way?
-
Appearance may vary with theme templates and CSS. The custom comment layout uses the standard WordPress comment template mechanism.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Pz-Comments” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Pz-Comments” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.