Quote Originally Posted by rbarbour View Post
Making them work with v1.5.5

5 - /includes/templates/responsive_classic/common/html_header.php
The call to include the Mobile_Detect class has changed from:
PHP Code:
if (!class_exists('Mobile_Detect')) {
include_once(
DIR_WS_CLASSES 'Mobile_Detect.php'); 
$detect = new Mobile_Detect;

to:
PHP Code:
if (!class_exists('Mobile_Detect')) {
  include_once(
DIR_WS_CLASSES 'Mobile_Detect.php');
}
  
$detect = new Mobile_Detect;
  
$isMobile $detect->isMobile();
  
$isTablet $detect->isTablet();
  if (!isset(
$layoutType)) $layoutType = ($isMobile ? ($isTablet 'tablet' 'mobile') : 'default'); 
the device specific if statements have changed from:
PHP 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;
} else if (
$detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
    echo 
$responsive_tablet;
} else if (
$detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
    echo 
'';
} else {
    echo 
$responsive_default;

to:
PHP Code:
  if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) {
    echo 
$responsive_mobile;
  } else if ( 
$detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){
    echo 
$responsive_tablet;
  } else if ( 
$_SESSION['layoutType'] == 'full' ) {
    echo 
'';
  } else {
    echo 
$responsive_default;
  } 
This file as in Responsive Sheffield Blue has other differences besides the two above. Should I merge in those two changes only, or substitute the entire file, or?

Thanks for these tips.

zc 1.5.5 clean install test site with Responsive Sheffiled Blue, imported database from livesite zc 1.5.4 with Responsive Westminster Black.