Ackis Posted April 17, 2007 Posted April 17, 2007 Why does my categorybox look like this???????? I've tried everything in my stylesheet but no success. WHY??? What is that "light-grey" border around the box? http://rcmaffian.se/oscommerce_st/catalog/products.php //Jessica Jessica Fuchs
frescodesign Posted April 17, 2007 Posted April 17, 2007 that is probably more than likely the background color of that table or row. go to .css and search for this color code: "C0C0C0". you should find something like this.. background-color: #C0C0C0; just take it out or change the color, which ever you prefer. Or, and this is for good habit, just comment it out.
crash3903 Posted April 17, 2007 Posted April 17, 2007 that is probably more than likely the background color of that table or row. go to .css and search for this color code: "C0C0C0". you should find something like this.. background-color: #C0C0C0; just take it out or change the color, which ever you prefer. Or, what i have a habit of doing, just to comment it out. or search in your index file and see if it is there Regards Mark A Reynolds
Guest Posted April 17, 2007 Posted April 17, 2007 Why does my categorybox look like this???????? I've tried everything in my stylesheet but no success. WHY??? What is that "light-grey" border around the box? http://rcmaffian.se/oscommerce_st/catalog/products.php //Jessica On the stylesheet, look for the infobox names. #707376 is one grey color. Do a Find on the page for #707376. Have lots of fun.
Ackis Posted April 17, 2007 Author Posted April 17, 2007 #707376 This grey color is my background. I have lots of it in css. Jessica Fuchs
Ackis Posted April 17, 2007 Author Posted April 17, 2007 Here is my stylesheet... Am I blind? /* $Id: stylesheet.css,v 1.56 2003/06/30 20:04:02 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ DIV.centerpage { width: 80%; position: absolute; left: 30%; top: 0; margin-left: -20%; background: #707376; background-image:url('images/bg3.gif'); } a:link { font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; text-decoration: none; cursor: hand; color: #000000; } a:active { font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; text-decoration: none; cursor: hand; color: #000000; } a:visited { font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; text-decoration: none; cursor: hand; color: #000000; } a:hover { font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: bold; cursor: hand; color: #000000; text-decoration: underline; } table { font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: normal; cursor: default; color: #FFFFFF; } tr { font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: normal; cursor: default; color: #000000; } td { font-family: Verdana, Arial, sans-serif; font-size: 11px; font-weight: normal; cursor: default; color: #000000; } select { font-family: Verdana, Arial, sans-serif; font-size: 9px; color: #000000; background-color: #ffffff; border: #FF9900; border-style: ridge; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px} textarea { color: #000000; border: 1px #000000 solid;} textarea { font-family: Verdana, Arial, sans-serif; font-size: 9px} body {scrollbar-face-color: #79878E; scrollbar-highlight-color: #D0D1DB; scrollbar-shadow-color: #C6C2BB; scrollbar-3dlight-color: #D0D1DB; scrollbar-arrow-color: #D0D1DB; scrollbar-track-color: #69787F; scrollbar-darkshadow-color: #A8A5A1; } .copy1 { background-image: url(bilder/copy1.gif); background-repeat: no-repeat; height: 28px; } .boxText { font-family: Verdana, Arial, sans-serif; font-size: 11px; } .errorBox { font-family : Verdana, Arial, sans-serif; font-size : 10px; background: #707376; font-weight: bold; } .stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #000000; } .productsNotifications { background: #707376; } .orderEdit { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #000000; text-decoration: underline; } BODY { background: #transparent; background-image:url('images/bakgrund_sida.gif'); background-repeat:repeat; background-position:50%50%; background-attachment:fixed; color: #000000; margin: 0px; } A { color: #000000; text-decoration: none; } FORM { display: inline; } TR.header { background: #FFFFFF; } TR.headerNavigation { background: #707376; } TD.headerNavigation { font-family: Verdana, Arial, sans-serif; font-size: 12px; background: #707376; color: #000000; font-weight : bold; } A.headerNavigation { color: #000000; } A.headerNavigation:hover { color: #000000; } TR.headerError { background: #ff0000; } TD.headerError { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; background: #e9e8e7; color: #000000; font-weight : bold; text-align : center; } TR.headerInfo { background: #FFFFFF; } TD.headerInfo { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; background: #707376; color: #000000; font-weight: bold; text-align: center; } TR.footer { background: #707376; } TD.footer { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #707376; color: #000000; font-weight: bold; } .infoBox { background: #707376; } .infoBoxContents { background: #707376; font-family: Verdana, Arial, sans-serif; font-size: 12px; } .infoBoxNotice { background: #FFFF66; } .infoBoxNoticeContents { background: #FFFF66; font-family: Verdana, Arial, sans-serif; font-size: 12px; } TD.infoBoxHeading { font-family: Verdana, Arial, sans-serif; font-size: 14px; font-weight: bold; background: #707376; color: #000000; } TD.infoBox, SPAN.infoBox { font-family: Verdana, Arial, sans-serif; font-size: 12px; } TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd { background: #000000; } TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even { background: #000000; } TABLE.productListing { border: 1px; border-style: solid; border-color: #000000; border-spacing: 1px; } .productListing-heading { font-family: Verdana, Arial, sans-serif; font-size: 12px; background: #FFFFFF; color: #000000; font-weight: bold; } TD.productListing-data { font-family: Verdana, Arial, sans-serif; font-size: 10px; background: #transparent; } A.pageResults { color: #0000FF; } A.pageResults:hover { color: #0000FF; background: #FFFF33; } TD.pageHeading, DIV.pageHeading { font-family: Verdana, Arial, sans-serif; font-size: 20px; font-weight: bold; color: #000000; } TR.subBar { background: #FFFFFF; } TD.subBar { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #000000; } TD.main, P.main { font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 1.5; } TD.smallText, SPAN.smallText, P.smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; } TD.accountCategory { font-family: Verdana, Arial, sans-serif; font-size: 13px; color: #aabbdd; } TD.fieldKey { font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: bold; } TD.fieldValue { font-family: Verdana, Arial, sans-serif; font-size: 12px; } TD.tableHeading { font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: bold; } SPAN.newItemInCart { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #CCCCCC; } CHECKBOX, INPUT, RADIO, SELECT { font-family: Verdana, Arial, sans-serif; font-size: 11px; } TEXTAREA { width: 100%; font-family: Verdana, Arial, sans-serif; font-size: 11px; } SPAN.greetUser { font-family: Verdana, Arial, sans-serif; font-size: 12px; color: #f0a480; font-weight: bold; } TABLE.formArea { background: #707376; border-color: #7b9ebd; border-style: solid; border-width: 1px; } TD.formAreaTitle { font-family: Verdana, Arial, sans-serif; font-size: 12px; font-weight: bold; } .moduleRow { } .moduleRowOver { background-color: #707376; cursor: pointer; cursor: hand; } .moduleRowSelected { background-color: #707376; } .checkoutBarFrom, .checkoutBarTo { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; } .checkoutBarCurrent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; } /* message box */ .messageBox { font-family: Verdana, Arial, sans-serif; font-size: 10px; } .messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #FFFF66; } .messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #99ff00; } /* input requirement */ .inputRequirement { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #FFFF66; } Jessica Fuchs
bill110 Posted April 17, 2007 Posted April 17, 2007 You have a couple of colors that do not show up in the stylesheet. Perhaps it is hard coded on the Index.php or the includes/boxes/categories.php or the includes/column_left.php My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
rrrhythm Posted April 18, 2007 Posted April 18, 2007 Why does my categorybox look like this???????? I've tried everything in my stylesheet but no success. WHY??? What is that "light-grey" border around the box? http://rcmaffian.se/oscommerce_st/catalog/products.php //Jessica why? because the problem isn't in the stylesheet, it's in the code. one of the failings of the current osC version is that a lot of formatting is hard coded, rather than relying on stylesheets. i nearly went insane when i first started using osC. or maybe i went all the way insane. how would i know? looking at the html for your index (go to your site, then hit "view source") you can see that the problem is right here: <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#C0C0C0" style="border-collapse: collapse" bordercolor="#111111"> also, in a couple of table cells, right in the same area of code, there are some similar bgcolor assignments. now you have to track down what bit of PHP code is generating that HTML code. i'll bet you a dollar that you'll find it in catalog/includes/classes/boxes.php backup first (for most stores classes/boxes.php is an essential file for site functionality, so it's really important not to goof it up.), then delete or comment out the bgcolor assignments in classes/boxes.php, and you should be good to go. if you can't fix it from this advice, please post the code for catalog/includes/classes/boxes.php cheers, rj
usernamenone Posted April 18, 2007 Posted April 18, 2007 You have edited in FrontPage and have added an extra <td style="" bgcolor="#c0c0c0" width="92"></td> After removing this piece of code you infobox will display correctly and look like this. <!-- start categorybox //--><table style="border-collapse: collapse;" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td width="11"> <img src="images/infobox/corner_left.gif" border="0" height="14" width="11"></td><td class="infoBoxHeading" background="images/infobox_03.gif" width="1428"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="infoBoxHeading" width="100%">Kategorier</td> </tr></tbody></table></td> <td style="" background="images/infobox_04.gif" width="11"><img src="images/infobox/corner_right.gif" border="0" height="14" width="11"></td></tr></tbody></table> <table style="border-collapse: collapse;" bgcolor="#c0c0c0" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td bgcolor="#c0c0c0"> </td> <td bgcolor="#dbf1ff"><table class="infoBoxContents" border="0" cellpadding="3" cellspacing="0" width="100%"><tbody><tr><td><img src="images/pixel_trans.gif" alt="" border="0" height="1" width="100%"></td></tr> <tr><td class="boxText"><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=2">BILAR-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=3">Bil tillbehör</a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=32">Bil motorer-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=21">Bil reservdelar-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=1">FLYGPLAN-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=30">Flyg tillbehör-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=33">Flyg motorer-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=31">Flyg reservdelar</a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=34">HELIKOPTER</a> </td> </tr><tr><td><img src="images/pixel_trans.gif" alt="" border="0" height="1" width="100%"></td></tr> </tbody></table></td><td> </td> </tr><tr><td width="30"> </td> <td width="100%"> </td> <td width="31"> </td> </tr></tbody></table><!-- end categorybox //-->
Guest Posted April 18, 2007 Posted April 18, 2007 You have edited in FrontPage and have added an extra <td style="" bgcolor="#c0c0c0" width="92"></td> After removing this piece of code you infobox will display correctly and look like this. <!-- start categorybox //--><table style="border-collapse: collapse;" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td width="11"> <img src="images/infobox/corner_left.gif" border="0" height="14" width="11"></td><td class="infoBoxHeading" background="images/infobox_03.gif" width="1428"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="infoBoxHeading" width="100%">Kategorier</td> </tr></tbody></table></td> <td style="" background="images/infobox_04.gif" width="11"><img src="images/infobox/corner_right.gif" border="0" height="14" width="11"></td></tr></tbody></table> <table style="border-collapse: collapse;" bgcolor="#c0c0c0" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td bgcolor="#c0c0c0"> </td> <td bgcolor="#dbf1ff"><table class="infoBoxContents" border="0" cellpadding="3" cellspacing="0" width="100%"><tbody><tr><td><img src="images/pixel_trans.gif" alt="" border="0" height="1" width="100%"></td></tr> <tr><td class="boxText"><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=2">BILAR-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=3">Bil tillbehör</a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=32">Bil motorer-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=21">Bil reservdelar-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=1">FLYGPLAN-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=30">Flyg tillbehör-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=33">Flyg motorer-></a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=31">Flyg reservdelar</a> <a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=34">HELIKOPTER</a> </td> </tr><tr><td><img src="images/pixel_trans.gif" alt="" border="0" height="1" width="100%"></td></tr> </tbody></table></td><td> </td> </tr><tr><td width="30"> </td> <td width="100%"> </td> <td width="31"> </td> </tr></tbody></table><!-- end categorybox //--> Never use frontpage.
Ackis Posted April 18, 2007 Author Posted April 18, 2007 Ok, great. Can you also tell me WHERE to find this code. Because the product side is calling for the categorybox. I haven't added that code but I've been told that /"the problem isn't in the stylesheet, it's in the code. one of the failings of the current osC version is that a lot of formatting is hard coded,"/ I've been looking in alot of files now but I can't find it. /Jessica Jessica Fuchs
usernamenone Posted April 18, 2007 Posted April 18, 2007 Then this is a template. You will not find the code exactly as I have found it but as php code will be in between that html code and it will be in between the <!-- start categorybox //--> and <!-- end categorybox //--> Templates most commonly add the categorie box to either the includes header or the index.php page. If I were you and liked the header and background for your site I would install a stock oscommerce catelog then remove the stock header and replace with the template header ( after cleaning put the craxxy FrontPage coding). Then control the width add the custom background, use the colors from the style sheet. You are bound to have all kinds of issues with that template. You click on a categorie and your categorie side box is gone. How is your customer going to get back to your nav menu? Then get your money back from the hack that sold it to you. Ok, great. Can you also tell me WHERE to find this code. Because the product side is calling for the categorybox. I haven't added that code but I've been told that /"the problem isn't in the stylesheet, it's in the code. one of the failings of the current osC version is that a lot of formatting is hard coded,"/ I've been looking in alot of files now but I can't find it. /Jessica
usernamenone Posted April 18, 2007 Posted April 18, 2007 one more place to look, If the code isn't in the index or the header then look for it in includes boxes categories.php
Ackis Posted April 18, 2007 Author Posted April 18, 2007 *almost crying now* I've looked in header.php, index, also in includes /boxes /categories.php I don't find it!!!!! :blink: Jessica Fuchs
usernamenone Posted April 18, 2007 Posted April 18, 2007 Then ask the template maker. There just isn't any more support on our end if you can not find code. We sure don't know where you template maker has moved it to.
Ackis Posted April 18, 2007 Author Posted April 18, 2007 This is weird! I will ask him / them!!!!! I really appreciate you trying to help me!!!! Thank you for that!!!!!! Best regards Jessica Jessica Fuchs
Guest Posted April 18, 2007 Posted April 18, 2007 This is weird! I will ask him / them!!!!! I really appreciate you trying to help me!!!! Thank you for that!!!!!! Best regards Jessica Have you a backup copy on your pc? If not, make one of the entire site. Use the windows search feature in your backup directory to look in files *.* and text containg bgcolor="#C0C0C0" style="border-collapse: collapse" bordercolor="#111111
rrrhythm Posted April 18, 2007 Posted April 18, 2007 Ok, great. Can you also tell me WHERE to find this code. Because the product side is calling for the categorybox. I haven't added that code but I've been told that /"the problem isn't in the stylesheet, it's in the code. one of the failings of the current osC version is that a lot of formatting is hard coded,"/ I've been looking in alot of files now but I can't find it. /Jessica jessica- please post your code for the file /catalog/includes/classes/boxes.php i am almost 100% certain the problem is there. cheers, rj
rrrhythm Posted April 18, 2007 Posted April 18, 2007 hey, and take a deep breath and don't cry, cause it won't help. not that i haven't been driven nearly to tears myself. believe it or not this stuff is all perfectly logical. just deeply intricate logic. if you take the time to learn php you can begin to see the logic, and how to track things backwards by starting at the top and then reading what files are called up. in your case, working backwards, where i'll use the symbol -> to indicate "calls," goes like this: 0. you see your problem on index.php 1. index.php -> includes/column_left.php 2. includes/column_left.php -> includes/boxes/categories.php 3. includes/categories.php -> includes/classes/boxes.php steps 1 and 2 are easy to see because if you look in index.php you'll see a line that says "require(FILENAME_COLUMN_LEFT)" or something like that, and likewise in column_left.php. the last step is the opaque one, because it's using the arcane art of object oriented programming, and using what are known as classes. the key bit of code, if you read includes/categories.php, is where is says something like "new infoBox" or "new infoBoxContents". that is where it is calling the class which is defined in includes/classes/boxes.php so post your code for includes/classes/boxes.php, and we'll sort it out. cheers, rj
Ackis Posted April 18, 2007 Author Posted April 18, 2007 I FOUND IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :lol: FINALLY!! In catalog/includes/sts_templates/full/boxes/infobox.php.html There it was the "little thing" that have made me search for more than 24 hours!!!!!!! Thank you for all your help!!! Best regards Jessica Jessica Fuchs
rrrhythm Posted April 18, 2007 Posted April 18, 2007 HERE IS MY CODE..... jessica- glad you found it. i was just composing a post telling you where to look next when you found it yourself. congrats. hey, this gets me thinking that there is an even easier way to sort this sort of thing out, if you are using a Mac, or have access to a unix machine. on a mac or unix machine you can easily search for text among every file in an entire directory and all sub-directories. in that case you could have done a search for "bgcolor=whatever the color was" which would immediately tell you were to find the code. this has saved me a lot of frustration in the past. i've posted before on how to search multiple files on mac/unix, so you search my name in the forums to see how to do it. cheers, rj
Recommended Posts
Archived
This topic is now archived and is closed to further replies.