Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problems of adding a box in column left


susan123

Recommended Posts

Posted

I wanted add a box in my column left, i did it according every step of

http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49

but it doesnt work

 

 

The notice after i made some changes are :

 

Parse error: parse error, unexpected ';', expecting ')'

in /hsphere/local/home/njoi1shr/linguist.artall21.com/catalog/includes/boxes/information.php on line 28

 

The following is my information.php.

 

?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">'

. BOX_INFORMATION_CONTACT . '</a><br>' .

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

 

Anybody can help? Thanks

Posted
I wanted add a box in my column left, i did it according every step of

http://www.oscommerce.info/kb/osCommerce/C...g_Area/Boxes/49

but it doesnt work

The notice after i made some changes are :

 

Parse error: parse error, unexpected ';', expecting ')'

in /hsphere/local/home/njoi1shr/linguist.artall21.com/catalog/includes/boxes/information.php on line 28

 

The following is my information.php.

 

?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">'

. BOX_INFORMATION_CONTACT . '</a><br>' .

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

Anybody can help? Thanks

?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' ;

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

Posted
Are u answering my question? I just can see that you copied my question and posted here.

I answered your question, I did not copy your question.

Look at

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' ;

and compare it to yours

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' ,

 

do you notice the ; at the end?

Posted
I answered your question, I did not copy your question.

Look at

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' ;

and compare it to yours

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' ,

 

do you notice the ; at the end?

 

Doesn't it need to be:

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' );

 

(Added closing ) for array).

Posted
Doesn't it need to be:

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' );

 

(Added closing ) for array).

I thought tht is what I said in my two replies, but ......................

Posted
I thought tht is what I said in my two replies, but ......................

 

Thanks!!!!!!!!!!!!!!!!! Sorry, i was late for reply . you are really very kind.

Posted
Doesn't it need to be:

 

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' );

 

(Added closing ) for array).

 

Thanks!!!

Archived

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

×
×
  • Create New...