Plugin Directory

Changeset 1201910


Ignore:
Timestamp:
07/19/2015 01:26:03 PM (11 years ago)
Author:
markusklems
Message:

Version 0.3.3 now with new optional input fields for the message form: name and e-mail.

Location:
cloudwok-file-upload/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cloudwok-file-upload/trunk/cloudwok.php

    r1194197 r1201910  
    44Plugin URI: http://www.cloudwok.com
    55Description: CloudWok enables you to let your website visitors upload files directly into a Dropbox, Google Drive, Amazon S3, Box.com, or other cloud storage folder that you own.
    6 Version: 0.3.2
     6Version: 0.3.3
    77Author: CloudWok
    88Author Email: [email protected]
     
    3939            'show_downloads' => False,
    4040            'show_form' => True,
     41            'show_form_input_name' => True,
     42            'show_form_input_email' => True,
    4143            'show_powered_by_link' => False
    4244        ), $atts )
     
    4648    $show_downloads = '';
    4749    $show_form = '';
    48     $show_powered_by_link = 'data-pby="n"';
     50    $show_form_input_name = ' data-show-name="n"';
     51    $show_form_input_email = ' data-show-email="n"';
     52    $show_powered_by_link = ' data-pby="n"';
    4953
    5054    if(array_key_exists('show_uploads', $atts) && $atts['show_uploads'] == "True") {
    5155        $show_uploads = '<div class="cloudwok-upload-files"></div>';
    5256    }
     57    if(array_key_exists('show_form', $atts) && $atts['show_form']  == "True") {
     58        $show_form = '<div class="cloudwok-upload-message"></div>';
     59    }
     60    if(array_key_exists('show_form_input_name', $atts) && $atts['show_form_input_name'] == "True") {
     61        $show_form_input_name = ' data-show-name="y"';
     62    }
     63    if(array_key_exists('show_form_input_email', $atts) && $atts['show_form_input_email'] == "True") {
     64        $show_form_input_email = ' data-show-email="y"';
     65    }
    5366    if(array_key_exists('show_downloads', $atts) && $atts['show_downloads']  == "True") {
    5467        $show_downloads = '<div class="cloudwok-download-files"></div>';
    55     }
    56     if(array_key_exists('show_form', $atts) && $atts['show_form']  == "True") {
    57         $show_form = '<div class="cloudwok-upload-message"></div>';
    5868    }
    5969    if(array_key_exists('show_powered_by_link', $atts) && $atts['show_powered_by_link'] == "True") {
     
    6272
    6373    // Code
    64   $to_return = '<div class="cloudwok-embed" data-wokid="' . $atts['wok_id'] . '" ' . $show_powered_by_link . '>'
     74  $to_return = '<div class="cloudwok-embed" data-wokid="' . $atts['wok_id'] . '" ' . $show_powered_by_link . $show_form_input_name . $show_form_input_email . '>'
    6575      . $show_uploads .
    6676    '<form class="cloudwok-upload">
    6777      <div class="cloudwok-dropzone"></div>
    6878    </form>'
    69         . $show_downloads
    70         . $show_form .
     79        . $show_form
     80        . $show_downloads .
    7181  '</div>
    7282
  • cloudwok-file-upload/trunk/readme.txt

    r1194211 r1201910  
    55Requires at least: 3.0.0
    66Tested up to: 4.2.2
    7 Stable tag: 0.3.2
     7Stable tag: 0.3.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2020
    2121* Create a wedding website where you let wedding guests upload photos directly into your Dropbox, Google Drive, ...
    22 * Create a project website with passowrd-protected file-upload form, through which you collect project deliverables and submissions from colleagues, collaborators, and business partners.
     22* Create a project website with password-protected file-upload form, through which you collect project deliverables and submissions from colleagues, collaborators, and business partners.
    2323* Create a blog where you invite your audience to submit pictures and videos for a contest.
    2424
    25 Share your use case with us by sending us a link to your Wordpress site at [email protected]. We are always happy to hear feedback from our users. Sometimes so much, that we give away service upgrades and upload quota for free.
     25Share your use case with us by sending us a link to your WordPress site at [email protected]. We are always happy to hear feedback from our users. Sometimes so much, that we give away service upgrades and upload quota for free.
    2626
    2727== Installation ==
     
    6969`[cloudwok wok_id="YOUR_WOK_ID" show_uploads="False" show_downloads="True" show_form="True" show_powered_by_link="True"]`
    7070
     71You can customize the message form as follows to let uploaders enter their e-mail and/or name:
     72
     73* `[cloudwok wok_id="YOUR_WOK_ID" show_form="True" show_form_input_name="True" show_form_input_email="True"]` Show a form with name and e-mail input fields in addition to the message field.
     74* `[cloudwok wok_id="YOUR_WOK_ID" show_form="True" show_form_input_name="True"]` Show a form with name field but without e-mail field in addition to the message field.
     75* `[cloudwok wok_id="YOUR_WOK_ID" show_form="True" show_form_input_email="True"]` Show a form without a name field but with an e-mail input fields in addition to the message field.
     76
     77Thereby, you gain the ability to more easily correlate files that are uploaded to your Dropbox, Google Drive, etc. with the name and/or e-mail of the person who uploaded these files.
     78
    7179By default, a small "powered by" text-link to www.cloudwok.com is disabled. If you like our plug-in, we would appreciate it if you would enable the link via `[cloudwok wok_id="YOUR_WOK_ID" show_powered_by_link="True"]`.
    7280
     
    8391== Changelog ==
    8492
     93= 0.3.3 =
     94Added new features to optionally show first name, last name, and e-mail address as input fields of the message form. Use it for example like this: `[cloudwok wok_id="YOUR_WOK_ID" show_form="True" show_form_input_name="True"]`
    8595= 0.3.2 =
    8696Minor code changes.
Note: See TracChangeset for help on using the changeset viewer.