Media button Thickbox content doesn’t work everywhere

I ended up solving this by changing my two functions to only one, and setting the “button” to show the iframe directly, like this: function add_custom_media_button() { $cu = wp_get_current_user(); $cusername = $cu->user_login; $clocale = get_locale(); echo ‘<a href=”http://nephila.cloudapp.net/GAdEWeb/wpsearch.aspx?wpuser=” . $cusername . “&wplang=’ . $clocale . ‘&TB_iframe=true&width=800&height=600″ id=”insert-my-media” class=”button thickbox”>Add custom media</a>’; } add_action(‘media_buttons’, ‘add_custom_media_button’, … Read more

How to customize WordPress Thickbox?

Update: Since the link is unavaiable anymore (linked a webarchive in comments but it’s still pretty old and buggy) I suggest to use this. It’s more efficient and reliable and does not require any file add-in or advanced knowledge being more detailed than the old one. Original I’ve bumped into this one before. Here, follow … Read more

Open upload media dialog from thickbox

Finally, I found the solution by replacing event handler! Old Scenario (WRONG) $(‘#TB_window’).on(‘click’, ‘.upload_media a.btn_media_upload’, function (e) { //Code } ); New (Working) $(‘body’).on(‘click’, ‘#TB_window .upload_media a.btn_media_upload’, function (e) { // Code });

ThickBox width can’t be changed in admin

Your are correct it cannot be changed and it looks like there has been no change on this since your question. There is a ticket if anyone is interested in working on this in the WordPress core… WordPress Core Trac

ThickBox replacement

For what it’s worth, I have integrated the new media uploader in a plugin which allows the admin to select or upload media from the standard media dialog instead of having to copy/paste URLs, and it seems to work well. I posted an answer here that might be what you’re looking for. Tom McFarlin has … Read more

techhipbettruvabetnorabahisbahis forumuedusedueduseduseduseduedusedusedusedus