I need help setting up a plugin that redirects my users from seeing the regular template i have defaulted.
For instance I have a rockettheme template installed, but when i have an iphone guest view the site i want them to be redirected with a plugin to the mobile theme and have it saved with a cookie. Just like you guys do with the template variation buttons on your template demos. I dont want to redirect them to a dns entry just a different template.
here is the code i have now:
if (strpos($_SERVER, 'iPhone') !== FALSE)
{
JRequest::setVar('template', 'iNimbus' );
}
It works perfectly except on some servers...i want to get away from this, I want to use a cookie system...Does anyone have any ideas on this?