• flymy

    (@flymy)


    Below is a code that can change the SRC URL of the inline iframe in Post.php.

    function change_upload_src($src) {
    // $src is the original URL if you need it for anything
    return 'http://www.yahoo.com';
    }
    add_filter('uploading_iframe_src', 'change_upload_src');

    I would like to integrate the upload page of old-style-upload plugin inside the inline iframe in Post.php.

    Using the link http://…/wp-admin/admin.php?page=filosofo-old-style-upload_he.php is not an option, because it’s not really comfortable.

    I’ve asked the plugin author for help, but he was only able giving me instructions on how to do that :

    What you could do is modify the plugin so that you would hook into the init action hook, check for a custom $_GET request variable, then call just the plugin’s existing options_page method. Then you could make your iframe’s src to be a path to the WP admin directory plus the custom request variable, and voila, there would be the upload page in your iframe.

    You’ll also need to change the form’s action attribute to point to that same path.

    But I could’nt understand anything (my programming is not that good). Can anyone please help me to modify the plugin to my wish? I think it’s a great solution for everyone 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • Kahil

    (@kahil)

    This sounds like a great idea! Hopefully someone can help…

    Thread Starter flymy

    (@flymy)

    lol … well thanks.

    Does anyone can help? pleasssse 🙂

    Thread Starter flymy

    (@flymy)

    Anyone? please?

    Kahil

    (@kahil)

    I’m no coder, but you may look at how the upload form is put onto the page it is already. You may be able to call it in the same way elsewhere. I use that upload plugin, so when I get a chance, I’ll give it a looksy and see if I can possibly figure out a way for ya… just be patient bud.

    Thread Starter flymy

    (@flymy)

    Thanks 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Integrating “old-style-upload” plugin instead of “inline upload” inside post.php’ is closed to new replies.