Guest Posted March 14, 2006 Posted March 14, 2006 hi i would like to be able to switch between two headers from within the header how can i do this i have two header templates that is controled by the visitor so they may switch the menu on or off within the header the problem is that i have made the switch to change between two index pages, and by doing this way the menu changes back to the default index when clicking on a categorie. what i need is a statment within my index that will enable me to switch between two headers and will remember the switch on all pages. any help would be much appreciated Kind regard steven
Guest Posted March 14, 2006 Posted March 14, 2006 hi i would like to be able to switch between two headers from within the header how can i do this i have two header templates that is controled by the visitor so they may switch the menu on or off within the header the problem is that i have made the switch to change between two index pages, and by doing this way the menu changes back to the default index when clicking on a categorie. what i need is a statment within my index that will enable me to switch between two headers and will remember the switch on all pages. any help would be much appreciated Kind regard steven Anyone know how
Guest Posted March 14, 2006 Posted March 14, 2006 I think i know how i can get it to switch between two headers the language box has the code for this but i am not sure how to change the code so would value a little help from a master here is the code below <?php /* $Id: languages.php,v 1.15 2003/06/09 22:10:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <!-- languages //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_LANGUAGES); new infoBoxHeading($info_box_contents, false, false); if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> '; } $info_box_contents = array(); $info_box_contents[] = array('align' => 'center', 'text' => $languages_string); new infoBox($info_box_contents); ?> </td> </tr> <!-- languages_eof //--> need to change the three languages to headeron and headeroff but not sure how to implament any help is much appreciated kind regards steven hi i would like to be able to switch between two headers from within the header how can i do this i have two header templates that is controled by the visitor so they may switch the menu on or off within the header the problem is that i have made the switch to change between two index pages, and by doing this way the menu changes back to the default index when clicking on a categorie. what i need is a statment within my index that will enable me to switch between two headers and will remember the switch on all pages. any help would be much appreciated Kind regard steven
Recommended Posts
Archived
This topic is now archived and is closed to further replies.