close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Image Sizer Redux: using with dynamic image loop

Thread began 8/01/2012 8:52 am by msummers194171 | Last modified 8/01/2012 4:10 pm by msummers194171 | 1459 views | 8 replies


Image Sizer Redux: using with dynamic image loop

I am building a page with a lightbox-type display of images. These images are being loaded dynamically from an array (created from a recordset), allowing new images to be added or exitings ones to be edited/deleted by the client. The relevant code for the loop that places these images on the page is -

<?php foreach ($galleryRecords as $galleryRecord) { ?>
<li><a href="_img/gallery/<?php echo $galleryRecord['filename']; ?>" class="p7lsm_type_img"><img src="_img/gallery/<?php echo $galleryRecord['filename']; ?>" alt="<?php echo $galleryRecord['alt']; ?>" height="240"></a></li>
<?php } ?>

Note that each image is within a list element.

To use Image Resizer with this arrangement, would I just surround this loop with the appropriate resizer markup (taken from a dummy page)? For example, place this BEFORE the start of the loop -

if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1343773049107

and this after the end of it?

echo(getCachedResizedImageHTML(ob_get_clean(), "_img/scratch/New folder", "proportion", "", false));
} // End Cached Resized Image: ImageCacheInstance_1343773049107

(of course, I'd place the include at the top of the page)

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...