Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

Re: [mv] So How Does MV Process Background Images?



OTR Comm <otrcomm@wildapache.net> writes:

> Thanks, that did make the background image present properly.
> 
> However, I thought that when I defined the image directory in my
> catalog.cfg (IMAGE_DIR), MV was supposed to see images relative to
> that.  Isn't that why I can refer to images locate in the images
> directory just by name without any path and images in subdirectories off
> IMAGE_DIR by name with the 'path' off IMAGE_DIR?
> 
> Other images are presented fine without the 'full path', so why is it
> that the background image is different?  Just curious!

You may apply this patch:

diff -u -r1.29.4.3 -r1.29.4.4
--- Interpolate.pm	2000/10/20 10:18:42	1.29.4.3
+++ Interpolate.pm	2000/10/27 19:05:23	1.29.4.4
@@ -401,6 +401,9 @@
                          $1 . $dir . $2#ige;
         $$text =~ s#(<body\s+[^>]*?background=")(?!https?:)([^/][^"]+)#
                          $1 . $dir . $2#ige;
+        $$text =~ s#(<t[dhr]\s+[^>]*?background=")(?!https?:)([^/][^"]+)#
+                         $1 . $dir . $2#ige
+            if $Vend::Cfg->{Pragma}{substitute_table_image};
     }
     if($Vend::Cfg->{ImageAlias}) {
 		for (keys %{$Vend::Cfg->{ImageAlias}} ) {

and add the following to your catalog.cfg:

# Handles background attributes similar to <IMG SRC>
Pragma			substitute_table_image

Bye
        Racke

> 
> Thank for the help though, this did solve a problem that make my
> customer very happy.
> 
> Murrah Boswell
> 
> Ron Phipps wrote:
> > 
> > I defintely see that the background is not showing up however when I entered
> > this in the browser:
> > (Which is where the background image is pointing too in the MV case)
> > 
> > http://www.artisansorb.com/images/boudicca/bgrnd_grad.jpg
> > 
> > Here's the problem you are missing a path,  this is the fixed link:
> > 
> > http://www.artisansorb.com/artisansorb/images/boudicca/bgrnd_grad.jpg
> > 
> > So your MV code should look like:
> > 
> > <body bgcolor="#fffafa"
> > background="/artisansorb/images/boudicca/bgrnd_grad.jpg">
> > 
> > Problems like these are easy to troubleshoot by figuring out what the direct
> > ink is to the background then removing the leading domain info and you have
> > your code.
> > 
> > -Ron
> > 
> > ----- Original Message -----
> > From: "OTR Comm" <otrcomm@wildapache.net>
> > To: <minivend-users@minivend.com>
> > Sent: Wednesday, January 24, 2001 8:55 AM
> > Subject: Re: [mv] So How Does MV Process Background Images?
> > 
> > > Ron Phipps wrote:

-- 
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <--- 

_______________________________________________
Minivend-users mailing list
Minivend-users@minivend.com
http://www.minivend.com/mailman/listinfo/minivend-users


Search for: Match: Format: Sort by: