[imp] setting horde's $fullname to imp's $fullname

Jan Schneider jan@horde.org
Mon, 10 Dec 2001 16:11:46 +0100


Zitat von Joshua E Warchol <jwarchol@dsl.net>:

> Greetings,
> 
> My testing of IMP 3 is going very well, it kicks much arss. One last
> thing
> I'm trying to figure out though. 
> 
> When the user goes to the webmail site I send them to the root of the
> horde
> webspace. They log in (imap) and are given the main screen listing their
> 
> folder and their calendar. At the top it says "Welcome, ..." where ... is
> the
> value of $fullname. I've got $fullname going properly in IMP (using the
> new
> hook), but that doesn't get called in horde itself. 
> 
> How do I make horde use IMP's hook function?

There is no clean way to do this because Horde doesn't rely on IMP. 

You can try something like this before the welcome string (untested):

require_once HORDE_BASE . '/imp/lib/Identity/IMP.php';
$identity = new Identity_IMP();
$fullname = $identity->getFullname();

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::