Re: Image Resize

Posts: 119
Joined: 08/22/2007
Spreading the word - Ubercart for president.

I'm Using Lightbox To Display Images, it's working great on my localhost. I'll be setting it live very soon.


<?php $imagePath = $node->field_image_cache['0']['filepath']; ?>
   
<a href="<?=base_path()?><?=$imagePath?>" rel="lightbox[prod]">
    <img src="<?=base_path()?>files/imagecache/product/<?=$imagePath?>" alt="<?=$title?>" title="<?=$title?>">
</a>
    <ul class="other_imgs">
<?php foreach ($node->field_image_cache as $images) { if ($images['filepath'] != $imagePath) { ?>
   <li><a href="<?=base_path()?><?=$images['filepath']?>" rel="lightbox[prod]" title="<?=$title?>">
   <img src="<?=base_path()?>files/imagecache/thumbnail/<?=$images['filename']?>" alt="<?=$title?>"></a></li>
    <?php } } ?>
</ul>

Nifty Products Tutorial Part 1 By: mykz- (73 replies) Wed, 03/19/2008 - 20:04