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

changing popular pod image

Thread began 10/01/2011 5:31 pm by wbrooks199805 | Last modified 10/24/2011 3:05 pm by Jason Byrnes | 1210 views | 6 replies |

wbrooks199805

changing popular pod image

I would like to change the size of the pod image. I see its an image upload cropped. I am not sure how to do that.

Sign in to reply to this post

Jason ByrnesWebAssist

in the webassist/plugins/catalog/popularbox.php file, the following code generates the iamge:

php:
<?php

                    $imgWidth 
207;
                    
$imgSrc = (($row_MostPopularRS)?'../../../'.$WAGLOBAL_Images_Folder.  $row_MostPopularRS['ProductThumb']:'images/default-product_thumb.png');
                    
$imgSrc abs2rel(rel2abs($imgSrc,dirname(__FILE__)),dirname($_SERVER['PHP_SELF']));
                    
$WAResultsImage = new WA_Include('scripts/resize_image.php');
                    require(
$WAResultsImage->BaseName);
                    
$WAResultsImage->Initialize(true);
                
?>
        <a href="../../../products_detail.php?ProductID=<?php echo($row_MostPopularRS['ProductID']); ?>">
        <img  src="<?php echo(abs2rel(rel2abs($WAResultsImage->Body,dirname($_SERVER['PHP_SELF'])),dirname(__FILE__))); ?>" class="popularImage" />




change the $imgWidth = 207; setting to change the image dimensions.

Sign in to reply to this post

wbrooks199805

question to that

The image width is showing on the website now as 114px. And this says 207...Am I missing something here? I am just trying to understand how this works.

Sign in to reply to this post

wbrooks199805

Also,

Do I have to re upload the images?

Sign in to reply to this post

Jason ByrnesWebAssist

what was the size of the original image?


If the width is less than 207, the width will not be changed, it will only re size the image, if it is less then 205 pixals wide.

Sign in to reply to this post

wbrooks199805

This isn't working

I followed the path of the image and some where its getting cropped. I looked on the upload page and it I don't see the upload button showing it cropped to theses sizes.

I tried what you said and it didn't change anything.

Confidence_10201107.jpg

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

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