AW: [horde] Patches for virtual hosting with multiple themes
perVH
Diego Rivera
lrivera at racsa.co.cr
Tue Mar 11 20:51:34 PST 2003
I tried to find such hooks but I couldn't easily find them. Thus I went
ahead with building this simple patch. I MUCH prefer not running
patched code, for obvious reasons, so if you could direct me to these
hooks that would be great.
However, this is not just for IMP. It also works for all other horde
apps that use css.php, and removes the need for them to have the
aforementioned hook stuff programmed in.
The reason I like this patch is that it requires virtually no
reconfiguration - just create a file with the appropriate name in the
appropriate location and you're set. Also, a scheme like this could be
used to load config files allowing the use of multiple different
configuration files per V.H. for apps that don't support it (yet).
Bear in mind that the patch allows multiple l&f even within the same
domain: i.e. e-mail for finance.company.com is different from
management.company.com and from factory-floor.company.com.
Also, with this patch, you can have different looks per domain as well,
etc.
It could conceivably be modified and incorporated into the Horde class
as a call such as 'includeVirtualDomainFile( $app, $filename )'. Using
this call, virtual domain support is totally transparent to the
applications. I may be talking out my a$$ as I'm not 100% familiar with
the Horde framework, but it's my impression that something like this
does not exist.
Again, if there's a simpler way, please provide instructions as I would
much prefer to use that.
Best
On Tue, 2003-03-11 at 14:50, Udo Schubert wrote:
> >> The first one (css) uses $_SERVER['HTTP_HOST'] to determine which
> >> html.php file to load, doing fallback to other files as needed. This is
> >> to help sites with virtual hosting set up multiple looks and feels (for
> >> ALL horde apps AFAICT) depending on the name the horde app(s) is (are)
> >> hit with.
> >
> >This would be done *much* more easily (and without any patches) with a hook
> >that set the 'theme' preference based on HTTP_HOST.
>
> if you are using imp too,then maybe you could use the realm field in
> the server.conf to determine which html.php to use... (if you use this
> field,but i think this should be set on vh setups ?!)
>
> if i understand that right,then you could store the 'theme' preference for
> each vh with the according realm appended.
> then you 'only' had to change the part where the theme is selected from
> the table and,of course,where it is being set,right?possible? who knows...
>
> just some thoughts... ;)
>
> good luck
>
> udo
--
Diego Rivera <lrivera at racsa.co.cr>
More information about the horde
mailing list