tanyamaria Posted June 16, 2005 Posted June 16, 2005 Hi there, Can anyone please tell me if this is correct - In ../catalog/includes/column_left.php I added this (im adding a links box) require(DIR_WS_BOXES . 'links.php'); then in ../catalog/includes/languages/english.php i added this - // links box text in includes/boxes/links.php define('BOX_HEADING_LINKS', 'Links'); I created links.php with the following - <?php /* $Id: currencies.php,v 1.16 2003/02/12 20:27:31 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if (isset($currencies) && is_object($currencies)) { ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LINKS); new infoBoxHeading($info_box_contents, false, false); reset($currencies->currencies); $currencies_array = array(); while (list($key, $value) = each($currencies->currencies)) { $currencies_array[] = array('id' => $key, 'text' => $value['title']); } $hidden_get_variables = ''; reset($HTTP_GET_VARS); while (list($key, $value) = each($HTTP_GET_VARS)) { if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) { $hidden_get_variables .= tep_draw_hidden_field($key, $value); } } $info_box_contents = array(); //$info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'), // 'align' => 'center', // 'text' => tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id()); $info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'), 'right' => 'center', 'text' => '<a href="http://www.netfirms.com" target="_blank">Netfirms</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- currencies_eof //--> <?php } ?> And added it to ../catalog/includes/boxes/ But it hasnt worked at all - now my page is all crappy. Any help please !!! Thanks Tanya
boxtel Posted June 16, 2005 Posted June 16, 2005 Hi there, Can anyone please tell me if this is correct - In ../catalog/includes/column_left.php I added this (im adding a links box) require(DIR_WS_BOXES . 'links.php'); then in ../catalog/includes/languages/english.php i added this - // links box text in includes/boxes/links.php define('BOX_HEADING_LINKS', 'Links'); I created links.php with the following - <?php /* $Id: currencies.php,v 1.16 2003/02/12 20:27:31 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ if (isset($currencies) && is_object($currencies)) { ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LINKS); new infoBoxHeading($info_box_contents, false, false); reset($currencies->currencies); $currencies_array = array(); while (list($key, $value) = each($currencies->currencies)) { $currencies_array[] = array('id' => $key, 'text' => $value['title']); } $hidden_get_variables = ''; reset($HTTP_GET_VARS); while (list($key, $value) = each($HTTP_GET_VARS)) { if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) { $hidden_get_variables .= tep_draw_hidden_field($key, $value); } } $info_box_contents = array(); //$info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'), // 'align' => 'center', // 'text' => tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id()); $info_box_contents[] = array('form' => tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get'), 'right' => 'center', 'text' => '<a href="http://www.netfirms.com" target="_blank">Netfirms</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- currencies_eof //--> <?php } ?> And added it to ../catalog/includes/boxes/ But it hasnt worked at all - now my page is all crappy. Any help please !!! Thanks Tanya <{POST_SNAPBACK}> I believe this is your currency box. Treasurer MFC
tanyamaria Posted June 16, 2005 Author Posted June 16, 2005 Naw I want to create a suggestion box (have changed the link to suggestion now) where the box just says - If you need to suggest a product click the button below. And will have a button. When clicked it will go to a page where I will have a form to fill out. I hope this makes sense.
boxtel Posted June 16, 2005 Posted June 16, 2005 I believe this is your currency box. <{POST_SNAPBACK}> try this : <?php /* $Id: currencies.php,v 1.16 2003/02/12 20:27:31 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright ? 2003 osCommerce Released under the GNU General Public License */ ?> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LINKS); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => '<a href="http://www.netfirms.com" target="_blank">Netfirms</a>'); new infoBox($info_box_contents); ?> </td> </tr> Treasurer MFC
tanyamaria Posted June 16, 2005 Author Posted June 16, 2005 :thumbsup: Thanks alot boxtel... it worked.. Thanks for taking time to sort this out for me.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.