motex Posted January 18, 2010 Posted January 18, 2010 Hello all. Trying to get my website 100%. Im having a big problem with the categories, the skin I bought did not originally support it on the left. I have tried changing things in the stylesheet.css includes/column_left.php I just dont know where the problem is. Can someone guide me a bit?? http://www.houseofnaughty.com On the left side the category box has wayyyy too much space, squishing my main item display... ugh...
rikpotts Posted January 18, 2010 Posted January 18, 2010 I had this problem and tbh honest, never got it sorted. I just had to make sure my text never exceeded the 125px I set the box width to. The same goes for my languages/english/index.php when I added an image. If the image is bigger than the space between the columns my left column ends up on my background. I hope someone can fix this for you because ive had to limit my category names. btw, a big customer "put off" is spelling mistakes. You have a very obvious one on your frontpage.
♥mdtaylorlrim Posted January 19, 2010 Posted January 19, 2010 Lemme see... in index.php about line 50 is this.. <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> This says that a variable named BOX_WIDTH determines the width of the column. So, the value must be called in something from above. Scanning above there is only a couple of things... look in application_top.php around line 60 and you should see this: // customization for the design layout define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125) Try changing the value to suit your site, and check the other pages for continuity. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
♥mdtaylorlrim Posted January 19, 2010 Posted January 19, 2010 btw, a big customer "put off" is spelling mistakes. You have a very obvious one on your frontpage. I couldn't see the spelling error for all the distractions.... Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
motex Posted January 19, 2010 Author Posted January 19, 2010 Ah yes, categorie. Lol, the skin came like that. I will change that when I get to doing the GFX part. -------------------- mdtaylorlrim, I changed the box_width to 50, nothing changed, then 10....still looks the same. Hmmm going to scan the files a bit today again. Is it possible that categories.php has some sort of structured look to it? Possibly defining width or even the bullets? It needs to be aligned left, and not breaking every 4th category. Especially the huge amount of space it is hogging up. Ive tried many things, this really pisses me off about custom skins without enough commenting.
♥mdtaylorlrim Posted January 19, 2010 Posted January 19, 2010 Is it possible that categories.php has some sort of structured look to it? Possibly defining width or even the bullets? It needs to be aligned left, and not breaking every 4th category. Especially the huge amount of space it is hogging up. With so many nested tables it it sometimes hard to find. But, the categories.php is a table, that should be using a width of 100%, but is inside another table. THAT table has a table data width on it and should be what you were changing at about line 60 of the application_top.php. But, did line 50 or so of the index.php look like the code I referred to? Do you have the line: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> at about that spot? Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
motex Posted January 19, 2010 Author Posted January 19, 2010 With so many nested tables it it sometimes hard to find. But, the categories.php is a table, that should be using a width of 100%, but is inside another table. THAT table has a table data width on it and should be what you were changing at about line 60 of the application_top.php. But, did line 50 or so of the index.php look like the code I referred to? Do you have the line: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> at about that spot? Ok, got notepad++ to help me out with search. Here is a search dump of box_width findings... Search "box_width" (4 hits in 1 files) C:\Users\NoPack Media\AppData\Local\Temp\index.php (4 hits) Line 51: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> Line 51: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> Line 325: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> Line 325: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> Search "width" (29 hits in 1 files) From lines 48-56 inside index.php I found this, a bit different then what you posted. cellspacing cellpadding is 0 instead of 3. <!-- body //--> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //-->
♥mdtaylorlrim Posted January 19, 2010 Posted January 19, 2010 Just to be sure you are looking for the right thing you can verify that any code change will actually help. You can temporarily change this code: <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> to this: <td width="50<?php // echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0"> If you don't see a big change in the page then we are pecking in the wrong place and you should change the code back. You could also try changing the one code on the same line where it sets the table width.. probably not both at the same time, but see what effect each one has on when changed by itself. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...?
motex Posted January 19, 2010 Author Posted January 19, 2010 Yes, you were right. I changed it to 500 for a noticeable change. hxxp://www.houseofnaughty.com It's at 500 right now. I did also try 10 and it made it very thin, but for some reason it still seems their might be another table needing to be sized. What I mean is, the category list does get smaller, and the website shifts a bit, but then, the 'whats new' box still is the problematic size, still a huge space difference. I want to let you know, that the skin originally had manufacturers.php on the left and it looked fine. No space problems..... So I know categories is sized wrong because it was in the top position above the search line and combo box.....Hope that helps a bit more. Im going to play around see if I can find the table, but will leave it back if not accomplished for you to look.
motex Posted January 19, 2010 Author Posted January 19, 2010 Okay, What I did was, put the skin back to how the body was...showing the manufacturers combo box. Still tinkering, what you showed me almost got it, just still had a huge space in between categories and actual products displaying.....I was trying to find a table maybe but couldnt.
motex Posted January 20, 2010 Author Posted January 20, 2010 I got it fixed thank you! For others who might have this problem in the future, what I did to accidently fix the problem was replace the skins custom categories.php file with oscommerces stock categories.php. This wont work for everyone but, luckily did me. I appreciate you all for helping me out, I wouldnt have stumbled onto this without your help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.