test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • lula86 Friend
    #154689

    Hi guys,

    first of all I would like to thank you for this fantastic template.

    Here is my question: I would like my site to be displayed only as desktop version, also when visited from mobile phones or iPhones. Is it possible to remove the mobile version option?
    I’ve tried to change the layout options on Template manager, but it didn’t work. The logo image is cut off and the image in slideshow doesn’t appear.
    The only way to show logo and slideshow like in desktop version is to go to layouts management and replace the iPhone/handheld layout code with Default layout code. Thus in this way I still can’t see mega menus.
    I’ve also tried to follow the solution illustrated in this post: http://www.joomlart.com/forums/topic/remove-mobile-version/, replacing the code in the layout-switcher.php file (which is located in plugins/jat3/base-themes/default/blocks/usertools directory) but it didn’t worked for me.
    Can anybody please help me find a solution?

    Thank you very much!

    Don Lee Friend
    #356878

    <em>@lula86 195735 wrote:</em><blockquote>Hi guys,

    first of all I would like to thank you for this fantastic template.

    Here is my question: I would like my site to be displayed only as desktop version, also when visited from mobile phones or iPhones. Is it possible to remove the mobile version option?
    I’ve tried to change the layout options on Template manager, but it didn’t work. The logo image is cut off and the image in slideshow doesn’t appear.
    The only way to show logo and slideshow like in desktop version is to go to layouts management and replace the iPhone/handheld layout code with Default layout code. Thus in this way I still can’t see mega menus.
    I’ve also tried to follow the solution illustrated in this post: http://www.joomlart.com/forums/topic/remove-mobile-version/, replacing the code in the layout-switcher.php file (which is located in plugins/jat3/base-themes/default/blocks/usertools directory) but it didn’t worked for me.
    Can anybody please help me find a solution?

    Thank you very much!</blockquote>

    Hi there,
    To do that, you need edit a JA T3 core file to ignore the step of mobile device detecting so have to note this change when updating JAT3 framework.
    Open file plugins/system/jat3/core/common.php
    Find:


    function mobile_device_detect () {

    $ui = T3Parameter::_getParam('ui');

    if ($ui=='desktop') return false;

    //detect mobile

    t3import ('core.libs.Browser');

    $browser = new Browser();

    //bypass

    if ($browser->isRobot()) return false;

    //consider ipad as normal browser

    if ($browser->getBrowser() == Browser::BROWSER_IPAD) return false;

    //mobile

    if ($browser->isMobile()) {

    if (in_array($browser->getBrowser(), array(Browser::BROWSER_IPHONE, Browser::BROWSER_IPOD)))

    $device = 'iphone';

    else

    $device = strtolower($browser->getBrowser());

    //$device = 'handheld';

    $layout = T3Parameter::get ($device."_layout", '');

    if ($layout == -1) return false; //disable

    return $device;

    //return 'handheld';

    }

    //Not mobile

    if ($ui=='mobile') return 'iphone'; //default for mobile layout on desktop

    return false;

    }

    Replace:

    function mobile_device_detect () {
    return false;//ignore detecting
    $ui = T3Parameter::_getParam('ui');

    if ($ui=='desktop') return false;

    //detect mobile

    t3import ('core.libs.Browser');

    $browser = new Browser();

    //bypass

    if ($browser->isRobot()) return false;

    //consider ipad as normal browser

    if ($browser->getBrowser() == Browser::BROWSER_IPAD) return false;

    //mobile

    if ($browser->isMobile()) {

    if (in_array($browser->getBrowser(), array(Browser::BROWSER_IPHONE, Browser::BROWSER_IPOD)))

    $device = 'iphone';

    else

    $device = strtolower($browser->getBrowser());

    //$device = 'handheld';

    $layout = T3Parameter::get ($device."_layout", '');

    if ($layout == -1) return false; //disable

    return $device;

    //return 'handheld';

    }

    //Not mobile

    if ($ui=='mobile') return 'iphone'; //default for mobile layout on desktop

    return false;

    }

    lula86 Friend
    #356960

    It works!!
    Thank you so much!!
    I really didn’t know how to figure out this problem (I am really not good with php code:-[)

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  lula86 14 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum