6.0.0-alpha12
6/17/25
Last Modified 9/4/13 by Jan Schneider
  • Backlinks
  • Similar Pages
  • Attachments
  • History
  • Back to
Table of Contents

Notes

IMP 6, Horde 5
Modifies topbar to display user id beside date.

Tested on Debian 6.0 (squeeze), Horde 5.0.3 and IMP 6.0.3.


Modification

File Variables, Function(s)
horde/lib/View/Topbar.php

Last updated 2013-01-16


Descriptions


horde/lib/View/Topbar.php

Backup your original horde/lib/View/Topbar.php. Edit Topbar.php and modify line 78:
Form:
<?php

        /* Sub bar. */
        $this->date = strftime($GLOBALS['prefs']->getValue('date_format'));
?>

To:
<?php

        /* Sub bar. */
        $this->date = strftime($GLOBALS['prefs']->getValue('date_format')) . ' - ' 
            . $GLOBALS['injector']->getInstance('Horde_Core_Factory_Identity')->create()->getName();
?>

To display user name and email address:
<?php

        /* Sub bar. */
        $this->date = strftime($GLOBALS['prefs']->getValue('date_format')) . ' - ' 
            . htmlspecialchars($GLOBALS['injector']->getInstance('Horde_Core_Factory_Identity')->create()->getDefaultFromAddress(true));
?>