Thanks Ajeh. It worked perfectly!![]()
Thanks Ajeh. It worked perfectly!![]()
You are most welcome ... thanks for the update that this is working for you ...![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Help! Help! Please...
I have added a sidebox to my site that I want to remain throughout my site. I don't understand the php enough to know what I have to add/remove.
Thank you.
Code:if (($_GET['main_page'] != FILENAME_LOGIN && $_GET['main_page'] != FILENAME_CREATE_ACCOUNT && $_GET['main_page'] != FILENAME_PASSWORD_FORGOTTEN)) { $login_box[] = TEXT_LOGIN_BOX; if ((!$_SESSION['customer_id'])) { $title = BOX_HEADING_LOGIN_BOX; } else { $title = BOX_HEADING_LOGGEDIN_BOX; } require($template->get_template_dir('tpl_login_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_login_box.php'); $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); } ?>
That code will show the box on every page except for the login/create account/my account pages (where it makes no sense). What else did you want? Does your design require that box to stay even on those pages?
By the way, there is a bit of code there that is for an old version of Zen Cart, and is useless for current versions. You can delete these lines and make the file a bit cleaner:This line IS needed:PHP Code:$left_corner = false;
$right_corner = false;
$right_arrow = false;
PHP Code:$title_link = false;
I want this box to appear on all pages, even the login/registration page. I know it doesn't make sense...but it makes more sense to me to just have it fixed throughout the page than to waste anymore time on the layout issues.
Thanks for the heads up on the dead coding. I'll adjust it. =)
Seems a bit odd to have a layout that is so picky that one sidebox more or less in a sidebar would throw it off, but whatever suits you...
To remove the conditional, comment out this lineand its closing }PHP Code://if (($_GET['main_page'] != FILENAME_LOGIN && $_GET['main_page'] != FILENAME_CREATE_ACCOUNT && $_GET['main_page'] != FILENAME_PASSWORD_FORGOTTEN)) {
PHP Code:require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
//}
?>
It sounds like from the other thread where you're asking this same question that it is actually a header box (which uses sidebox tpl coding). That makes sense that you would want to keep it...
That didn't work...
Do you think you can make the adjustment to the code I posted and then repost? Then I can copy and paste it?
Thank you.
The sidebox in the header goes wacky every time the page is viewed in IE. I've heard that there have been positioning issues with IE before. That seems to be the case.
So what I have done is shifted the entire right column up to the top of my page so that my "header box" or "sidebox" is fixed within the column. Now it doesn't move around when the page is viewed in different browsers.
Soooo...that is why I want it to show at all times. =) When it disappears on my login page, my entire right colum shifts up since there is an open space where the login box should be.
Thank you for your help.![]()