[imp] view images inline - no luck

Marcus I. Ryan marcus@riboflavin.net
Thu, 21 Mar 2002 16:23:49 -0600


You actually have to write a jpeg and gif driver for lib/MIME/Viewer. 
Look at lib/MIME/Viewer/html.php and lib/MIME/Viewer/tex.tphp for
examples...

Quoting Terry Davis <tdavis@approbation.org>:

> Hello,
> 
> I tried this once before and was unsuccessful.  I just want these
> settings for imp so I put this in my imp/config/mime_drivers.php
> file:
> 
> $mime_drivers_map['imp']['registered'] = array('text', 'html',
> 'jpeg',
> 'gif');
> 
> $mime_drivers['imp']['jpeg']['inline'] = true;
> $mime_drivers['imp']['jpeg']['icons'] = array(
>          'default' => 'image.gif' );
> $mime_drivers['imp']['jpeg']['handles'] = array(
>         'image/jpeg');
> 
> /**
>  * Gif driver settings
>  */
> 
> $mime_drivers['imp']['gif']['inline'] = true;
> $mime_drivers['imp']['gif']['icons'] = array(
>          'default' => 'image.gif' );
> $mime_drivers['imp']['gif']['handles'] = array(
>         'image/gif');
> 
> First, it does not display the image inline like expected, and when
> I
> try to open it I get this error:
> 
> Fatal error: Call to a member function on a non-object in
> /home/web/secure.domain.com/horde/imp/view.php on line 77
> 
> I appreciate any help in this matter.
> 
> -- 
> Terry Davis
> http://approbation.org/
> 
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
> 


-- 
Marcus I. Ryan, marcus@riboflavin.net
-----------------------------------------------------------------------
 "Love is a snowmobile racing across the tundra and then suddenly it
 flips over, pinning you underneath.  At night, the ice weasels come."
                 -- Matt Groening
-----------------------------------------------------------------------