Integrating “old-style-upload” plugin instead of “inline upload” inside post.php
-
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 🙂
The topic ‘Integrating “old-style-upload” plugin instead of “inline upload” inside post.php’ is closed to new replies.