Neuro Member Feb 4, 2015 #1 Is there a way for me to get the current style from with the extension of XenForo_ControllerPublic_Forum?
Is there a way for me to get the current style from with the extension of XenForo_ControllerPublic_Forum?
Chris D XenForo developer Staff member Feb 4, 2015 #2 The default style: PHP: $options = XenForo_Application::getOptions(); $styleId = $options->defaultStyleId; The current style a visitor is using: PHP: $visitor = XenForo_Visitor::getInstance(); $styleId = $visitor->style_id;
The default style: PHP: $options = XenForo_Application::getOptions(); $styleId = $options->defaultStyleId; The current style a visitor is using: PHP: $visitor = XenForo_Visitor::getInstance(); $styleId = $visitor->style_id;
Neuro Member Feb 4, 2015 #3 Chris D said: The default style: PHP: $options = XenForo_Application::getOptions(); $styleId = $options->defaultStyleId; The current style a visitor is using: PHP: $visitor = XenForo_Visitor::getInstance(); $styleId = $visitor->style_id; Click to expand... Thank you!
Chris D said: The default style: PHP: $options = XenForo_Application::getOptions(); $styleId = $options->defaultStyleId; The current style a visitor is using: PHP: $visitor = XenForo_Visitor::getInstance(); $styleId = $visitor->style_id; Click to expand... Thank you!