close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Need some advice on using this with Framework Builder and Pretty URL's

Thread began 2/01/2011 12:04 pm by Dave Buchholz | Last modified 2/02/2011 6:45 pm by Ray Borduin | 1977 views | 5 replies |

Dave BuchholzBeta Tester

Need some advice on using this with Framework Builder and Pretty URL's

I have implemented Image Resizer on this page as page of my recently viewed products module like so:

php:
<?php

if(TRUE){ // Begin Cached Resized Image: ImageCacheInstance_1296578994738
ob_start();
?>
                    <img  src="/uploads/products/images/<?php echo $row_rsListViewedProducts['image']; ?>" alt="<?php echo $row_rsListViewedProducts['manName']. ' ' .$row_rsListViewedProducts['prodModel']; ?>" width="150" height="150" title="<?php echo $row_rsListViewedProducts['manName']. ' ' .$row_rsListViewedProducts['prodModel']; ?>" />
                    <?php
echo(getCachedResizedImageHTML(ob_get_clean(), "../../_image_cache""fit""#FFFFFF"false));
// End Cached Resized Image: ImageCacheInstance_1296578994738
?>



The page this code is in is then pulled into the main page via Framework Builder dependant upon the url criteria but as you can see the image resizer is not working.

Is this a path issue caused by my pretty URL's or a Framework Builder issue ?

Thanks.

Sign in to reply to this post

Ray BorduinWebAssist

Probably a combination of framework builder and image resizer.... my guess is that image resizer is trying to give the correct path to the image based on the actual page, but then framework builder re-adjusts the image location based on a relative path from the plugin.

You could probably fix it by using rel2abs() to make sure that image resizer returns an absolute path to the image.

Sign in to reply to this post

Dave BuchholzBeta Tester

Ray,

can you give me an example of how I would do this please

Sign in to reply to this post

Ray BorduinWebAssist

Try updating line 227 of CachedResize_Image.php from:

if (strpos($filename,"/") === 0) $filename= abs2rel($filename,dirname($_SERVER['PHP_SELF']));

to:

if (strpos($filename,"/") === 0) $filename= abs2rel($filename,getcwd());

Sign in to reply to this post

Dave BuchholzBeta Tester

unfortunately that didn't work, I am going to create an extra image on upload as I need to get this going but it would be useful to get this working

Sign in to reply to this post

Ray BorduinWebAssist

I've opened a support ticket on this issue. I'll try to contact you later this week and work on it with you over the phone.

Sign in to reply to this post

DarylBeta Tester

Dave

Did you get to the bottom of this as I have experienced a similar issue...

Sign in to reply to this post

Jason ByrnesWebAssist

I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
supporthistory.php

If anyone else is experiencing this same issue, please append to this thread.

Sign in to reply to this post

Dave BuchholzBeta Tester

sorry this has only just popped up in my feed, Jason FYI Ray supplied me with modified versons of framework.php and CachedResized_Image.php in Support Ticket # 123595

Sign in to reply to this post

Jason ByrnesWebAssist

i dont see them attached to the ticket though, i will check with Ray, thanks Dave.

Sign in to reply to this post
loading

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

Content

rating

Layout

rating

Ease of use

rating

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...