We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28690
    • 25 Posts
    I’m a little confused. Does the "ipad" property force the plugin to only detect iPads or ignore iPads and treat them as a standard browser? The description in the property set for the plugin says "Detects only iPads" which sounds like it’s the former. When I create a property set and set "ipad" to NO, it still renders the mobile portion of my template on iPads. Clearing the iPad browser cache & cookies didn’t help either. Any suggestion much appreciated.
      • 33657
      • 128 Posts
      Quote from: Stretch at Apr 16, 2011, 11:25 PM

      I’m a little confused. Does the "ipad" property force the plugin to only detect iPads or ignore iPads and treat them as a standard browser? The description in the property set for the plugin says "Detects only iPads" which sounds like it’s the former. When I create a property set and set "ipad" to NO, it still renders the mobile portion of my template on iPads. Clearing the iPad browser cache & cookies didn’t help either. Any suggestion much appreciated.

      I created a new modx site to test it JUST in case.

      http://zuriel.us/index.php?browser=detect

      it goes to standard site on iPad but the mobile site on a iphone.

      I have ipad = NO set. as in "Hey should this site be a mobile site?" = No make it standard.

      it seems to work for me.


      you can force detection to reoccur (and clear your cookie set) by adding ?browser=detect on any URL

      you can write ?browser=full for standard or ?browser=mobi for mobile.
      and of course you can customize the word browser, full, mobi, or detect in the properties of the plugin if you don’t like my default settings.

      if you want to post a URL i’ll test it? maybe there is something else in the mix?
        • 28690
        • 25 Posts
        Thanks for going to this effort Zurie. Your site works correctly for me too on desktop, ipad & iphone. I am using FURLs on my site, but I wouldn’t have thought that would cause problems. Can I pm you a link to try?
          • 33657
          • 128 Posts
          Quote from: Stretch at Apr 17, 2011, 08:30 PM

          Thanks for going to this effort Zurie. Your site works correctly for me too on desktop, ipad & iphone. I am using FURLs on my site, but I wouldn’t have thought that would cause problems. Can I pm you a link to try?

          yeah i’ll help any way i can, you can even make me a login on your modx to look inside if you want then you can delete it afterwards
            • 9995
            • 1,613 Posts
            When install the package, my site goes error.
            I also cleaned cache and selected my homepage as ’mobile or standard’ template.

            Error:
            Fatal error: Class 'uagent_info' not found in /usr/home/sdsdsdsdsd/domains/sdsdsdsds.nl/public_html/core/cache/elements/modplugin/1.include.cache.php on line 199


            Did i forgot to do something?
              Evolution user, I like the back-end speed and simplicity smiley
              • 33657
              • 128 Posts
              Go Download this FILE
              http://mobileesp.googlecode.com/svn/PHP/mdetect.php


              save it as "mdetect.php" and put it in your ROOT of your modx install. (same place index.php is)

              and it will fix it.

              I have a new version that I haven’t released yet that downloads and installs this file for you and puts it cleanly in the /assets/components/mobiledetection/ folder and not in root, but AS of now, you need that file in ROOT.

              that should do it for you.
                • 9995
                • 1,613 Posts
                Thanx ur awesome laugh

                Gone struggle with it next week smiley
                  Evolution user, I like the back-end speed and simplicity smiley
                  • 33657
                  • 128 Posts
                  Edit: ok I am not shure if the bottom paragraph is still nessaary with revolution 2.1.1, as it seems they fixed a bug updating packages. I am not sure if my issue was related to that bug or not, as my package updated fine on 2.0.8 ( didn’t overwrite my templates) but on 2.1 it did. Still just a word of advice anyway. Just duplicate your 2 chunks mobile and standard just in case *********



                  Ok just a heads up for anyone using this plugin. I have updated it there is a new update available for 2.1.x. The good news is that it works and everything is fully functional. The bad news it seems is that under some circumstances, some of my sample templates installed with the plugin (mobile and standard chunks) are getting overwritten with clean new copies.... so if you used any of the sample templates then they could potentially be replaced. There is a flag that tells the plugin NOT to update the templates but for some reason it didn’t work on 2.1 but it worked in my testing on 2.0.8... so just a general precaution.
                    • 473
                    • 70 Posts
                    in my Modx Revo 2.1.1 and i use mobile detection 2.1.0 pl but not working for mobile version just blank page anyone can help?
                      • 33657
                      • 128 Posts
                      Quote from: Adhiarta at Jun 13, 2011, 06:48 AM

                      in my Modx Revo 2.1.1 and i use mobile detection 2.1.0 pl but not working for mobile version just blank page anyone can help?

                      did you install fresh or upgrade?

                      first, check what template your homepage or whatever the blank page uses.

                      report back.

                      also did you look at the example docs? they have a pretty good set of examples to use, plus by default it installs those examples for you.