Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

parse error


Recommended Posts

i am trying to remove the 'infobox/corner_left.gif' and 'infobox/corner_right_left.gif' from the scripting below which can be found in includes/classes/boxes.php file. I want to do this so i get a square header in the "whats new box" on the index page.


When i remove the lines shown in red below i get a parse error! can somebody tell me how to do this!



class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';


$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),

array('params' => 'height="14" class="infoBoxHeading" width="100%"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));


$this->tableBox($info_box_contents, true);



Link to comment
Share on other sites

1, You're editing the wrong infobox class, it's infoboxheading you want.


2, Your error is because your changes mean that there are opening brackets but no closing brackets.


3, If you edit the infobox class, this will affect all infoboxes (so don't, probably)


4, If you just want square corners, set the following line in what's new.php


new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_PRODUCTS_NEW));


about line 25!!!!


5, if you want rid of the images all together(is that one word?? think so), then you should add another option to the If, Else's in the infoboxheader class rather than remove the functionality.


I'd go for option 4! If the colour of the images is the problem then use an image editor to change it.


Sorry for the listed and terse reply, best I can do at this time of night.



Light, in the absence of eyes, illuminates nothing.

Link to comment
Share on other sites

i done it! woohoo!





is there anywhere on your forum that you can just go to all the forums you have written, like a history.



Link to comment
Share on other sites


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

  • Create New...