Guest Posted June 2, 2008 Share Posted June 2, 2008 I would like to insert a new box in the right column to put some standard images. Is there a contribution that does this or can anyone explain to me the steps? Thanks, Mike Link to comment Share on other sites More sharing options...
spooks Posted June 2, 2008 Share Posted June 2, 2008 Read the Docs http://www.oscommerce.info/kb/osCommerce Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Guest Posted June 2, 2008 Share Posted June 2, 2008 Thats my fault, I kind of worded that wrong. I know how to add the box, but I'm having trouble with editing the contents of the box the way I want. The box is serving as an Affiliates box and basically I just want it to contain a couple of images that have links with them. I believe I should be editing the includes/boxes/affiliates.php page correct? Can someone help me with what the structure of the code in the document should be? I'd like to use HTML for inserting the images with the links. Thanks, Mike Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted June 2, 2008 Share Posted June 2, 2008 Try www.w3schools.com html links is what you are after Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
Guest Posted June 2, 2008 Share Posted June 2, 2008 i know the html code too.. below is how i have it set up and im getting an error.. what is wrong here? <?php /* $Id: affiliates.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- affiliates //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_AFFILIATES); new infoBoxHeading($info_box_contents, false, false, tep_href_link(FILENAME_AFFILIATES)); <my html is here> </td> </tr> new infoBox($info_box_contents); ?> <!-- afilliates_eof //--> Link to comment Share on other sites More sharing options...
spooks Posted June 2, 2008 Share Posted June 2, 2008 Here's something for you to work with, content needs to go in the array. <?php /* Image Box */ ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_SEARCH); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME) . '">' . tep_image(DIR_WS_IMAGES . 'mypic.gif', '', 'width', 'height') . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.