[imp] login page questions

Chuck Hagenbuch chuck at horde.org
Thu Jun 19 15:29:53 UTC 2008


Quoting Kevin Konowalec <webadmin at ualberta.ca>:

> 1)  I want to entirely remove the "Welcome to Horde" bar (not just  
> the words but the whole bar), but it's not immediately obvious how  
> to do that.  Is there a quick 'n easy way to do that?

Remove the <div id="menu"> from the template.

> 2)  In the 4.1.4 version of Imp, we were able to modify the  
> login.inc template in such a way that we were able to use some PHP  
> code to grab the "server" and "login status" variables from the URL  
> line. like this:
>
> if ( $_GET[server] == "imap" && $_GET[logout_reason]=="failed" )
> {
> 	print helpful links
> }
> else {
> 	print normal message
> }
>
>
> This let us change a box on the page to give the users additional  
> help if they're having problems logging in.  Unfortunately with imp  
> 4.2 that no longer works.  Can you not have php embedded in  
> login.html template?

No.

You can assign a boolean containing the result of that if to the  
template though. See http://wiki.horde.org/Doc/Dev/TemplatePackage

-chuck


More information about the imp mailing list