• 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

Mike Creuzer

Well-known member
#1
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?
 

Chris D

XenForo developer
Staff member
#2
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.
 

Mike Creuzer

Well-known member
#3
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.
 

SneakyDave

Well-known member
#5
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
 

Jeremy

Well-known member
#6
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.
 

Dan

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