marty.net message board
    About cpshop >> News and Announcements >> Message started by: Marty on 08/26/02 at 20:10:43

Title: cpshop 1.4a bug fixes
Post by: Marty on 08/26/02 at 20:10:43
bug:: Displaying front and back product images simultaneously does not work (due to CafePress code change).

fix:: Replace lines 182-186 of cppage.lib with the altered code below.

Before:

[textarea cols=70 rows=8 wrap=off]if ($table =~ m|F_tn.jpg" width="240">|) {
     $table =~ s|<table border="0" align="center"><tr><td class="smallprint" style="color:#000000;">click to view.*?"(http://images.cafepress.com/prodtn/\d+_B_tn\.jpg)".*?</table>|<img border="0" class="imageborder" name="mainimg2" src="$1" width="240">|;
} else {
     $table =~ s|<table border="0" align="center"><tr><td class="smallprint" style="color:#000000;">click to view.*?"(http://images.cafepress.com/prodtn/\d+_F_tn\.jpg)".*?</table>|<img border="0" class="imageborder" name="mainimg2" src="$1" width="240">|;
}
[/textarea]

After:

[textarea cols=70 rows=8 wrap=off]if ($table =~ m|F_tn.jpg" width="240"|) {
     $table =~ s|<table border="0" align="center"><tr><td class="smallprint" style="color:#000000;">click to view.*?name="img2" src="(.*?)".*?</table>|<img border="0" class="imageborder" name="mainimg2" src="$1" width="240">|;
} else {
     $table =~ s|<table border="0" align="center"><tr><td class="smallprint" style="color:#000000;">click to view.*?name="img1" src="(.*?)".*?</table>|<img border="0" class="imageborder" name="mainimg2" src="$1" width="240">|;
}
[/textarea]



marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright 2000-2001, X-Null. All Rights Reserved.