AndreasE Posted January 15, 2007 Share Posted January 15, 2007 1. you can edit product_info.php to to use different width and height. 2. There are several contributions for productlisting available in the contributions section There is a includes/functions/html_output.php included in the pack marked with no-cssbuttons rename to html_output.php and upload and use that one. I don't get the original gifs back, just text without css-buttons. What can be wong? Thanx for all the help by the way! :thumbsup: Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 15, 2007 Author Share Posted January 15, 2007 I don't get the original gifs back, just text without css-buttons. What can be wong? Thanx for all the help by the way! :thumbsup: To be able to say more i need to see your site, so just post your url and i will 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...
AndreasE Posted January 15, 2007 Share Posted January 15, 2007 To be able to say more i need to see your site, so just post your url and i will have a look. www.codered.se/idar3 Thanx :) Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 16, 2007 Author Share Posted January 16, 2007 www.codered.se/idar3 Thanx :) you have graphical buttons now, but for some reason there seems to be a problem with the image path for instance http://codered.se/idar3/includes/languages...ton_reviews.gif it does not exsist or there are some access problems on your hosting/server. 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 January 16, 2007 Share Posted January 16, 2007 you have graphical buttons now, but for some reason there seems to be a problem with the image path for instance http://codered.se/idar3/includes/languages...ton_reviews.gif it does not exsist or there are some access problems on your hosting/server. it should work. Im so confused... :blink: Quote Link to comment Share on other sites More sharing options...
AndreasE Posted January 16, 2007 Share Posted January 16, 2007 (edited) you have graphical buttons now, but for some reason there seems to be a problem with the image path for instance http://codered.se/idar3/includes/languages...ton_reviews.gif it does not exsist or there are some access problems on your hosting/server. Ok, if i put an image in http://codered.se/idar3/images or http://codered.se/idar3/ it shows. But it doesnt show if i put dem in http://codered.se/idar3/includes or any deeper catalog. What is wrong here? example http://codered.se/idar3/361.jpg Edited January 16, 2007 by AndreasE Quote Link to comment Share on other sites More sharing options...
AndreasE Posted January 16, 2007 Share Posted January 16, 2007 Solved, includes had i .htacess file that stopped the accessing! Quote Link to comment Share on other sites More sharing options...
Becki Posted January 16, 2007 Share Posted January 16, 2007 Hi, Thanks for the contribution! I have made a small amendment as I found a problem - could you see if it's ok. I'm using the on-the-fly thumbnailer html_output and I deleted the css button code as I didn't want that. anyway it all worked except I found that if the image size you specified in admin was bigger than the original image it didn't scale the image up and so didn't keep the aspect ratio the same, BUT the normal functions of the shop did size the image so you could end up with a very distorted image (I know in reality your image is going to be bigger than the thumbnails but I found this out after playing around resizing the default stock images) So I then tried to change the code so that it resized the image always - even if it had to scale up slightly (again unrealistic but could happen) So in html_output I changed this: // Scale the image if larger than the set width or height if ($image_size[0] > $width || $image_size[1] > $height) { $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } else { $height = intval($width * $ratio); } $image = '<img src="product_thumb.php?img='.$src.'&w='.tep_output_string($width).'&h='.tep_output_string($height).'"'; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } } to this: // Scale the image if larger than the set width or height $rx = $image_size[0] / $width; $ry = $image_size[1] / $height; if ($rx < $ry) { $width = intval($height / $ratio); } else { $height = intval($width * $ratio); } $image = '<img src="product_thumb.php?img='.$src.'&w='.tep_output_string($width).'&h='.tep_output_string($height).'"'; } } elseif (IMAGE_REQUIRED == 'false') { return ''; } and also deleted this from product_thumb.php: // Do not output if get values are larger than orig imageif ($_GET['w'] > $image[0] || $_GET['h'] > $image[1]) return; Is this an OK way of doing it - it seems to work! It's really just to make sure the ratio's stay the same on the off chance that you're trying to scale an image up. If there is a better way of doing it please let me know! Thanks Becki P.S i also was wondering what size to save my images as (thats the size they show up in when you've clicked to enlarge isn't it) Is there any difference in loading time for the product_listing / product_info page if the original image is 30kb or 60kb? Because the resized version in going to be ~3kb and this is all the customer has to download?Right? or does it still take longer for a larger file size because it takes longer to resize it? Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 16, 2007 Author Share Posted January 16, 2007 Hi, Thanks for the contribution! I have made a small amendment as I found a problem - could you see if it's ok. I'm using the on-the-fly thumbnailer html_output and I deleted the css button code as I didn't want that. anyway it all worked except I found that if the image size you specified in admin was bigger than the original image it didn't scale the image up and so didn't keep the aspect ratio the same, BUT the normal functions of the shop did size the image so you could end up with a very distorted image (I know in reality your image is going to be bigger than the thumbnails but I found this out after playing around resizing the default stock images) So I then tried to change the code so that it resized the image always - even if it had to scale up slightly (again unrealistic but could happen) So in html_output I changed this: to this: and also deleted this from product_thumb.php: Is this an OK way of doing it - it seems to work! It's really just to make sure the ratio's stay the same on the off chance that you're trying to scale an image up. If there is a better way of doing it please let me know! Thanks Becki P.S i also was wondering what size to save my images as (thats the size they show up in when you've clicked to enlarge isn't it) Is there any difference in loading time for the product_listing / product_info page if the original image is 30kb or 60kb? Because the resized version in going to be ~3kb and this is all the customer has to download?Right? or does it still take longer for a larger file size because it takes longer to resize it? These kind of questions are better put in the support tread for, On the fly thumbnails generator 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...
Becki Posted January 16, 2007 Share Posted January 16, 2007 These kind of questions are better put in the support tread for, On the fly thumbnails generator OK - I think the function was meant to be in there fo rthis reason: A check to see if the thumbnail dimensions being passed to the thumbnailer are greater that the size of the original image. In which case, the image will not be output. (A security feature to mitigate DOS (Denial of Service) attacks with users calling the thumbnailer directly with very large width/height values.) Still needs a solution though...I'll try and find one! Becki Quote Link to comment Share on other sites More sharing options...
AndreasE Posted January 17, 2007 Share Posted January 17, 2007 (edited) The support in this thread is amazing :thumbsup: Therefore i need to ask one more question: I have a white 1px border around my productimages. This usually works flawless. However, on page: http://codered.se/idar3/index.php?cPath=21_23 that border appears around one button. If you cant see it, use the swedish flag. How can i fix that? I dont have that problem with any oher button (i think) Andreas Edited January 17, 2007 by AndreasE Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 17, 2007 Author Share Posted January 17, 2007 The support in this thread is amazing :thumbsup: Therefore i need to ask one more question: I have a white 1px border around my productimages. This usually works flawless. However, on page: http://codered.se/idar3/index.php?cPath=21_23 that border appears around one button. If you cant see it, use the swedish flag. How can i fix that? I dont have that problem with any oher button (i think) Andreas You have set the stylesheet class to add borders to all images under that class, so that is just what is happening. click on basics for design in my signature below and reading through that tread you will also find a way to add borders to images and not buttons. 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...
kidda Posted January 17, 2007 Share Posted January 17, 2007 Hi, I have installed the BDP and I'm testing locally using XAMPP server, ever since when I load the store, click on any link in the store I get loads of msdos box's come up running c:/windows/system32/cmd.exe the store works fine but this happens for every operation within the store. I have searched the forums and this thread and can't seem to find any info on this. Can anyone shed any light on this for me. Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 17, 2007 Author Share Posted January 17, 2007 Hi, I have installed the BDP and I'm testing locally using XAMPP server, ever since when I load the store, click on any link in the store I get loads of msdos box's come up running c:/windows/system32/cmd.exe the store works fine but this happens for every operation within the store. I have searched the forums and this thread and can't seem to find any info on this. Can anyone shed any light on this for me. I have not expirienced this or heard anyone else expiriencing this.... so i guess its only on your install... 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...
kidda Posted January 17, 2007 Share Posted January 17, 2007 (edited) After trawling the forums again I found another couple of people with the same problem see the first posts on page: http://www.oscommerce.com/forums/index.php?sho...mp;#entry958112 in this thread, don't know how I missed them thought I'd read it all! Any ideas?? Edited January 17, 2007 by kidda Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 18, 2007 Author Share Posted January 18, 2007 After trawling the forums again I found another couple of people with the same problem see the first posts on page: http://www.oscommerce.com/forums/index.php?sho...mp;#entry958112 in this thread, don't know how I missed them thought I'd read it all! Any ideas?? Dont use XAMPP use EasyPhp instead. 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...
kidda Posted January 18, 2007 Share Posted January 18, 2007 Thanks, swopped over to easyphp no problems! Quote Link to comment Share on other sites More sharing options...
Guest Posted January 20, 2007 Share Posted January 20, 2007 (edited) I just installed oscommerce on a test site I play with (Fantasico install) I download this and literally dropped it over my current files as instructed. However the end result is a total mess with loads of what I can only presume is loads of php code on the screen. Anyone care to let me know how I have done it so wrong?? My site sorted it Edited January 20, 2007 by dapex Quote Link to comment Share on other sites More sharing options...
AndreasE Posted January 22, 2007 Share Posted January 22, 2007 Hi again. I want to change my index page som my productlisting is a little tighter. I dont want so much space between the products. For example: http://codered.se/idar3/index.php?cPath=21_23 I want more space to the left and right of the product listning instead. Can I set the with of the table somwhere and center it? Andreas w 1000 questions :blush: Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 22, 2007 Author Share Posted January 22, 2007 Hi again. I want to change my index page som my productlisting is a little tighter. I dont want so much space between the products. For example: http://codered.se/idar3/index.php?cPath=21_23 I want more space to the left and right of the product listning instead. Can I set the with of the table somwhere and center it? Andreas w 1000 questions :blush: You can set that in - includes/modules/product_listing.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...
AndreasE Posted January 22, 2007 Share Posted January 22, 2007 You can set that in - includes/modules/product_listing.php Lovely :thumbsup: A quick easy one, where in index can I delete categories section when i choose a category? I get php-error when i try. http://codered.se/idar3/index.php?cPath=21 Quote Link to comment Share on other sites More sharing options...
AndreasE Posted January 22, 2007 Share Posted January 22, 2007 One more... I tried to install 'On the Fly' Auto Thumbnailer using GD Library http://www.oscommerce.com/community/contributions,2226 And it hit me that BDP already have something like this installed. Is it the same? Quote Link to comment Share on other sites More sharing options...
AndreasE Posted January 22, 2007 Share Posted January 22, 2007 Lovely :thumbsup: A quick easy one, where in index can I delete categories section when i choose a category? I get php-error when i try. http://codered.se/idar3/index.php?cPath=21 I fixed it with a little more experimenting!! B) Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted January 22, 2007 Author Share Posted January 22, 2007 One more... I tried to install 'On the Fly' Auto Thumbnailer using GD Library http://www.oscommerce.com/community/contributions,2226 And it hit me that BDP already have something like this installed. Is it the same? standard BDP have Automatic Thumbnails installed. But for those where automatic thumbnails do not work, 'On the Fly' Auto Thumbnailer using GD Library is also included as an alternative... For info on how to use, check the readme file from BDP. 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 January 24, 2007 Share Posted January 24, 2007 Hi! I am using the latest BDP, and the blue arrows included under categories. 1) The spacing in between categories are much apart. Where do I have to change so that it will not have so much space from each other, like the original Oscommerce? I still want to keep the blue arrows. 3) I want the item numbers be shown under categories, how do I do this? 2) Now I want the sub categories shown together with the categories from the start of the page, how do I do it? Thanks. :) 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.
Note: Your post will require moderator approval before it will be visible.