 | |  |
 |

bytezmoi
User
Jul 31, 2008, 12:41 PM
Post #1 of 3
(7188 views)
Shortcut
|
|
Iteration bug?
|
Can't Post
|
|
I am using the following to display the initial fullsize image: <img src="$listing_url$/images/$file$" name="fullsize" id="fullsize"> The problem is that despite republishing ad naseum, some listing pages show the image but others do not. Compare these 2 pages: http://coastalnetservices.com/crew/plugin/listings/listing.php?l0001.htm http://coastalnetservices.com/crew/plugin/listings/listing.php?l0003.htm Notice that View Source for the second example (missing image) shows that the filename is missing from the interpreted path, although it is fine for the first example. <img src="/crew/plugin/listings/images/" name="fullsize" id="fullsize"> This seems to be an iteration bug. The fullsize image is derived from the final image. The problem lies in having less than the maximum number of images for a listing. Since there is no image assigned to the final slot, the interpreted path does not append an image filename. I have confirmed this by filling in image slots and then removing those images. Here is the block of code I am using - is there anything I am doing wrong? <td><div align="center"><img src="$listing_url$/images/$file$" name="fullsize" id="fullsize"></div><br> <!-- template insert : $images$ --> <!-- templatecell : image --> <div class="thumbs"> <a href="javascript:;" onMouseOver="MM_swapImage('fullsize','','$listing_url$/images/$file$',1)"><img src="$listing_url$/images/$thumbnail$" alt="$desc$" width=$thumbnail_width$ border="0"></a><br> <table border="0" align="center" cellpadding="0" cellspacing="0" class="description"> <tr> <td>$desc$</td> </tr> </table> </div> <!-- /templatecell : image --> <!-- templatecell : no_images --> <table border=1 cellspacing=0 cellpadding=0 width=140> <tr> <td bgcolor="#EEEEEE" align=center><b>Photo<br> Not<br> Available</b></td> </tr> </table> <!-- /templatecell : no_images --> </td>
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 31, 2008, 10:43 PM
Post #2 of 3
(7145 views)
Shortcut
|
Hi bytezmoi, Thanks for posting! I took a look at the problem page you mentioned, but everything seemed to be OK there - did you get this resolved already by any chance? All of the code you provided looked OK. If you're still having trouble with this, you'll want to submit a second-level support request: http://www.interactivetools.com/support/ ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

bytezmoi
User
Aug 1, 2008, 7:09 AM
Post #3 of 3
(7052 views)
Shortcut
|
I am submitting a bug report via 2nd level support request. I made a workaround by adding field 75 to contain the filename of the listing's default image. So I have changed the initial source for the image to: <img src="$listing_url$/images/$lfield75$" name="fullsize" id="fullsize">
|
|
|  |
|