I made this simple addon to override the style choice by domain name. You need to edit the library/StyleOverride/Listen.php file to specify the domains and their style_ids:
Also, all of the style_ids you set must be user-selectable:
Of course this code can be changed to use any other conditions you wish.
Rich (BB code):
<?php
class StyleOverride_Listen
{
public static function listen(XenForo_Controller $controller, $action)
{
$visitor = XenForo_Visitor::getInstance();
$host = $controller->getRequest()->getServer('HTTP_HOST');
if ($host == 'www.domain1.com')
{
$visitor['style_id'] = 3;
}
else if ($host == 'www.domain2.com')
{
$visitor['style_id'] = 2;
}
// DEFAULT STYLEID, IF NONE OF THE DOMAINS MATCH
else
{
$visitor['style_id'] = 3;
}
}
}
Also, all of the style_ids you set must be user-selectable:
Of course this code can be changed to use any other conditions you wish.