6.0.0-git
2020-08-13

Diff for DynamicLogin between 6 and 7

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:





<code type="php"> 

/* 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"));

        }

    }

}

</code>




</code>


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



dh 



DimpModule





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

<code<code type="php">

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

</code>



To:

<code type="php">

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

</code>