Thumbnails and previews disappear on resize

5 posts by 2 authors in: Forums > CMS Builder
Last Post: October 15, 2008   (RSS)

Re: [gkornbluth] Thumbnails and previews disappear on resize

By Dave - October 13, 2008

Hi Jerry,

You should refer to the thumbnails using placeholders such as:

<img src="<?php echo $upload['thumbUrlPath2'] ?>"
width="<?php echo $upload['thumbWidth2'] ?>"
height="<?php echo $upload['thumbHeight2'] ?>"
alt="" /><br/>


The _001 filename suffix isn't used to identify thumbnails. It's used to create a unique filename if an uploaded file already exists with the same name. So some uploads may haev it and others won't.

If you use the placeholders to output the filename you should get the right value every time.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Thumbnails and previews disappear on resize

Dave,

Actually I'm using exactly that code in the php page.

The problem seems to be related to resizing of the thumbnails and I don't understand enough to be able to figure out why.

I found that if I changed at least one dimension in all of the thumbnail sizes, and then recreated all of them, I could get everything to show as it should,

If I changed the dimensions of only one the thumbnails, then I had the problem described above.
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Thumbnails and previews disappear on resize

By Dave - October 13, 2008

Hi Jerry,

I can get in there and take a look if you like. Can you send me simple step by step instructions to re-create the issue and CMS/FTP login details to dave@interactivetools.com? (Don't post login details to the forum)

I'll take a look. If I can re-create it and it's an issue with CMS Builder I'll certainly fix it.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [gkornbluth] Thumbnails and previews disappear on resize

By Dave - October 15, 2008

Just a follow up for anyone with this same problem...

This was a bug! When CMS Builder recreates thumbnails it erases the old ones first. But the problem was it only ever erased the primary thumbnail. So recreating the primary thumbnails worked fine, but recreating thumb2, etc would recreate those but erase the primary thumbnails.

I've fixed this for the next version. A work around for the meantime is to just click "recreate" on the primary thumbnail group after you recreate any secondary groups.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com