Multisite- Problem with Third Party Template

I’ve got a third-party template that is having trouble with Multisite and I can’t seem to figure out what the problem is. Here’s an example of what its supposed to look like…

But, my thumbnails (that get uploaded to wp-content/blogs.dir/”blog id”:wink: aren’t showing up. Demonstrated here…

This code was suggested to me by the them developer to modify the template for Multisite usage.

In header.php we put…


global $blog_id;

$blog_id = get_current_site()->id;

$blog_details = get_blog_details(1);



<!DOCTYPE html>

<html xmlns=””&gt;


And in image.php…

“//First, you need blog_id variable (from step 1 & step 2)

$blog_id = 4; //that’s the place where you should include some WordPress file

// that can pass $blog_id variable to THIS file (image.php) (see above)

//Secondly, you need to replace DOCUMENT_ROOT with your path

if (isset($blog_id) && $blog_id > 0) {

$imageParts = explode(‘/files/’, $_GET);

if (isset($imageParts[1])) {

//New DOCUMENT_ROOT path for image.php. Please note that

//it may vary slightly for your server!

$theImageSrc = ‘/wp-content/blogs.dir/’ . $blog_id . ‘/’;




” define(‘DOCUMENT_ROOT’, $theImageSrc);

//define(‘DOCUMENT_ROOT’, $_SERVER);”

This shooooould work…but, I keep getting the Multisite Redirect site name “seed” being thrown into the URL after the $blog_id and before the file/date/image.jpg

I am pulling my hair out trying to get the “seed” out of the URL…or at least get it to point to the correct blogs.dir/$blog_id.

Any pointers?

I’d be glad to send any FTP/Control Panel usernames and passwords if you need them. Thanks!!!