0
Welcome Guest! Login
0 items Join Now

Question about template switching with cookies

  • Question about template switching with cookies

    Posted 15 years 1 month ago
    • 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?

      Thanks so much in advanced!

Time to create page: 0.057 seconds