Browser based template in Joomla

badwolfff
badwolfff used Ask the Experts™
on
Does anyone know a plugin or component or hack that might enable my joomla installation to load my site using either TEMPLATE A or TEMPLATE B with the following logic:

TEMPLATE A - IE only
TEMPLATE B - All other browsers

thanks so much
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016

Commented:
I do not know the Joomla part of things, but I can show you how to detect the MS IE browser.

In PHP

        if (FALSE === strpos($_SERVER["HTTP_USER_AGENT"], 'MSIE '))
        {
            echo "NOT IE";
        }
Panagiotis Sweb developer - designer

Commented:
you can use a script to determine the browser and then use different css to do your templates

Author

Commented:
it is not that simple Ray and panagiotiss
The site has to look fundamentally different
so I have two different templates and they have to work as I say above

By the way I treid this plugin and everytimg I activate it after install it sends my site into error!
http://extensions.joomla.org/extensions/style-a-design/templating/11833?qh=YTo3OntpOjA7czo5OiJkZXRlY3Rpb24iO2k6MTtzOjc6ImRldGVjdHMiO2k6MjtzOjg6ImRldGVjdGVkIjtpOjM7czo2OiJkZXRlY3QiO2k6NDtzOjEwOiJkZXRlY3RhYmxlIjtpOjU7czo5OiJkZXRlY3RpbmciO2k6NjtzOjg6ImTDqXRlY3RlIjt9


thanks so much

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial