A better Media LIbrary Experience

Yes, the media library is long overdue an overhaul, and it seems there are some guys working on it right now. With any luck some changes will make it in to the next release. Take a look here at some of the slides and the many commments and feedback: http://make.wordpress.org/ui/2012/07/30/media-wireframes/

Way to force media uploader use custom image size

When calling add_filter( ‘image_size_names_choose’, ‘custom_image_sizes_choose’ ); use your investigative skills to see how it would be best to call an if(thisweretrue) add_filter( ‘image_size_names_choose’, ‘custom_image_sizes_choose’ ); since I don’t know exactly what your specific situation is. I actually was able to use your solution for setting up the custom sizes to help out with what I … Read more

Unattaching unlinked images

wordpress sucks in keeping media<=>content relationships. Part of the problem is that by default all media are public once they are uploaded and you have no way to know where are they are being used. Just because an image is not referenced anymore in its original post doesn’t mean that it is not referenced at … Read more

Add more rows on media picker

my plugin: http://wordpress.org/extend/plugins/mediapicker-more-rows/ I found a way to fix the pagination There is a way you can ‘hook’ into paginate_links. There is no official hook for it, but you can change the $wp_query->found_posts variable. What I did here is ‘hooking’ into the paginate_links by abusing the media_upload_mime_type_links filter and setting a new value for $wp_query->found_posts. … Read more

How to protect uploads in multisite if user is not logged in?

Nice Question! Poking around it a little bit, this seems to be working (further tests and a more qualified look are much welcome:). Tested only in a localhost development install with subdomains. No domain mapping. Change the following .htaccess rewrite rule: # uploaded files # RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] RewriteRule ^files/(.+) dl-files.php?file=$1 [L] Make a … Read more

How to extend LINK TO functionality in ATTACHMENT DISPLAY SETTINGS

Yes, it’s possible in the same manner as before. I don’t know why you think the filter is not passing the parameters anymore. add_filter(‘attachment_fields_to_edit’, ‘user16975_edit_fields’, 10, 2); function user16975_edit_fields($form_fields, $attachment){ // check for an audio attachment if ( substr($attachment->post_mime_type, 0, 5) == ‘audio’ ) { $playertag = $playertag = “”; $form_fields[“audioplayer”] = array( “label” => … Read more

Attach Files Metabox

For the part of opening a lightbox, browse for something and then performing something on an action within: WordPress has this already build in. For what you ask is basically the thickbox that opens up like in the post editor when you browse for an image in the gallery. You find all the code you … Read more

Password protect some uploaded files, so only logged-in users can view them

See my question and answer again, you linked it already in your question: simple solution for restricting access to (some) uploads/downloads The solution isn’t that hairy the only necessity – besides configuring the plugin correct – is to create a .htaccess, which you could do programmatically. For that you have to automate the creation of … Read more

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