Here is the link to my original post. I am having a little difficultly with this. http://www.zen-cart.com/forum/showthread.php?t=69300
From what I have been told, the side box .php files for this mod are from an older ver of ZC. Is there a simple way to make the WP side boxes only visible after someone has logged in? It has been suggested that I rewrite the code for the sideboxes. I am not a programmer and my boxes work fine other than being there all the time.
This php file is from the Wordpress on Zencart Mod.
<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 The zen-cart developers |
// | |
// | [\*\*\[U\]\[COLOR=#0000ff\]http://www.zen-cart.com/index.php\[/COLOR\]\[/U\]\*\*](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: |
// | [\*\*\[U\]\[COLOR=#0000ff\]http://www.zen-cart.com/license/2\_0.txt\[/COLOR\]\[/U\]\*\*](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_TEM PLATE, $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;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
?>
Is there some code simular to:
// test if box should display
if (!$_SESSION['customer_id']) {
$show_featured= false;
} else {
$show_featured= true;
}
That would allow the same results? I have looked at other sideboxes and I can see the differences in the styles that the code were written in. However, they are very different in the way the work. At least to me.