newtech Posted November 29, 2006 Share Posted November 29, 2006 I need to figure out what is the difference between the old and new version of new_products.php. I do notice that the new file is much larger. Maybe my original download of software was corrupted. Yes, the problem was that the new version I downloaded of new_products.php was bad. And of course I was installing this version on all my test sites. Again Thanks. Quote Link to comment Share on other sites More sharing options...
newtech Posted December 6, 2006 Share Posted December 6, 2006 I have installed the Specials Module Contribution http://www.oscommerce.com/community/contributions,4010 It is working fine, but I want to change the colors of the box. I want it to be the same as the specials box in the right column. Because it is not part of the OSC default package, Design Pack does not have a css style for this box. The Specials Module Contrib is using the infoBoxHeading class to define the colors. The problem with this is that I do not want it to be this class. I want it to be the specialsBoxHeading. I have tried to explain to the Specials Module Contributor what I would like to do, but they are of no help. http://www.oscommerce.com/forums/index.php?s=&...st&p=982513 through http://www.oscommerce.com/forums/index.php?s=&...st&p=983415 I would think there are two ways to accomplish what I want: 1. Manually insert the class for the Specials Box manually (at ther right location which I cannot figure out) in the index.php 2. Create a specific class in the stylesheet for the Specials Box in main area and then in the Specials Module file insert that stylesheet. Can anyone help on this? There must be others that want their Specials Box to be different than other infoboxes. Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 8, 2006 Author Share Posted December 8, 2006 I have installed the Specials Module Contributionhttp://www.oscommerce.com/community/contributions,4010 It is working fine, but I want to change the colors of the box. I want it to be the same as the specials box in the right column. Because it is not part of the OSC default package, Design Pack does not have a css style for this box. The Specials Module Contrib is using the infoBoxHeading class to define the colors. The problem with this is that I do not want it to be this class. I want it to be the specialsBoxHeading. I have tried to explain to the Specials Module Contributor what I would like to do, but they are of no help. http://www.oscommerce.com/forums/index.php?s=&...st&p=982513 through http://www.oscommerce.com/forums/index.php?s=&...st&p=983415 I would think there are two ways to accomplish what I want: 1. Manually insert the class for the Specials Box manually (at ther right location which I cannot figure out) in the index.php 2. Create a specific class in the stylesheet for the Specials Box in main area and then in the Specials Module file insert that stylesheet. Can anyone help on this? There must be others that want their Specials Box to be different than other infoboxes. You can change the class of any new box just by editing the box file in this folder includes/boxes/ Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
newtech Posted December 8, 2006 Share Posted December 8, 2006 You can change the class of any new box just by editing the box file in this folder includes/boxes/ If the new box is not included in the includes/boxes (like this specials box), then there is no way to edit the box file in includes/boxes. This specials box is using the infoBoxHeading class. I don't want all of my other boxes that use infoBoxHeading class to be changed, so I would like the specials box to have it's own class. How can I assign it a different class? Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 9, 2006 Author Share Posted December 9, 2006 If the new box is not included in the includes/boxes (like this specials box), then there is no way to edit the box file in includes/boxes. This specials box is using the infoBoxHeading class. I don't want all of my other boxes that use infoBoxHeading class to be changed, so I would like the specials box to have it's own class. How can I assign it a different class? You can change the code inside that box file to use another class , any of the box classes used in the other boxes included in BDP can be used. Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
newtech Posted December 9, 2006 Share Posted December 9, 2006 You can change the code inside that box file to use another class , any of the box classes used in the other boxes included in BDP can be used. This is probably simple as can be and I am making it hard as can be. The only file that is installed with this contrib is the following. There are no edits to the box.php file. So what would I replace to make this file use specialsBoxHeading class? Quote Link to comment Share on other sites More sharing options...
newtech Posted December 9, 2006 Share Posted December 9, 2006 This is probably simple as can be and I am making it hard as can be. The only file that is installed with this contrib is the following. There are no edits to the box.php file. So what would I replace to make this file use specialsBoxHeading class? Forgot to add file. <?php /* $Id: product_specials.php,v 1.01 2006/11/13 00:00:00 holforty Exp $ Designed for: osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2005 Todd Holforty - [email protected] Released under the GNU General Public License */ ?> <!-- product_specials //--> <?php // are we viewing a specific product? ($product_info['products_id'] is set if we are) if (tep_not_null($product_info['products_id'])) { $the_products_catagory_query = tep_db_query("select products_id, categories_id from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . $product_info['products_id'] . "'" . " order by products_id,categories_id"); $the_products_catagory = tep_db_fetch_array($the_products_catagory_query); $product_category_id = $the_products_catagory['categories_id']; } if ( LIMIT_PRODUCT_SPECIALS_SCOPE=='true' && !empty($current_category_id) ) { /// We are in category depth $categories_query_addition = "p2c.categories_id = '" . (int)$current_category_id . "'"; $categories = array(); tep_get_sub_categories($categories, $current_category_id); foreach ($categories AS $key => $category ) { $categories_query_addition .= " or p2c.categories_id = '" . (int)$category . "'"; } } if ( (LIMIT_PRODUCT_SPECIALS_SCOPE=='true') && !empty($categories_query_addition) ) { /// We are in category depth $product_specials_query = tep_db_query("select distinct p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_SPECIALS . " s where p.products_status='1' and p.products_id=s.products_id and p.products_id=pd.products_id and pd.language_id='".(int)$languages_id."' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and s.status='1' and (".$categories_query_addition.") order by rand() limit ".MAX_DISPLAY_PRODUCT_SPECIALS); } else if ( (LIMIT_PRODUCT_SPECIALS_SCOPE=='true') && !empty($product_category_id) ) { // products info page $product_specials_query = tep_db_query("select distinct p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_SPECIALS . " s where p.products_status='1' and p.products_id=s.products_id and p.products_id=pd.products_id and pd.language_id='".(int)$languages_id."' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and s.status='1' and c.categories_id = '" . (int)$product_category_id . "' order by rand() limit ".MAX_DISPLAY_PRODUCT_SPECIALS); } else { // default $product_specials_query = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status='1' and p.products_id=s.products_id and p.products_id=pd.products_id and pd.language_id='".(int)$languages_id."' and s.status='1' order by rand() limit ".MAX_DISPLAY_PRODUCT_SPECIALS); } if (tep_db_num_rows($product_specials_query)>0) { $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="'.tep_href_link(FILENAME_SPECIALS).'">'.TABLE_HEADING_PRODUCT_SPECIALS.'</a>' ); new infoBoxHeading($info_box_contents,false,false, tep_href_link(FILENAME_SPECIALS)); $row = 0; $col = 0; $info_box_contents = array(); while ($product_specials = tep_db_fetch_array($product_specials_query)) { $products_price = (tep_not_null($product_specials['specials_new_products_price'])?'<s>'.$currencies->display_price($product_specials['products_price'], tep_get_tax_rate($product_specials['products_tax_class_id'])).'</s> ':'').'<span class="productSpecialPrice">' . $currencies->display_price($product_specials['specials_new_products_price'], tep_get_tax_rate($product_specials['products_tax_class_id'])).'</span>'; $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_specials['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $product_specials['products_image'], $product_specials['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_specials['products_id']) . '">' . $product_specials['products_name'] . '</a><br>' . $products_price ); $col ++; if ($col > PRODUCT_SPECIALS_DISPLAY_COLUMNS-1) { $col = 0; $row ++; } } new contentBox($info_box_contents); } ?> <!-- product_specials_eof //--> Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 9, 2006 Author Share Posted December 9, 2006 (edited) Forgot to add file. <?php /* $Id: product_specials.php,v 1.01 2006/11/13 00:00:00 holforty Exp $ Designed for: osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2005 Todd Holforty - [email protected] Released under the GNU General Public License */ ?> <!-- product_specials //--> <?php // are we viewing a specific product? ($product_info['products_id'] is set if we are) if (tep_not_null($product_info['products_id'])) { $the_products_catagory_query = tep_db_query("select products_id, categories_id from " . TABLE_PRODUCTS_TO_CATEGORIES . " where products_id = '" . $product_info['products_id'] . "'" . " order by products_id,categories_id"); $the_products_catagory = tep_db_fetch_array($the_products_catagory_query); $product_category_id = $the_products_catagory['categories_id']; } if ( LIMIT_PRODUCT_SPECIALS_SCOPE=='true' && !empty($current_category_id) ) { /// We are in category depth $categories_query_addition = "p2c.categories_id = '" . (int)$current_category_id . "'"; $categories = array(); tep_get_sub_categories($categories, $current_category_id); foreach ($categories AS $key => $category ) { $categories_query_addition .= " or p2c.categories_id = '" . (int)$category . "'"; } } if ( (LIMIT_PRODUCT_SPECIALS_SCOPE=='true') && !empty($categories_query_addition) ) { /// We are in category depth $product_specials_query = tep_db_query("select distinct p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_SPECIALS . " s where p.products_status='1' and p.products_id=s.products_id and p.products_id=pd.products_id and pd.language_id='".(int)$languages_id."' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and s.status='1' and (".$categories_query_addition.") order by rand() limit ".MAX_DISPLAY_PRODUCT_SPECIALS); } else if ( (LIMIT_PRODUCT_SPECIALS_SCOPE=='true') && !empty($product_category_id) ) { // products info page $product_specials_query = tep_db_query("select distinct p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_SPECIALS . " s where p.products_status='1' and p.products_id=s.products_id and p.products_id=pd.products_id and pd.language_id='".(int)$languages_id."' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and s.status='1' and c.categories_id = '" . (int)$product_category_id . "' order by rand() limit ".MAX_DISPLAY_PRODUCT_SPECIALS); } else { // default $product_specials_query = tep_db_query("select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s where p.products_status='1' and p.products_id=s.products_id and p.products_id=pd.products_id and pd.language_id='".(int)$languages_id."' and s.status='1' order by rand() limit ".MAX_DISPLAY_PRODUCT_SPECIALS); } if (tep_db_num_rows($product_specials_query)>0) { $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="'.tep_href_link(FILENAME_SPECIALS).'">'.TABLE_HEADING_PRODUCT_SPECIALS.'</a>' ); new infoBoxHeading($info_box_contents,false,false, tep_href_link(FILENAME_SPECIALS)); $row = 0; $col = 0; $info_box_contents = array(); while ($product_specials = tep_db_fetch_array($product_specials_query)) { $products_price = (tep_not_null($product_specials['specials_new_products_price'])?'<s>'.$currencies->display_price($product_specials['products_price'], tep_get_tax_rate($product_specials['products_tax_class_id'])).'</s> ':'').'<span class="productSpecialPrice">' . $currencies->display_price($product_specials['specials_new_products_price'], tep_get_tax_rate($product_specials['products_tax_class_id'])).'</span>'; $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_specials['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $product_specials['products_image'], $product_specials['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $product_specials['products_id']) . '">' . $product_specials['products_name'] . '</a><br>' . $products_price ); $col ++; if ($col > PRODUCT_SPECIALS_DISPLAY_COLUMNS-1) { $col = 0; $row ++; } } new contentBox($info_box_contents); } ?> <!-- product_specials_eof //--> change: new infoBoxHeading($info_box_contents,false,false, tep_href_link(FILENAME_SPECIALS)); To: new SpecialsBoxHeading($info_box_contents,false,false, tep_href_link(FILENAME_SPECIALS)); This changes the header to the spcials class Att..This is not a box...its a module hence the main part of the box takes its look from the contentbox class Edited December 9, 2006 by toyicebear Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
AndreasE Posted December 14, 2006 Share Posted December 14, 2006 Have installed the latest BDP and i like it :D However, i want to use flags again when i choose country. How can I do that? Quote Link to comment Share on other sites More sharing options...
knorrhane Posted December 14, 2006 Share Posted December 14, 2006 Hi, I have installed Basic design pack 1.9 and am happy with the outcome. I just have one thing i need to get to work. Right now on my test page (http://www.westofeden.com/catalog) i the menu i have modified the categoriesbox and added borders and padding in the css. My problem is that i want the heading to attach to the box and easilly apply the same css to that one or maybe even better to move the Categories-headertext into the box itself. A have been searching the forum for days but cannot find a solution. I reckon something must be changed in the code but i dont know what. All help is appriciated. Thank you. /Simon Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 14, 2006 Author Share Posted December 14, 2006 (edited) Have installed the latest BDP and i like it :D However, i want to use flags again when i choose country. How can I do that? BDP does not influence the flags at all, they work the same way as a default install. Edited December 14, 2006 by toyicebear Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 14, 2006 Author Share Posted December 14, 2006 Hi, I have installed Basic design pack 1.9 and am happy with the outcome. I just have one thing i need to get to work. Right now on my test page (http://www.westofeden.com/catalog) i the menu i have modified the categoriesbox and added borders and padding in the css. My problem is that i want the heading to attach to the box and easilly apply the same css to that one or maybe even better to move the Categories-headertext into the box itself. A have been searching the forum for days but cannot find a solution. I reckon something must be changed in the code but i dont know what. All help is appriciated. Thank you. /Simon You can modify , includes/boxes/categories.php Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
knorrhane Posted December 15, 2006 Share Posted December 15, 2006 Ok, but what text do i change? Or do i move some code to another section? I am a beginner when it comes to php and cannot yet understand completely how it works. Thanks you. Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 15, 2006 Author Share Posted December 15, 2006 (edited) Ok, but what text do i change? Or do i move some code to another section? I am a beginner when it comes to php and cannot yet understand completely how it works. Thanks you. As a newbee you might start off with using a contribution like this one: Great Categories Att. if you are using the BDP pack that categories box is already included and can be further adjusted in the stylesheet. Edited December 15, 2006 by toyicebear Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
star8 Posted December 15, 2006 Share Posted December 15, 2006 Hello! I have installed version pack 1.8 as instructed but the thumbnail did'nt work. Then I saw ver. 1.9 . I changed the html_output_on_the_fly_thumb.php file to html_output.php . Osc version I am using is 2.2 M2 05112. This was uploaded at cat/ and the "product_thumb.php" file was uploaded at cat/inc/func. But still the thumbnail isn't working. What did I do wrong? Please help! Thanks Quote Link to comment Share on other sites More sharing options...
star8 Posted December 15, 2006 Share Posted December 15, 2006 (edited) Hello! Forget the mail before this. The pathI said was wrong. Here is the edited mail. I have installed version pack 1.8 as instructed but the thumbnail did'nt work. Then I saw ver. 1.9 . I changed the html_output_on_the_fly_thumb.php file to html_output.php . Osc version I am using is 2.2 M2 05112. This was uploaded at cat/inc/func and the "product_thumb.php" file was uploaded at cat/. But still the thumbnail isn't working. What did I do wrong? Please help! Thanks Edited December 15, 2006 by star8 Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 16, 2006 Author Share Posted December 16, 2006 Hello! I have installed version pack 1.8 as instructed but the thumbnail did'nt work. Then I saw ver. 1.9 . I changed the html_output_on_the_fly_thumb.php file to html_output.php . Osc version I am using is 2.2 M2 05112. This was uploaded at cat/ and the "product_thumb.php" file was uploaded at cat/inc/func. But still the thumbnail isn't working. What did I do wrong? Please help! Thanks 1. check that your hosting/server have suport for gdlib 2. post your url, and i can have a look. Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
newtech Posted December 20, 2006 Share Posted December 20, 2006 I love Design Pack. There is another contrib I desparetly need to use and it appears to not work with design pack. Image Stretch Fix 1.2 http://www.oscommerce.com/community/contributions,3629 What Image Stretch Fix does is keep images at their original dimensions if they are smaller than the default dimensions specificed in Configuration. The only coding that is changed is the html wrapper function (which appears is also changed by design pack)I am wondering if anybody out there has got the contrib to work with design pack? If so, how? If not, anybody want to tackle it? Image Stretch fix is a great plug-in. It acutally should be part of the default oscommerce install-oscommerce should not be changing the dimensions of images-real pain if importing a store. Here is the only code change that is to take place with Image Stretch: ////// The HTML image wrapper function // modified: Eric Covert, 2005 // version: 1.2 /* Modified to allow calls to this function to determine whether or not to allow images to stretch. Original modification was designed to force images to maintain their aspect ratio when being resized. Subsequent modifications include changing the default of the stretch variable to "false" and making smaller images not expand. Thus, if an images dimensions are both smaller than the passed in width and height variables, the original dimensions will be used. */ function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $stretch='false') { if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } // alt is added to the img tag even if it is null to prevent browsers from outputting // the image filename as default $image = '<img src="' . tep_output_string($src) . '" border="0" alt="' . tep_output_string($alt) . '"'; if (tep_not_null($alt)) { $image .= ' title=" ' . tep_output_string($alt) . ' "'; } if ( (CONFIG_CALCULATE_IMAGE_SIZE == 'true') ) { if ($image_size = @getimagesize($src)) { if (empty($width) && tep_not_null($height)) { if (($image_size[1] < $height) && ($stretch=='false')) { // EC - if width hasn't been passed in, the image height is smaller than the setting, and stretch is false, use original dimensions $width=$image_size[0]; $height=$image_size[1]; } else { // EC - if width hasn't been passed, and the image height is larger than the setting, height ends up as the setting and width is modified to suit $ratio = $height / $image_size[1]; $width = $image_size[0] * $ratio; } } elseif (tep_not_null($width) && empty($height)) { // EC - if height hasn't been passed in, the image width is smaller than the setting, and stretch is false, use original dimensions if (($image_size[0] < $width) && ($stretch=='false')) { $width=$image_size[0]; $height=$image_size[1]; } else { // EC - if height hasn't been passed, and the image width is larger than the setting, width ends up as the setting and height is modified to suit $ratio = $width / $image_size[0]; $height = $image_size[1] * $ratio; } } elseif (empty($width) && empty($height)) { // EC - if neither height nor width are passed in, just use the original dimensions $width = $image_size[0]; $height = $image_size[1]; } //EC - added the following elseif for calculating based on stretch/no-stretch elseif (tep_not_null($width) && tep_not_null($height)) { if ((($image_size[0] > $width) || ($image_size[1] > $height)) && ($stretch=='false')) { // EC - if width and height are both passed in, either original height or width are larger than the setting, and stretch is false, resize both dimensions to suit $new_ratio=$height / $width; $image_ratio=$image_size[1] / $image_size[0]; if ($new_ratio >= $image_ratio) { $height=$image_size[1]*($width/$image_size[0]); } else { $width=$image_size[0]*($height/$image_size[1]); } } elseif ($stretch=='false') { // EC - if we got here, both width and height have been passed in, both original height and width are smaller than setting, and stretch is set to false. So just use original dimensions. $width=$image_size[0]; $height=$image_size[1]; } } } elseif (IMAGE_REQUIRED == 'false') { return false; } } if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } if (tep_not_null($parameters)) $image .= ' ' . $parameters; $image .= '>'; return $image; } Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 21, 2006 Author Share Posted December 21, 2006 I love Design Pack.There is another contrib I desparetly need to use and it appears to not work with design pack. Image Stretch Fix 1.2 http://www.oscommerce.com/community/contributions,3629 What Image Stretch Fix does is keep images at their original dimensions if they are smaller than the default dimensions specificed in Configuration. The only coding that is changed is the html wrapper function (which appears is also changed by design pack)I am wondering if anybody out there has got the contrib to work with design pack? If so, how? If not, anybody want to tackle it? Image Stretch fix is a great plug-in. It acutally should be part of the default oscommerce install-oscommerce should not be changing the dimensions of images-real pain if importing a store. Here is the only code change that is to take place with Image Stretch: If you use the automatic thumbnails function, you do not need the image stretch function since its bulid into the automatic thumbnails function. Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
newtech Posted December 21, 2006 Share Posted December 21, 2006 If you use the automatic thumbnails function, you do not need the image stretch function since its bulid into the automatic thumbnails function. I have tried using html_output.php-060817 html_output.php-060817-on-the-fly-thumb.php Is automatic thumbnails suppose work they way I would want? I have some images that are smaller than the defaulted small image width and heigth. I want them to show up under the products page at exactly the size they are. What Image Stretch Fix does is keep images at their original dimensions if they are smaller than the default dimensions specificed in Configuration settings. Is this what automatic thumbnails does also. If so, why are my images being stretched regardless of which html_output file I use? P.S. I am using the css button feature. Quote Link to comment Share on other sites More sharing options...
sychung Posted December 21, 2006 Share Posted December 21, 2006 I have just installed the basic design pack 1.9 & it look like this www.vivatoy.com. It's something wrong, look at the header top right, there's a blank gap, & the bottom also. How can I get rid or that gap? Thank you. Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 21, 2006 Author Share Posted December 21, 2006 (edited) I have tried using html_output.php-060817 html_output.php-060817-on-the-fly-thumb.php Is automatic thumbnails suppose work they way I would want? I have some images that are smaller than the defaulted small image width and heigth. I want them to show up under the products page at exactly the size they are. What Image Stretch Fix does is keep images at their original dimensions if they are smaller than the default dimensions specificed in Configuration settings. Is this what automatic thumbnails does also. If so, why are my images being stretched regardless of which html_output file I use? P.S. I am using the css button feature. The automatic thumbnails functions does keep the images propotioned. Ie. If the original image is 200 X 100 px , and your setting for small images in admin is 50 X 50 px , the generated thumb would be 50 X 25 px . att the standard automatic thumb in BDP does not support rezising of GIF's , it can be changed to do so by uncommenting some lines in includes/functions/html_output.php (the mentioned lines are marked by comments) Edited December 21, 2006 by toyicebear Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
newtech Posted December 21, 2006 Share Posted December 21, 2006 The automatic thumbnails functions does keep the images propotioned. Ie. If the original image is 200 X 100 px , and your setting for small images in admin is 50 X 50 px , the generated thumb would be 50 X 25 px . att the standard automatic thumb in BDP does not support rezising of GIF's , it can be changed to do so by uncommenting some lines in includes/functions/html_output.php (the mentioned lines are marked by comments) I uploaded html_output.php-060817-on-the-fly-thumb.php and realized that I needed to change Calculate Image Size to 'True'. With the siamge stretch contrib it did not work with either setting. Thanks for the help. Love BDPS contrib. Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted December 21, 2006 Author Share Posted December 21, 2006 I have just installed the basic design pack 1.9 & it look like this www.vivatoy.com. It's something wrong, look at the header top right, there's a blank gap, & the bottom also. How can I get rid or that gap? Thank you. Try to edit the text on the frontpage. It can be done in includes/languages/english/index.php Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
blakemiller Posted December 24, 2006 Share Posted December 24, 2006 Hi, The .css button part transforms all osc standard button calles into css defined buttons. Ie. the buttons looks are defined in stylesheet.css , you can have different borders, you can bevel the borders for a more button like look and/or you can add graphical background images to the buttons aswell and so on. But if you want to just use the standard graphical buttons, you can just change this piece of code in includes/functions/html_output.php (from basic design pack mk1.3) Change this To this: I've downloaded/installed the latest BDP onto my shopping cart. I want to revert back to using graphical buttons for just about everything (I think) This particular post is about a year old, so i want to see what the latest procedure is to revert back to graphical buttons. Thanks in advance! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.