Disable mobile page

Discussion forum about Anuko Time Tracker

Disable mobile page

Postby adminhp » Mon Dec 14, 2015 10:19 pm

I need to be able to display the full site when users access timetracker from their mobile devices.
Currently, it will check to see whether the device is running a mobile OS and then display the mobile page.
I would like to disable this so that it will be similar to a browser from a computer where it will show all details after logging in.
Any help is greatly appreciated.

Thanks.
adminhp
 
Posts: 14
Joined: Fri Oct 21, 2011 5:10 pm

Re: Disable mobile page

Postby tkie » Tue Dec 15, 2015 2:20 am

Comment out line #46 in index.php, which determines whether access is done via a mobile browser.

Code: Select all
// $mobileBrowser = ...

if ($mobileBrowser) {


Or add $mobileBrowser = false; line before a redirect, which happens in the if block below.

Code: Select all
$mobileBrowser = ...
$mobileBrowser = false;

if ($mobileBrowser) {

Hope it helps.
tkie
 
Posts: 97
Joined: Sat Jul 02, 2011 2:31 pm

Re: Disable mobile page

Postby adminhp » Wed Oct 04, 2017 9:28 pm

Thank you for your help.
adminhp
 
Posts: 14
Joined: Fri Oct 21, 2011 5:10 pm


Return to Time Tracker

Who is online

Users browsing this forum: No registered users and 2 guests

cron