6.0.0-alpha12
8/13/25
Last Modified 6/28/08 by Guest
  • Backlinks
  • Similar Pages
  • Attachments
  • History
  • Back to

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:

<?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"));

        }

    }

}

?>

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

dh

DimpModule?

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

<?php


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

?>

To:

<?php


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

?>