views:

16

answers:

0

Hi,

I've looked everywhere and while there is solutions to change the uploads directory for all the blogs by changing this line in the wp-settings.php:

define( "BLOGUPLOADDIR", WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" );

I can't find a way of changing the directory for each blog individually, something like:

define( "BLOGUPLOADDIR", WP_CONTENT_DIR . "/blogs.dir/{$blog_name}/files/" );

But I have no idea how could I get the name of the blog from within the wp-settings.php as you can't use get_bloginfo('name'); outside of the template.

Anybody with a solution for this?

EDIT: I also know that you can edit the blog options in the administration but changing the "Upload Path" doesn't seem to do anything while changing the value of "Uploads Use Yearmonth Folders" to 0 stops organizing the uploads in sub-folders by year and month.