Uploaded images do not show on localhost

It would seem your permissions and / or ownership on /usr/share/wordpress/ could be wrong. Try setting this directory to 777 and CHOWN the owner to Apache (on Ubuntu it runs as user www-data). If WordPress was unzipped/expanded in /usr/share/wordpress you would have a folder wp-content – and the /uploads folder should be created in there … Read more

WordPress Automatic Filename Changer

The add_attachment action is called after the attachment has been named. If you only want to change the name of the attachment (and the slug), you don’t need to change the name of the file and can just replace the code inside rename_attachment with a call to wp_update_post. add_action(‘add_attachment’, ‘rename_attacment’); function rename_attacment($post_ID){ $new_attachment_name = array( … Read more

Is there any good way to use SVN for uploads directory?

You could hook into the action add_attachment and perform an SVN commit. add_action( ‘add_attachment’, ‘svn_commit_attachments’ ); function svn_commit_attachments( $attachment_ID ) { // collect data about the attachment, for example its path, the user and so on. shell_exec ( ‘$ svn commit -m “$user added file $filename.”‘ ) }

Restrict authors to seeing ONLY their media files

Not tested, but maybe you can just extend the $pagenow check? Instead of … if( ‘upload.php’ != $pagenow ) … try … if( ! in_array( $pagenow, array ( ‘upload.php’, ‘post-new.php’, ‘post.php’ ) ) ) That should cover the post editor screens too.