WordPress.org

Ready to get started?Download WordPress

Forums

Media File Manager
[resolved] Improve styling (my hack) (3 posts)

  1. chrisHe
    Member
    Posted 1 year ago #

    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)

    http://wordpress.org/extend/plugins/media-file-manager/

  2. aueda
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Chris,
    I'll merge your hacks in the next release.
    I appreciate your help.

  3. chrisHe
    Member
    Posted 9 months ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.