Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Box border


theherbman

Recommended Posts

Right I have removed/commented out all the boxes on the righthand side of the catalogue/index leaving only the languages box. Looks a bit funny there on its own with a heading and border. Is it possible to remove the heading and border from this one box without changing the boxes on the left hand side thus leaving just the flags? I can //comment out the heading name. The background colour and box colour is the same so thatis no problem this was done via style sheet, butI cannot find a way of getting rid of the rest.

 

Regards Mel

Link to comment
Share on other sites

Right I have removed/commented out all the boxes on the righthand side of the catalogue/index leaving only the languages box. Looks a bit funny there on its own with a heading and border. Is it possible to remove the heading and border from this one box without changing the boxes on the left hand side thus leaving just the flags? I can //comment out the heading name. The background colour and box colour is the same so thatis no problem this was done via style sheet, butI cannot find a way of getting rid of the rest.

 

Regards Mel

Make a file called languages2.php and put the code below in it:

 

<?php
/*
 $Id: languages.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- languages //-->
         <tr>
           <td>
<?php

/*
 $info_box_contents = array();
 $info_box_contents[] = array('text' => BOX_HEADING_LANGUAGES);

 new infoBoxHeading($info_box_contents, false, false);
*/

 if (!isset($lng) || (isset($lng) && !is_object($lng))) {
   include(DIR_WS_CLASSES . 'language.php');
   $lng = new language;
 }

 $languages_string = '';
 reset($lng->catalog_languages);
 while (list($key, $value) = each($lng->catalog_languages)) {
   $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
 }

/*
 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'center',
                              'text' => $languages_string);

 new infoBox($info_box_contents);
*/

echo '<tr><td align="center"';

echo $languages_string;

echo '</td></tr>';

?>
           </td>
         </tr>
<!-- languages_eof //-->

Then put the languages2.php file in the /catalog/includes/boxes folder on your site.

 

Then in your /catalog/includes/column_right.php change this code:

 

    include(DIR_WS_BOXES . 'languages.php');

to

 

    include(DIR_WS_BOXES . 'languages2.php');

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Thanks Germ.

 

One other thing. I've tried to comment out the right hand columns by /* at the bottom of Cat index.

 

<!-- body_text_eof //-->

/* <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>*/

 

but all that happens is /* */ comes up on the index page ie the catalogue first page. So what am I doing wrong?

 

Regards Mel

Link to comment
Share on other sites

Thanks Germ.

 

One other thing. I've tried to comment out the right hand columns by /* at the bottom of Cat index.

 

<!-- body_text_eof //-->

/* <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->

</table></td>*/

 

but all that happens is /* */ comes up on the index page ie the catalogue first page. So what am I doing wrong?

 

Regards Mel

Use <!-- and //--> instead to comment out HTML coding.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...