First I want to congratulate you on a job well done!! "Job" because you put A LOT of work into this, "Well" because the code looks clean and doesn't require tons of core changes and "Done" because you actually made it to a finished mod!

I have my test sites up and running, but the only problem seems to be that the template isn't being chosen based on which site you're at. I can still choose the template from within the admin and that is the actual template that appears at BOTH sites. Catorization is working but I just can't get the templates to "stick."

Here are my sites: http://testsite.onlinecatholicstore.com and http://testsite2.onlinecatholicstore.com

Here's the content of my testsite.onlinecatholicstore.com_config.php
Code:
<?php
    define('DIR_WS_CATALOG', '/');
	define('DIR_WS_HTTPS_CATALOG', '/');
	$template_dir = "testsite";
	define('SITE_NAME','testsite.onlinecatholicstore.com');
?>
And the content of testsite2.onlinecatholicstore.com_config.php
Code:
<?php
    define('DIR_WS_CATALOG', '/');
	define('DIR_WS_HTTPS_CATALOG', '/');
	$template_dir = "testsite2";
	define('SITE_NAME','testsite2.onlinecatholicstore.com');
?>
And, of course, I've included site_switch.php at the top of my configure.php file.

Any idea what's going on? I appreciate anything you can do...I've hit a brick wall

Thanks,
Patti