If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Customization from the Admin / Button bar on top bar turn off till login

Button bar on top bar turn off till login

Locked

Started by cshart on 11 Feb 2007, 4:02 AM · Views: 1,655

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
11 Feb 2007, 4:02 AM
#1
cshart avatar

cshart

Zen Follower

Join Date:
Mar 2005
Posts:
370
Plugin Contributions:
0

Post #1 by cshart

I can turn off the side boxes in the admin until the person has logged in but the top button bar??? Is there a way to do that. The one I am talking about is the category bar that goes horizontally under the logo banner.

Is there a way to do that until the person is logged it.

11 Feb 2007, 6:20 AM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Post #2 by bunyip

In your custom copy of tpl_header.php, find this section of code:

<!--bof-optional categories tabs navigation display-->
<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
<!--eof-optional categories tabs navigation display-->
``` and make it conditional on the customer being logged in (in which case $_SESSION['customer_id'] would be set)```
[CODE]<!--bof-optional categories tabs navigation display-->
<?php 
    if ($_SESSION['customer_id']) { ?>
      require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); 
    } 
?>
<!--eof-optional categories tabs navigation display-->
``` \[/CODE]

Neville
An assumption is what you arrive at when you get tired of thinking...