KG69Design web-design layout

WEB LAYOUT DESIGN

Uniqe psd WEB LAYOUT design

Here you can order a unique web layout for your project. You can get anything from a simple psd layout (50 USD) to a high detailed psd template (100-250 USD).

Read more...

16/08 2009

LOGO DESIGN +

LOGO DESIGNS concepts

Here you can order design services including logo design (50 USD), business cards (50 USD), flyers (50 USD) and leaflet design (100 USD).

Read more...

11/07 2010

BANNER DESIGN

Animated gif and swf BANNERS

Here you can order gif banners (10-20 USD) or flash banners (20-40 USD). Banner is extremely beneficial and cost effective way to promote your project.

Read more...

02/09 2010

Multiple files uploading (like gmail) with Contact Form 7 (updated 29.10.2012)

In this tutorial will be covering how to make "Upload-attach multiple files" feature, like gmail has, with Contact Form 7 Wordpress plugin.

1. First of all, we need to predefine set of file-upload inputs in plugin's admin section, something like these:

  <p class="hide_this">[file file-01]</p>
  <p class="hide_this">[file file-02]<a class="del_file" href="#">del</a></p>
  <p class="hide_this">[file file-03]<a class="del_file" href="#">del</a></p>
  <p class="hide_this">[file file-04]<a class="del_file" href="#">del</a></p>
  <p class="hide_this">[file file-05]<a class="del_file" href="#">del</a></p>
  <a href="#" class="add_file">Add file</a>

We set 5 (you can do more, of course) inputs and links to "add" and "delete". Also we added some markup. You can see this step in a screen below (clickable):

01

2. Also, don't forget to put the code [file-01][file-02][file-03][file-04][file-05] into "File attachments" field.

You can see this step in a screen:

01

3. Then we need to add some functionality with jQuery. Something like this:

<script type="text/javascript">
  jQuery(document).ready(function($){

    //hide all inputs except the first one
    $('p.hide_this').not(':eq(0)').hide();

    //functionality for add-file link
    $('a.add_file').on('click', function(e){
      //show by click the first one from hidden inputs
      $('p.hide_this:not(:visible):first').show('slow');
      e.preventDefault();
    });

    //functionality for del-file link
    $('a.del_file').on('click', function(e){
      //var init
      var input_parent = $(this).parent();
      var input_wrap = input_parent.find('span');
      //reset field value
      input_wrap.html(input_wrap.html());
      //hide by click
      input_parent.hide('slow');
      e.preventDefault();
    });
  });
</script>

This script is rather self-documented.

We can put this script in one of our theme's files. For example, you can put jquery-code, mentioned above, in footer.php. Also, you can do some css-styling but this is very specific in each particular case and this tutorial is not about that. The real example you can see on one of my project's site

Here I described the main idea of how to implement the multiple-file uploading feature, so, maybe there is a more easy way to do this. If so, feel free to write on kg69design@gmail.com

English is not my native language, sorry for some possible mistakes.