• Resolved chrishe

    (@chrishe)


    Hi aueda,
    I have just installed this plugin with WP3.5.1 and it seems to work for me.
    One small thing – On the Edit Post Page there is the WP “Add Media” button, followed by your link “Media Selector” as text .
    It’s nicer to make it a button. I have a short HACK which does this for you:
    in public function onMediaButtons()
    comment out 1 line, add the two below:

    //		echo '<a href="' . $iframe . $option . '" class="thickbox" title="' . $title . '"><img src="' . $button . '" alt="' . $title . '" /></a>';
    		echo ' <a href="' . $iframe . $option . '" class="wp-media-buttons button add_media thickbox" title="' . $title . '">';
    		echo '<span class="wp-media-buttons-icon" ></span><span  style="background-color:#cfc;"> &nbsp;&nbsp;'.$title.'&nbsp;&nbsp; </a> </span></span>';

    That also colors the button text, which is not necessary of course!
    Secondly, in English I think it may be better to change the title of the popup from “Insert a Media” to “Choose Media” (because one must actually insert the media using the button below the options at the bottom of the window)
    A little hack for that:

    function onModifyMediaTab( $tabs )
    	{
    	 //my hack!
    		// return array( "mrlMS" => "Insert a media" );
    		return array( "mrlMS" => "Choose Media" );
    	}

    I hope you find that helpful. I appreciate that your natural language is not English, but please note that your comment lines /** comment etc do not display with code page latin 1. (The code is ok tho!)
    Best Regards
    Chris
    (UK)

    https://www.ads-software.com/extend/plugins/media-file-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Improve styling (my hack)’ is closed to new replies.