Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

right column suddenly very wide ?! anybody know where to look ?


Geejee

Recommended Posts

I have the boxes on the right column suddenly very wide, maybe 1000 pixels or so, no idea why, does anyone have an idea ? Thanks in advance !!!

 

 

i tried this but didn't help:

 

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)

 

 

6. (set your own width preferences (I have used 165 pixels for the left column and 125 pixels for the right) Save file

 

7. Now open the second file to edit: catalog/index.php

8. 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">

 

9. 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">

 

10. 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">

 

11.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">

 

5. save the file and upload your 2 changed files to your active installation.

Link to comment
Share on other sites

Hi, I am not sure that there is something wrong with your coding as I am not very good with such things, but I was wondering if you might have changed your image settings in admin to a larger size. I know they can effect how large your columns display.

 

Just a thought as you did not mention your site so we can not see what you are describing.

Link to comment
Share on other sites

installed mods:

 

NL_Taalpakket_v1.4.8 (dutch language)

 

Remove Default Images

 

tpgpost 2.4

 

zonesworld_v2

 

Infobox Skin Manager 2

 

buckaroo_v2

 

I hope you are not offended by the nature of the shop, it is a erotic toys shop:

 

http://www.redrosesexshop.com/catalog/

 

:blush:

 

 

Thanks a lot for wanting to help !

Link to comment
Share on other sites

you have an extra table declaration at the start of your left column - without a closing tag. Looks like a coding error - possibly in the skins module ?

Link to comment
Share on other sites

You should replace all the right hand side boxes with the originals, then one by one replace them with you modified boxes until you find the one that is causing your issues. When you find the box check the code to make sure there are no errors.

Link to comment
Share on other sites

Found it ! (with the help of a fellow traveler) it must be a mistake that came with the mod infobox skins. it was the file catalog/includes/boxes_content/best_sellers.php

 

it said somewhere

 

$bestsellers_list = '<table border="0" width="1000" cellspacing="0" cellpadding="1" align="center">';

while ($best_sellers = tep_db_fetch_array($best_sellers_query)) {

 

and i changed it to

 

$bestsellers_list = '<table border="0" width="100%" cellspacing="0" cellpadding="1" align="center">';

while ($best_sellers = tep_db_fetch_array($best_sellers_query)) {

 

the error was only getting active after there are some bestsellers to list.

 

Hope someone else is happy finding this info at some point...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...