Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Basic Box Question


tyrant

Recommended Posts

folks... i been trying to follow this guide

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

 

Can anyone explain in numpty terms. how i go about creating a box on the right side called "Join Our Forum" that has in it an IMG button that they can click to take them to the forum?

 

I spent a while trying to edit boxes and stuff... but just keep messing up my site :D

 

Big Kiss for first reply :P :blush:

Link to comment
Share on other sites

Create a new box file

<!-- image_box //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_FORUM);

new infoBoxHeading($info_box_contents, false, false);

$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_FORUM) . '">' . tep_image(DIR_WS_IMAGES . 'your_image_to_display_here.gif') . '</a>' );

new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- image_box_eof //-->

then add it to your catalog/includes/column_right.php so it will appear on the right side of your store. Change the links to your forum file, image and definition strings.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...