Community Forums

Community Discussions

Device detection


You must be signed-in to post.

AuthorSubject
 
Page: 1
chipwiegand
Subject: Device detectionQuote this post in your reply
ATutor Version:
2.2.1(unknown - 2016-08-25 11:13:03). Check Latest Version.
PHP Version:
5.4.45
MySQL Version:
5.6.30-cll-lve
OS:
Linux 2.6.32-673.26.1.lve1.4.15.el6.x86_64


What code do I need to add to ATutor to make it detect which type of device is connecting? I am creating my site content using W3-CSS and it look great on my laptop, but on my phone - well, it looks like crap. The phone is not being detected, so the css is not being loaded, and everything is simply black-on-white in one very long column.

So, I need to add some code to the headers so the device is detected and also, where in ATutor do I add such code?

Thanks
Posted: 2016-08-25 11:27:40
chipwiegand
Subject: Re: Device detectionQuote this post in your reply
Here's the meta tag I want to insert into the headers section of ATutor -
[code]
<meta name="viewport" content="width=device-width, initial-scale=1">
[/code]

But how, or where, do I do that?
Posted: 2016-08-25 15:59:50
greg

Avatar for greg
Subject: Re: Device detectionQuote this post in your reply
Your markup look right. It gets inserted in the header.inc.php file, attached to $custom_head.

$custom_head .='<meta name="viewport" content="width=device-width, initial-scale=1">'

Anywhere after about line 93 in the current version of the file.
Posted: 2016-08-27 10:46:58
greg

Avatar for greg
Subject: Re: Device detectionQuote this post in your reply
Actually, thanks for pointing this out. A significant bug.

We've posted patch 0005 for ATutor 2.2.2 which corrects the problem. You can install it using the Admin's Patcher. The patch should now be listed there.
Posted: 2016-08-27 11:18:25
chipwiegand
Subject: Re: Device detectionQuote this post in your reply
Thanks for the reply. I have notified my ISP to update their installation of Atutor to 2.2.2, then I can upgrade my installation, then patch it, then I will report back with the results.
smile
Posted: 2016-08-27 16:02:32
 
Page: 1

You must be signed-in to post.

Related Articles