bgrcmodels Posted November 20, 2006 Posted November 20, 2006 Hi, here is the link to my site: http://www.bgrcmodels.com As you can see, on the left of the page, in the Catalog section the text is scrunched up so that it displays on two lines. I would like to increase the width of the catalog box so that the text of each catagory will display on one line. Please see this website to show you what i mean. http://www.amainhobbies.com Any help would be very much appriciated. Many Thanks Ben
usernamenone Posted November 20, 2006 Posted November 20, 2006 http://www.oscommerce.com/forums/index.php?sho...view=getnewpost
usernamenone Posted November 20, 2006 Posted November 20, 2006 oops twice posted and deleted the second
bgrcmodels Posted November 20, 2006 Author Posted November 20, 2006 oops twice posted and deleted the second That does not help !!!
bgrcmodels Posted November 21, 2006 Author Posted November 21, 2006 can anyone else please advise. Many Thanks Ben
♥Monika in Germany Posted November 21, 2006 Posted November 21, 2006 in application_top.php find the parameter BOX_WIDTH and adjust to a value fitting your site. your site comes up as a German mess for me, BTW, so make sure your extra languages are removed in admin if you do not use them. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
usernamenone Posted November 21, 2006 Posted November 21, 2006 INSTRUCTIONS 1. Open catalog/includes/application_top.php 2. Find the line (around line 47) that reads // customization for the design layout define('BOX_WIDTH', 145); // how wide the boxes should be in pixels (default: 125) 3. after this, add the following lines .... // customization for the design layout left column define('BOX_WIDTH_LEFT', 165); // how wide the boxes should be in pixels (default: 125) // customization for the design layout right column define('BOX_WIDTH_RIGHT', 125); // how wide the boxes should be in pixels (default: 125) 4. (set your own width preferences (I have used 165 pixels for the left column and 125 pixels for the right) Save file 5. Now open the second file to edit: catalog/default.php 6. Find the first line to change at (around line 51) that reads <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> 7. REPLACE this line, with the following line .... <td width="<?php echo BOX_WIDTH_LEFT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="2"> 8. Find the second line to change at (around line 325) that reads <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> 9.REPLACE this line with the following line.... <td width="<?php echo BOX_WIDTH_RIGHT; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="2"> 10. save the file and upload your 3 changed files to your active installation.
♥Monika in Germany Posted November 21, 2006 Posted November 21, 2006 basically a correct approach, only that 1) catalog/default.php has been renamed to index.php a few years ago 2) this change has to be made in ALL root files, or it will show messed up width in the other files. 3) I'm not sure of the OP really needs the different widths approach ... did not sound like it. If not, the post above would be the easy out solution. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
bgrcmodels Posted November 21, 2006 Author Posted November 21, 2006 Fantastic, I followed the advise given and it has corrected the problem. Many Thanks Ben
bgrcmodels Posted November 29, 2006 Author Posted November 29, 2006 Hello, I would like to say that this has corrected the initial problem. I can confirm that the width of my Home Page is correct. After doing a search, or i log in, or visit any other page on my website, the width of the 2 side colums are back to the orgiginal width. I would like to set the width of the colum left and right to be the same throughout my webite. Any help would be good. Many Thanks Ben
♥Monika in Germany Posted November 29, 2006 Posted November 29, 2006 basically a correct approach, only that 1) catalog/default.php has been renamed to index.php a few years ago 2) this change has to be made in ALL root files, or it will show messed up width in the other files. 3) I'm not sure of the OP really needs the different widths approach ... did not sound like it. If not, the post above would be the easy out solution. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
bgrcmodels Posted November 29, 2006 Author Posted November 29, 2006 Ok, Many Thanks for that i will try to edit them :)
bgrcmodels Posted November 29, 2006 Author Posted November 29, 2006 Ok, I have managed to do that but i have found a problem with one of my pages: http://www.bgrcmodels.com/catalog/setupsheets.php Any Idea's ??
♥Monika in Germany Posted November 29, 2006 Posted November 29, 2006 hint one (unrelated): remove the unused languages.... your link gave me this: Warning: main(includes/languages/german/setupsheets.php): failed to open stream: No such file or directory in /home/bend6333/public_html/catalog/setupsheets.php on line 15 Warning: main(includes/languages/german/setupsheets.php): failed to open stream: No such file or directory in /home/bend6333/public_html/catalog/setupsheets.php on line 15 Fatal error: main(): Failed opening required 'includes/languages/german/setupsheets.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bend6333/public_html/catalog/setupsheets.php on line 15 :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
♥Monika in Germany Posted November 29, 2006 Posted November 29, 2006 hint two: this page has two closings of table and td with no tr in between </table></td> </table></td> <!-- body_text_eof //--> :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
bgrcmodels Posted November 29, 2006 Author Posted November 29, 2006 hint one (unrelated): remove the unused languages.... your link gave me this: Warning: main(includes/languages/german/setupsheets.php): failed to open stream: No such file or directory in /home/bend6333/public_html/catalog/setupsheets.php on line 15 Warning: main(includes/languages/german/setupsheets.php): failed to open stream: No such file or directory in /home/bend6333/public_html/catalog/setupsheets.php on line 15 Fatal error: main(): Failed opening required 'includes/languages/german/setupsheets.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bend6333/public_html/catalog/setupsheets.php on line 15 Hellp Monika, How would i go about removing the othe Languages, I only want the ENGLISH language installed then really. many thanks ben
bgrcmodels Posted November 29, 2006 Author Posted November 29, 2006 hint two: this page has two closings of table and td with no tr in between </table></td> </table></td> <!-- body_text_eof //--> That Fixed it, Removing the above code ! :)
♥Monika in Germany Posted November 29, 2006 Posted November 29, 2006 well I hope you only removed the double row (one set) you can get rid of the unused languages in your admin panel, localization box, under languages :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
bgrcmodels Posted November 29, 2006 Author Posted November 29, 2006 well I hope you only removed the double row (one set) you can get rid of the unused languages in your admin panel, localization box, under languages LOL, Sorry Yes, i removed the Second Set as below: </table></td> Oh and thats, languages removed
Recommended Posts
Archived
This topic is now archived and is closed to further replies.