bkblue Posted June 30, 2003 Posted June 30, 2003 info box hi i deleted my info box by mistake asnd created a new one but i am missing the code to state its in the left column can anyone help :oops: support at globat is not helping
xxGeek Posted June 30, 2003 Posted June 30, 2003 not sure what exactly you delited but if you have the box or any other box you made ant want it on the left column just add somthing like this to the column_left.php file require(DIR_WS_BOXES . 'tour_box_name.php'); hope this helps :wink: The more you do, the more you learn
xxGeek Posted June 30, 2003 Posted June 30, 2003 that: tour should be your Sorry :( BTW in case you need a start with the box here is the code of the infobox.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 (c) 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_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<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>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> [/code] The more you do, the more you learn
bkblue Posted June 30, 2003 Author Posted June 30, 2003 THANKS XX GEEK WOULD U KNOW HOW TO ADD ADDITIONAL LINKS IN THE INFO BOX
xxGeek Posted June 30, 2003 Posted June 30, 2003 that depends what kind of links if it's a link to outside of osc or not ? :wink: here is a good tutorial: http://wiki.oscommerce.com/helpHowtoAddLin...inkBoxesOutside The more you do, the more you learn
Guest Posted June 30, 2003 Posted June 30, 2003 heres my code <?php /* $Id: information.php,v 1.1.1.1 2002/11/28 23:22:25 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2001 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_INFORMATION ); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CHURCH_SHARE_PROGRAM, '', 'NONSSL') . '">' . BOX_INFORMATION_CHURCH_SHARE_PROGRAM . '</a><br>' . '<a href="' . tep_href_link(FILENAME_SCHOOL_SHARE_PROGRAM, '', 'NONSSL') . '">' . BOX_INFORMATION_SCHOOL_SHARE_PROGRAM . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS, '', 'NONSSL') . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_TEXT, '' , 'NONSSL') . '">' . BOX_INFORMATION_TEXT . '</a><br>' . '<a href="' . tep_href_link(FILENAME_FAMILY_INFO, '', 'NONSSL') . '">' . BOX_INFORMATION_FAMILY_INFO . '</a><br>' . '<a href="' . tep_href_link(FILENAME_OUTREACH_PAGE, '', 'NONSSL') . '">' . BOX_INFORMATION_OUTREACH_PAGE . '</a><br>' . '<a href="' . tep_href_link(FILENAME_OUR_PRODUCT_INFO, '', 'NONSSL') . '">' . BOX_INFORMATION_OUR_PRODUCT_INFO . '</a><br>' . '<a href="' . tep_href_link(FILENAME_KIDS_FUN, '', 'NONSSL') . '">' . BOX_INFORMATION_KIDS_FUN . '</a><br>' . '<a href="' . tep_href_link(FILENAME_GV_REDEEM, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a>');//ICW ORDER TOTAL CREDIT CLASS/GV new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //-->
Guest Posted July 1, 2003 Posted July 1, 2003 Hi, Read my reply here http://www.oscommerce.com/forums/viewtopic.php?t=49473 - I have detailed how to add new boxes and links as well as new pages. Hope this helps, Taz
Recommended Posts
Archived
This topic is now archived and is closed to further replies.