View Documentation

Email Comments:

This plugin adds the ability to email comments left for a photo to the owner - and optionally to others that have left comments for the same photo. It is based on information in this forum thread including input from André, lurkalot, and cmfa.

CONFIGURATION settings allow specification of whether to email owner only, email others that have left comments, whether to include a thumbnail of the image in the email, email subject and email text to use. Sample emails are shown to reflect the current settings.

 

Installation:

Unzip the distribution files and upload the contents (including folder comment_email) to your plugins directory. In admin mode, select Plugin Manager, and click install next to this plugin.

 

Uninstall:

Select Plugin Manager, and click uninstall next to this plugin.
The normal plugin manager confirmation will be displayed first - Click 'OK'
A confirmation dialog will be presented by Comment Email to allow you to select desired actions.
You can of course select any/all items to be removed.
Click 'Uninstall Comment Email' to proceed.

 

Configuration:

Select configure on this plugin from Plugin Manager.
The Configuration Settings are hidden by default. Click 'show' to expand (much like CPG configuration). Select appropriate check boxes, based on preferences.

config menu

Setting Descriptions:

  • Send Comment Emails to Photo Owner
    When checked enables plugin and sends email to photo owner. Unchecking this option disables the plugin.
  • Send Comment Emails to Other Commenters
    In addition to the owner, send an email to any others that have left comments for the same photo.
  • Send Thumbnail Image in Email
    When checked, include an embedded image of the photo thumbnail in the email.
  • Email Subject
    Text Subject to use for email. The gallery name is placed in front of this text.

For the Owner, Author, and Email Paragraphs below, there is a 255 character limit each.
The following tokens can be used in any of these entries and will be replaced when sending:

  • {username} - the username of the email recipient

 
Setting Descriptions (continued):

  • Email Intro to Owner
    Text to start the email body to picture owner.
  • Email Intro to Comment Authors
    Text to start the email body to others that have commented on the photo.

The photo title (or filename if no title) and thumbnail (if requested) inserted following this. The following additional tokens can be used in the following entries and will be replaced when sending:

  • {author} - the username of the comment author
  • {comment} - the text of the comment left
  • {link} - link to this photo in the gallery

 
Setting Descriptions (continued):

  • Email Paragraph 1
    First paragraph of text for email body (follows title and thumbnail)
  • Email Paragraph 2
    Second paragraph of text for email body
  • Email Paragraph 3
    Third paragraph of text for email body
  • Email Paragraph 4
    Fourth paragraph of text for email body
  • Email Login Required
    Additional paragraph of text for email body added when gallery is set to require login to view pictures.
    •  
      Once submitted, validated, your settings will be saved, and the configuration screen redisplayed with results.
      The text of a sample email using one of your gallery photos will be shown as would be sent to the photo owner. If email to other commenters is selected, a second email will be shown as would be sent to them.

 

Execution:

Plugin will be invoked (assuming Plugin API is active) anytime a comment is left (if no approval needed) - or when a comment is approved. Emails will be sent per your setting - one email per recipient.

 

Your comments are welcome.
I hope you find this useful.
Greg (gmc on the CPG forum)