Hey so I LOVE this mod and have used it successfully before ... but my client has purchased a Zen template and I cannot for the life of me figure out where to put the code in tpl_header.php
I'm posting that template's tpl_header.php -- but am not sure it's as simple as that -- hoping that maybe possibly someone could please maybe possibly
help me figure this out?
PHP Code:
<?php
/**
* Common Template - tpl_header.php
*
* this file can be copied to /templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* make a directory /templates/my_template/privacy<br />
* copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
* to override the global settings and turn off the footer un-comment the following line:<br />
* <br />
* $flag_disable_header = true;<br />
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
*/
?>
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>
<div id="tail-left"></div>
<div class="main_t">
<div class="header_t">
<div class="row1">
<div class="col1">
<div class="indent">
<table>
<tr>
<td style="vertical-align:middle; height:65px;">
<?php # LANGUAGE START ?>
<?php
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
$lng = new language;
}
reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
echo '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . zen_image(DIR_WS_LANGUAGES.$value['directory'].'/images/'.$value['image'], $value['name'], '', '', ' style="vertical-align:middle;"') . '</a>';
}
?>
<?php # LANGUAGE END ?>
</td></tr></table>
</div>
</div>
<div class="col2">
<?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '23');?><br />
<?php echo zen_draw_form('currencies', zen_href_link(basename(ereg_replace('.php','', $PHP_SELF)), '', $request_type, false), 'get')?>
<?php
if (isset($currencies) && is_object($currencies)) {
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($_GET);
while (list($key, $value) = each($_GET)) {
if ( ($key != 'currency') && ($key != zen_session_name()) && ($key != 'x') && ($key != 'y') ) {
$hidden_get_variables .= zen_draw_hidden_field($key, $value);
}
}
}
?>
<?php echo zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'class="select" onchange="this.form.submit();"') . $hidden_get_variables . zen_hide_session_id()?>
</form>
</div>
<div class="col13"><?php echo zen_draw_separator($image = 'pixel_trans.gif', '1', '24');?><br />
<?php
if ($_SESSION['cart']->count_contents() == 1) {
$items = $_SESSION['cart']->count_contents() . ' item';
} else {
$items = $_SESSION['cart']->count_contents() . ' items';
}
?>
<b>Now in your cart: <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL');?>"><?php echo $items;?></a></b><br />
</div>
<div class="clear"></div>
</div>
<div class="row2">
<div class="indent">
<table style="width:auto;" align="left">
<tr>
<td><a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.jpg'); ?></a><br />
</td>
<td>
<!-- bof BANNERS GROUPSET 2 -->
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!-- eof BANNERS GROUPSET 2 -->
</td>
</tr>
</table>
</div>
</div>
</div>
<div class="menu_t menu">
<div class="indent">
<?php #HEADER START ?>
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<?php #HEADER END ?>
<div class="clear"></div>
</div>
</div>
<div class="content_t">
<div class="inner">
<div class="content_display">
<div class="in1">
<div class="in2">
<div class="in3">
<div class="in4">
<div class="in5">
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<?php } ?>
Bookmarks