New Zenner
- Join Date:
- Nov 2005
- Posts:
- 39
- Plugin Contributions:
- 0
login sidebox
Hi,
I installed the login sidebox. The only diffrence I would like to see, is that that sidebox stays available even when loged in. So I inserted some new code.
So the login_box.php file looks like this:
if ((!$_SESSION['customer_id'] && $_GET['main_page'] != FILENAME_LOGIN && $_GET['main_page'] != FILENAME_CREATE_ACCOUNT && $_GET['main_page'] != FILENAME_PASSWORD_FORGOTTEN)) {
$login_box[] = TEXT_LOGIN_BOX;
require($template->get_template_dir('tpl_login_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_login_box.php');
$title = BOX_HEADING_LOGIN_BOX;
$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);
}
else {
$login_box[] = TEXT_LOGIN_BOX;
require($template->get_template_dir('tpl_loged_in.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_loged_in.php');
$title = BOX_HEADING_LOGIN_BOX;
$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);
}
The tpl_loged_in.php page only contains the links to log out and to go to My account. But the problem is, when I'm not logged in and I want to create an account, the sidebox changes into the tpl_loged_in.php layout.
So I must be missing something. Anyone who can help me out?