Jake Bunce
Well-known member
Jake Bunce submitted a new resource:
Different style per domain (version 1.x) - A code example for overriding the style choice of the user, in this example by domain name.
Read more about this resource...
Different style per domain (version 1.x) - A code example for overriding the style choice of the user, in this example by domain name.
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:
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'] =...
Read more about this resource...