1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Emulators don't like XenForo

Discussion in 'XenForo Development Discussions' started by Mike Creuzer, Sep 13, 2013.

  1. Mike Creuzer

    Mike Creuzer Well-Known Member

    Every time I try any kind of emulator with XenForo, such as http://ipad-emulator.org/, any site works but not a XenForo installation. I wonder if it has something to do with:

    HTML:
    <meta name="viewport" content="width=device-width, initial-scale=1">
    Any thoughts anyone?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    These sites aren't actually emulating anything at all, unfortunately.

    All they are is iframes that are scaled to the size of the supposed "emulated" devices. And therein lies the real problem:
    upload_2013-9-14_0-4-38.png

    Your best bet is to just resize your browser window.

    In Chrome > F12 > Click the cog in the bottom right > Scroll down to Device metrics.

    Set the screen resolution to 1024 x 768 and that should emulate a landscape iPad.
     
    SneakyDave and Dakis like this.
  3. Mike Creuzer

    Mike Creuzer Well-Known Member

    Thanks Chris, I wasn't sure if it was an actual emulator or just an iframe at 1024x768 (which I obviously have other tools for). I have a bug on iPad, and I don't own an iPad. So I don't know how to go about bug fixing that.
     
  4. Steve F

    Steve F Well-Known Member

    If you need me to try to help Mike just let me know, I have access to iPad 2 and mini.
     
    Dan likes this.
  5. SneakyDave

    SneakyDave Well-Known Member

    IIRC, isn't the frame error message that Chris posted due to Xf's click jacking prevention?

    I seem to recall a similar issue using Xf as a frame in a Facebook app canvas.

    Maybe I'm mistaken
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    Yes, its caused by a header, but iFrames aren't the best (and usually don't work) for responsive design. I find it best (and how I develop at work) to resize my browser.
     
  7. Dan

    Dan Well-Known Member

    AFAIK you're able to deactivate the click jacking protection.
    just add following line to your config.php
    PHP:
    $config['enableClickjackingProtection'] = false;
     

Share This Page