WP Archives sidebox.. only show sidebox to registered members
who are logged into zencart
Copy code below ..create file named wp_archives.php
Place file as follows into
/includes/modules/sideboxes/wp_archives.php
Code:
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 The zen-cart developers |
// | |
// | http://www.zen-cart.com/index.php |
// | |
// | Portions Copyright (c) 2003 osCommerce |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license, |
// | that is bundled with this package in the file LICENSE, and is |
// | available through the world-wide-web at the following url: |
// | http://www.zen-cart.com/license/2_0.txt. |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to |
// | license AT zen-cart DOT com so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
require($template->get_template_dir('tpl_wp_archives.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_wp_archives.php');
$title = BOX_HEADING_WP_ARCHIVES;
$left_corner = false;
$right_corner = false;
$right_arrow = false;
$title_link = false;
//Comment in next line if only registered members can view this sidebox
if ($_SESSION['customer_id'] != '')
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
?>
Works.. I tested 3 minutes ago
Bookmarks