
Originally Posted by
Get Em Fast
Oops, already updated! Use this one instead!!
If you want this sidebox to show up only after someone has logged in
change mystery_box.php as follows.
Code:
$show_mystery_box = false;
if ($_SESSION['customer_id']) {
$show_mystery_box = true;
}
if ($show_mystery_box == true) {
require($template->get_template_dir('tpl_mystery_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_mystery_box.php');
// if no active banner in the specified banner group then the box will not show
// uses banners in the defined group $banner_box_group
// if ($banner->RecordCount() > 0) {
$title = 'Mystery Box';
$title_link = false;
require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
}
This triggers the box to show only after login.