close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PS3 ProductImage Upload

Thread began 7/11/2010 12:53 pm by pistartech366237 | Last modified 7/14/2010 9:40 pm by Jimmy Wu | 827 views | 5 replies |

pistartech366237

PS3 ProductImage Upload

Hello,

I need your help (since I'm not an expert in CSS and/or PHP):

I'd like to have the ProductImage (large image of the product) to be uploaded without decreasing its size or resolution. As of now, it is uploaded and decreased to "fit to box" with the sizes 400x400px. I'd like to have it uploaded without any modifications. Therefore, my questions are the following:

1. Can I change it's upload size without "screwing up" the CSS or (most importantly) the layout of the ProductDetail.php page?
2. If the answer is no to the first question, is there any way to fix it?
3. Can I add the third "Image Upload" field to the ProductUpload.php page on the Admin's side with adding the column to the products DB? Will that work?

My website is www.furnitureyouwant.com. If you'll go to the ProductDetail.php and will click on the image, you'll see what the problem is.

Please advise.

Thank you so much in advance.

Best regards,

Paul.

Sign in to reply to this post

Jimmy Wu

If you leave it as the original size and the image is too large, the image will cause the structure to be off. To get around this, you would want to limit the size of the upload, but allow it to be larger.

In your admin/Products_Insert.php file, find this block of code:
<?php
// WA_UploadResult1 Params Start
$WA_UploadResult1_Params = array();
// WA_UploadResult1_1 Start
$WA_UploadResult1_Params["WA_UploadResult1_1"] = array(
'UploadFolder' => "../imagesupload/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "400",
'ResizeHeight' => "400",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult1_1 End
// WA_UploadResult1 Params End?>
<?php
// WA_UploadResult2 Params Start
$WA_UploadResult2_Params = array();
// WA_UploadResult2_1 Start
$WA_UploadResult2_Params["WA_UploadResult2_1"] = array(
'UploadFolder' => "../imagesupload/",
'FileName' => "[FileName]",
'DefaultFileName' => "",
'ResizeType' => "1",
'ResizeWidth' => "200",
'ResizeHeight' => "200",
'ResizeFillColor' => "#FFFFFF" );
// WA_UploadResult2_1 End
// WA_UploadResult2 Params End
?>

You can change the ResizeWidth and ResizeHeight to something that you want. You would want to make the same changes on the Products_Update.php page as well.

As for adding a 3rd upload, you would be able to do it, but you would have to make a good amount of modifications. If you would like to add additional images to the PowerStore, the easiest way would be to use PowerGallery, which has a gallery style made specifically for PowerStore. You would insert the gallery into the description.

Sign in to reply to this post

pistartech366237

Thank you

Dear Jimmy,

Thank you so much for your prompt response.

I'll play with the sizes to see if it works.

If I'll have any additional questions, I'll post the reply.

Again, thank you for your help.

Best regards,

Paul.

Sign in to reply to this post

Jimmy Wu

I did not mention that this will only affect newly uploaded images, so anything that is uploaded currently will not be resized.

Sign in to reply to this post

pistartech366237

Thank you

Dear Jimmy,

Understood!!! Thank you very much!!!

Sign in to reply to this post

Jimmy Wu

No problem. If you run into any issues with this please post back. If you run into unrelated issues, please make a new 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...