www.uburst.com www.uburst.com

"Product pics?"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

General Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Product pics?"
Posted by Frode on Sep-08-02 at 05:32 AM (EST)
My product picture are so very big. is it a way to get them smaller whitout changing the pictures on the server.
Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Product pics?, Bill Weiner, Sep-09-02, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Product pics?"
Posted by Bill Weiner on Sep-09-02 at 07:05 AM (EST)
Here are some instructions on how to modify the subroutine that generates the product HTML.... such that WIDTH and HEIGHT settings are included when adding the image to the page. The IMG WIDTH and HEIGHT settings will automatically handle resizing the image on the page.

STEP 1: Make a backup of your current ustorekeeper-lib.pl script... just in case.

STEP 2: Open your ustorekeeper-lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

sub get_product_html

(This will get you to the start of the subroutine that generates the product HTML.)

STEP 4: Within that subroutine, you will see multiple places where the "IMG SRC..." HTML is being generated. Do a search on:

img src

... to locate them.... and to those lines, add a WIDTH and HEIGHT just before the closing > sign, such as:

WIDTH=150 HEIGH=200

... So the first img src line would be changed from:

$html .= "< img src=\"" . $product_image . "\" >";

to

$html .= "< img src=\"" . $product_image . "\" WIDTH=150 HEIGHT=200 >";

STEP 5: After adding the WIDTH and HEIGHT to all "img src" statements in that subroutine, save the file... as TEXT if your editor asks... and try it out.

NOTE: You will need to press the "Regenerate" button on the uStorekeeper Control Panel after uploading the changes.... this will cause all of your HTML pages to be regenerated with the changes that you made.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.