DCO Comment Attachment

Описание

DCO Comment Attachment allows your visitors to attach images, videos, audios, documents and other files with their comments. They will also be able to automatically embed links from Youtube, Facebook, Twitter and other services in the comment text.

С помощью настроек плагина вы можете:

  • Ограничить максимальный размер загружаемого файла.
  • Сделать вложение обязательным.
  • Specify whether the attachment will be embedded or displayed as a link.
  • Enable/Disable autoembed links (like Youtube, Facebook, Twitter, etc.) in the comment text.
  • Attach an attachment to a commented post.
  • Select an attachment image size from thumbnails available in your WordPress install.
  • Link thumbnail to full-size image with lightbox plugins support (see FAQ for details).
  • Включить/отключить множественную загрузку.
  • Объединить изображения в галерею.
  • Select an attachment image size for the images gallery.
  • Restrict attachment file types.
  • Decide who will be able to upload attachments: all users or only logged users.
  • Manually moderate comments with attachments.

Вы также можете:

  • Add, replace or delete an attachment from a comment on Edit Comment screen.
  • Attach an unlimited number of attachments to the comment in the admin panel.
  • Delete an attachment on Comments screen.

Attachments are uploaded to the WordPress Media Library and deleted along with the comment (if this is set in the settings).

DCO Comment Attachment также доступен на GitHub.

Скриншоты

  • Примеры типов вложений.
  • A commenting form with an attachment field.
  • Список комментариев в админ-панели.
  • Screen for editing a comment in the admin panel.
  • Страница настроек плагина.
  • Пример лайтбокса с плагином Simple Lightbox.
  • List of attached attachments in the "New comment" email notification.

Установка

  1. Загрузите папку dco-comment-attachment в каталог /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Часто задаваемые вопросы

Какие лайтбокс-плагины поддерживаются?

DCO Comment Attachment tested with:
* Simple Lightbox
* Easy FancyBox
* Responsive Lightbox & Gallery
* FooBox Image Lightbox
* FancyBox for WordPress

Feel free to create a new topic on support forum if you need integration with another plugin.

Отзывы

18.09.2020
it's a very difficult plugin. ничё так, норм
14.02.2020
This is good, but it definitely needs access controls, such as limiting the function to logged in users (not allowing anonymous users to post attachments), otherwise it's just too risky too use.
01.07.2019
Very grateful for providing these facilities. A finding at the precise moment.
Посмотреть все 4 отзыва

Участники и разработчики

«DCO Comment Attachment» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники

«DCO Comment Attachment» переведён на 3 языка. Благодарим переводчиков за их работу.

Перевести «DCO Comment Attachment» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

2.1.0

  • Added links to attached attachments to the new comment notification email.
  • Added the feature to force moderation comments with attachments.
  • Added compatible with SVG Support plugin.

2.0.0

  • Added the feature to upload multiple files.
  • Добавлена поддержка некоторых лайтбокс-плагинов (см. подробности в FAQ).
  • Added additional markup to the form elements (thank you @matthewmcvickar)
  • Added error handling for JavaScript on the frontend (thank you @mrbalkon for the suggestion)
  • Улучшена страница настроек
  • Filter dco_ca_form_element_autoembed_links_notification is deprecated. Use dco_ca_form_element_autoembed_links instead.
  • Type autoembed-links-notification for form_element function is deprecated. Use autoembed-links instead.

1.3.1

  • Fixed image embed bug when attachment url has get parameters (thank you @deepreef)

1.3.0

  • Added the feature to link a thumbnail to a full-size image.
  • Added the feature for restrict uploading attachments only to logged users.
  • Added notification about automatically embedded links, when it’s enabled.
  • Fixed bug with incorrect display of attachment types that do not support embedding. (thank you @nazzareno)
  • Removed jQuery dependency on the frontend.

1.2.1

  • Fixed Quick Edit Comment function bug (thank you @bbceg)

1.2.0

  • Added the feature for autoembed links in comment text. You can disable it in Settings -> DCO Comment Attachment.
  • Introduced dco_ca_disable_display_attachment hook. Now you can display attachment in custom place with add_filter('dco_ca_disable_display_attachment', '__return_true'); filter and dco_ca()->display_attachment() function.

1.1.2

  • Fixed display of empty allowed types if the website administrator has forbidden the upload of all extensions of this type. (thank you @nunofrsilva)

1.1.1

  • Added filters for the attachment field customization

1.1.0

  • Now you can select and deselect Allowed File Types by the type in one click.
  • Added dco_ca_disable_attachment_field hook for disable the upload attachment field.
  • Reduced the effect of mime types filtering. Now it applies only for comment attachment upload.
  • Added the feature to attach an attachment to a commented post.

1.0.0

  • Первая версия