Title: Extend Upload
Author: Gustavo Bordoni
Published: <strong>31. ožujka 2012.</strong>
Last modified: 15. ožujka 2013.

---

Pretraga dodataka

Dodatak **nije testiran s zadnje 3 glavna izdanja WordPressa**. Možda ga se više
ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama
WordPressa.

![](https://s.w.org/plugins/geopattern-icon/extend-upload.svg)

# Extend Upload

 Od [Gustavo Bordoni](https://profiles.wordpress.org/webord/)

[Preuzmi](https://downloads.wordpress.org/plugin/extend-upload.0.0.4.zip)

 * [Detalji](https://hr.wordpress.org/plugins/extend-upload/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/extend-upload/#reviews)
 * [Razvoj](https://hr.wordpress.org/plugins/extend-upload/#developers)

 [Podrška](https://wordpress.org/support/plugin/extend-upload/)

## Opis

I had a problem that most of the time I had to upload a file, and I had to use a
HTML upload, and that’s kind of bad, so I created something to use the Thickbox 
and the WordPress Uploader.

To use you must enqueue in the page used both the style and the script of the plugin:

    ```
    <?php
        wp_enqueue_script( 'extend-upload' );
        wp_enqueue_style( 'extend-upload' );
    ```

Then you can use the plugin by calling the jQuery Extends:

    ```
    (function($) {
        $(document).ready(function () {
            $('.uc-call').callUpload();
        });
    })(jQuery.noConflict());
    ```

And the HTML/PHP output should be something like that:

    ```
    <?php
        $args = array( 
            'url' => admin_url( 'media-upload.php?post_id=0&button=' . rawurlencode('Use as Avatar') . '&TB_iframe=1&width=640&height=253' )
        );
    ?>
    <p class='uc-container'>
        <label><?php echo _e( "Avatar:" ); ?></label><a target='_blank' class='uc-call' data='<?php echo json_encode( $args ); ?>'><small><?php _e( "Upload the Photo" ); ?></small></a>"; ?>
        <input class="uc-answer" type="text" value="<?php echo ( is_numeric( absint( $avatar ) ) ? absint( $avatar ) : esc_url($avatar) ); ?>" />
    </p>
    ```

Having the `uc-call` for the link, `uc-answer` with the input field and `uc-container`
for the box with both the link and the input field.

All the stuff is customizable by passing the variables in to the array `$args`, 
some stuff must be passed in the url, but later on I will add a easier way to do
it.

### Backlog

#### 0.0.4

 * Older version of jQuery allowed and allowing non Image Media to be used

#### 0.0.3

 * Fixed some bugs and added internationalization

#### 0.0.2

 * Added the javascript to change the Insert to Post text on the thickbox

#### 0.0.1

 * Using the the thickbox with the uploader iFrame inside you can call this from
   any page that has the script enqueued

## Recenzije

Nema recenzija za ovaj dodatak.

## Suradnici i Programeri

“Extend Upload” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

 *   [ Gustavo Bordoni ](https://profiles.wordpress.org/webord/)

[Prevedite “Extend Upload” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/extend-upload)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/extend-upload/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/extend-upload/)ili se pretplatite
na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/extend-upload/) od [RSS](https://plugins.trac.wordpress.org/log/extend-upload/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.0.4**
 *  Zadnje ažuriranje **prije 13 godina**
 *  Aktivnih instalacija **Manje od 10**
 *  WordPress inačica ** 3.0 ili viša **
 *  Testirano do **3.5.2**
 *  Language
 * [English (US)](https://wordpress.org/plugins/extend-upload/)
 * Oznake
 * [dev](https://hr.wordpress.org/plugins/tags/dev/)[developer](https://hr.wordpress.org/plugins/tags/developer/)
   [extend](https://hr.wordpress.org/plugins/tags/extend/)[upload](https://hr.wordpress.org/plugins/tags/upload/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/extend-upload/advanced/)

## Ocjena

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/extend-upload/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/extend-upload/reviews/)

## Suradnici

 *   [ Gustavo Bordoni ](https://profiles.wordpress.org/webord/)

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/extend-upload/)

## Doniraj

Želite li podržati napredak ovog dodatka?

 [ Donirajte ovom dodatku ](http://bordoni.me/)