Just a quick update - I think it've just about got it working :)
There is a logic error in the mobile detect in the template - nothing major and most people probably won't want to switch templates like I am doing but just in case they do!
html_header.php change the follwing line
Code:
if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
echo $responsive_mobile;
to
Code:
if ($detect->isMobile() && !$detect->isTablet() && !$_SESSION['display_mode']=='isDesktop' or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
echo $responsive_mobile;
The first code checks for a mobile device (but not a tablet) and returns true because - well it is true, but it doesn't check for the isDesktop in the $SESSION so it also catches anyone who is on a mobile but has chosen to view the desktop version.
The same code is also in tpl_main_page.php and needs tweaking - this now fixes the column layouts and the missing left column and shows the correct desktop header but I am still missing the desktop main menu... I'll keep digging :)
Tony
Bookmarks