6.0.0-git
2022-11-27
Last Modified 2008-06-28 by Guest

To make the mode "Dynamic" at the login screen you need to edit the ./imp/login.php file. Search for the code that looks like this:

 

/* If DIMP/MIMP are available, show selection of alternate views. */

$views = array();

if (!empty($conf['user']['select_view'])) {

    $apps = $registry->listApps(null, true);

    if (isset($apps['dimp']) || isset($apps['mimp'])) {

        $views[] = array('sel' => false, 'val' => 'imp', 'name' => _("Traditional"));

        if (isset($apps['dimp'])) {

            $views[] = array('sel' => true, 'val' => 'dimp', 'name' => _("Dynamic"));

        }

        if (isset($apps['mimp'])) {

            $views[] = array('sel' => false, 'val' => 'mimp', 'name' => _("Minimalist"));

        }

    }

}

Set the value for "Dynamic" to true as in the example above

dh

DimpModule

Alternately, in order to not override mobile phone detection, change:


        : ($browser->isMobile() && isset($apps['mimp']) ? 'mimp' : 'imp');

To:


        : ($browser->isMobile() && isset($apps['mimp']) ? 'mimp' : 'dimp');