Gravity Forms Adv Uploads – Email Notification Addon

adv_uploader_email_tags

Requires Gravity Forms Version 1.8+ AND Gravity Forms Advanced File Uploader Plugin (version 1.23+). Download Here

Details

Gravity Forms Adv Uploads Email Notification Addon extends the Gravity Forms Advanced File Uploader plugin and provides you with a custom merge tag to add into your emails.

 

The custom merge tag will render a table of all files and/or external videos uploaded via each form submission.
Screen Shot 2015-01-27 at 8.29.15 PM
You will find your merge tag while editing a forms confirmation or notification email settings. Click the small icon to the far right of the email content editor, scroll down to the Custom section and click the Adv Uploads tag.

 

You can also manually add the tag to your email content, copy and paste this:

{adv_uploads}

What’s included

Please note that this purchase includes the Gravity Forms Adv Uploads Email Notification Addon files as well as a license key providing 1 year of free plugin updates and support from the developer.

Docs

Templates

The file uploads section with the confirmation emails is generated using a view template, similar to page templates in WordPress. If you are familiar with page templates in WordPress you can easily customize how the uploads section is rendered in confirmation emails.

 

  1. Copy this folder (adv_uploader_emails) into your theme root folder: wp-content/plugins/prso-gf-advup-emails/inc/templates/adv_uploader_emails
  2. Inside the adv_uploader_emails folder in your theme you will find a file called: uploads_template.php
  3. uploads_template.php contains a php loop wrapped within a table, this is how Gravity Forms renders email output.
  4. The php loop works similar to the WordPress post content loop. If you are not familiar with this don’t edit any of the php.
  5. If you wish to edit the uploads table title, file upload titles, or urls see the filters section below.

 

Here is the html output for each uploaded file, find this within the PHP loop:

<tr bgcolor="#FFFFFF">
  <td width="20">&nbsp;</td>
  <td>
      <a href="<?php echo esc_url( $file_url ); ?>"><?php esc_attr_e($file_title); ?></a>
  </td>
</tr>

 

Filters

prso_gfadv_emails_email_title

Change the title used for the uploads table in confirmation emails.

add_filter( 'prso_gfadv_emails_email_title', 'email_uploads_table_title', 10, 1 );
function email_uploads_table_title( $title ) {
 $title = 'My New Title:';
 return $title;
}

prso_gfadv_emails_email_file_title

Change the title used for a specific file in the uploads table within a confirmation email. Note you can make use the parameters passed to the filter in order to identify each file:

 

  • $file_title: Current file title
  • $attachment_id: WordPress attachment ID (This will be an array if file is hosted externally e.g. YouTube)
  • $FileAttachmentData: WordPress attachment object for current file
add_filter( 'prso_gfadv_emails_email_file_title', 'email_file_upload_title', 10, 3 );
function email_file_upload_title( $file_title, $attachment_id, $FileAttachmentData ) {
 $file_title = 'My New File Title';
 return $file_title;
}

prso_gfadv_emails_email_file_url

Change the URL used for a specific file in the uploads table within a confirmation email ONLY. Note you can make use the parameters passed to the filter in order to identify each file:

 

  • $file_url: Current file URL
  • $attachment_id: WordPress attachment ID (This will be an array if file is hosted externally e.g. YouTube)
  • $FileAttachmentData: WordPress attachment object for current file
add_filter( 'prso_gfadv_emails_email_file_url', 'email_file_upload_url', 10, 3 );
function email_file_upload_url( $file_url, $attachment_id, $FileAttachmentData ) {
 $file_url = 'http://www.newfileurl.com/file.jpg';
 return $file_url;
}

Support
  • Plugin License Key provided on purcahse.







 

Specs
Release date:2015-01-27
Last updated:2015-01-27
Current version:1.52
Product type:Wordpress Plugin
File format:.zip
Requirements:Wordpress 3.0+, Gravity Forms Advanced File Uploader Plugin
Price:$10.00 USD

Copyright 2017