WordPress native thickbox language

Localize WordPress or write and load special localization for your language specialy for thickbox. Thickbox dialogs support localization provided by WP Update – Let’s Check 1. You have uncomented string <code>define(‘WPLANG’, ‘pl_PL’);</code> in your wp-config.php 2. You have localization files in wp-content/languages/

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 });

Getting RID of thickbox!

I’m guessing front end only, right? function wpse71503_init() { if (!is_admin()) { wp_deregister_style(‘thickbox’); wp_deregister_script(‘thickbox’); } } add_action(‘init’, ‘wpse71503_init’);

Run script after clicking Set Featured Image in Media

I think what you need is (function(){ var featuredImage = wp.media.featuredImage.frame(); featuredImage.on(‘select’, function(){ var attachment = featuredImage.state().get(‘selection’).first().toJSON(); console.log(attachment); }); })(); The attachment object should have height and width properties.

custom tabs in media uploader

found it. in the automattic SVN for media.php i found the media_upload_header() function, and the only thing left to do is to echo it in the last function: function media_upload_ell_gmap_form() { echo media_upload_header(); ?> <h2>HTML Form</h2> <?php } that’s it.

How to enlarge thickbox media library iframe?

Yep, it’s curious that adding the extra parameters doesn’t works… I know that Adminimize does that. Looking at its code, that’s what it does: wp_deregister_script( ‘media-upload’ ); wp_enqueue_script( ‘media-upload’, WP_PLUGIN_URL . “https://wordpress.stackexchange.com/” . FB_ADMINIMIZE_BASEFOLDER . ‘/js/tb_window.js’, array( ‘thickbox’ ) ); And this is the tb_window.js file: // send html to the post editor function send_to_editor(h) … Read more

Error with Custom Admin Screen in iframe Thickbox

Interesting question. Investigating it, I’ve found a [wp-hackers] thread by the same Dion Hulse which gives a bit more of information. First, a testing page with a simple link which will open another admin page in a thickbox. add_action(‘admin_menu’, ‘wpse_71437_admin_submenu’); function wpse_71437_admin_submenu() { add_menu_page( ‘TB’, ‘<span style=”color:#e57300;”>Thickbox</span>’, ‘edit_pages’, ‘open_hidden_page_in_thickbox’, ‘wpse_71437_submenu_page’, ”, // no icon 1 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)