[imp] Display user login

mtecles at biof.ufrj.br mtecles at biof.ufrj.br
Tue Aug 9 18:42:01 UTC 2011


On 8 Aug 2011 at 13:50, Michael M Slusarz wrote:

> Quoting mtecles at biof.ufrj.br:
> 
> > On 2 Aug 2011 at 13:10, Michael M Slusarz wrote:
> >
> >> Quoting mtecles at biof.ufrj.br:
> >>
> >> > On 2 Aug 2011 at 10:26, Michael M Slusarz wrote:
> >> >
> >> >> Quoting mtecles at biof.ufrj.br:
> >> >>
> >> >> > I would like to display the user's login beside the name of the
> >> >> > current opened folder (Horde 4.0.7, IMP 5.0.8). Which file should I
> >> >> > look for, or how could I do that?
> >> >>
> >> >> It depends on the view.  For example, with the dynamic view, you will
> >> >> most likely need to alter the javascript code since the mailbox name
> >> >> is added dynamically.
> >> >>
> >> >> michael
> >> >
> >> > For dynamic view, which javascript?
> >>
> >> Probably in js/dimpbase.js.  And you will have to alter the PHP script
> >> that provides the javascript the data (probably
> >> lib/Views/ListMessages.php).
> >>
> >> michael
> >>
> >> ___________________________________
> >> Michael Slusarz [slusarz at horde.org]
> >
> > For traditional view I modified imp/mailbox.php. I added a new line
> > 354 before $refresh_title:
> >
> > $title = $pagetitle . htmlspecialchars(' of '.$injector-
> >> getInstance('Horde_Core_Factory_Identity')->create()->getName());
> >
> > For dynamic view I modified imp/lib/Views/ListMessages.php,
> > getBaseOb, line 495:
> >
> > $ob->label = htmlspecialchars($mbox->label . ' de ' .
> > $GLOBALS['injector']->getInstance('Horde_Core_Factory_Identity')-
> >> create()->getName());
> >
> > It worked fine for both views!
> >
> > I realized that we are not sending to the list. Should I copy to the
> > list?
> 
> Yes.  Or create a wiki entry.
> 
> michael
> 
> ___________________________________
> Michael Slusarz [slusarz at horde.org]

Copying to the list!

http://wiki.horde.org/ImpH4DisplayUserName

Describes modification of traditional and dynamic views to display 
username beside the name of the opened folder.

Thank you Michael,
Mauricio
--------------------------------------------------------
Mauricio J. T. Tecles
Instituto de Biofísica Carlos Chagas Filho - UFRJ
Edifício do Centro de Ciências da Saúde, Bloco G
Av. Carlos Chagas Filho, 373
Cidade Universitária, Ilha do Fundão
Rio de Janeiro, RJ
Brasil
21941-902
Telefone: 55 21 2562-6544
FAX: 55 21 2280-8193
mtecles at biof.ufrj.br



More information about the imp mailing list