Zen Cart Logo
Forums / Basic Configuration / How do I use $flag_disable_header

How do I use $flag_disable_header

Locked

Views: 3,563

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
8 Oct 2006, 12:11 AM
#1
akoza avatar

akoza

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

How do I use $flag_disable_header

In the includes/templates/TEMPLATE/common/tpl_header.php file there is a check of the $flag_disable_header variable to determine whether to display the header navigation items.

Where among the Admin menus do I set the value for this variable to prevent the display of the header navigation items?

Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a person does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses their intelligence.

8 Oct 2006, 2:37 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How do I use $flag_disable_header

Which pages do you wish to disable the header from appearing on?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Oct 2006, 8:46 AM
#3
akoza avatar

akoza

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: How do I use $flag_disable_header

All pages.

Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a person does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses their intelligence.

8 Oct 2006, 8:57 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How do I use $flag_disable_header

There is no admin switch for that.

And, since it's a templating change you want to make site-wide, it really belongs in the template anyway.

edit /includes/templates/YOURTEMPLATE/common/tpl_main_page.php
you see this:```
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}

On a new line above that, add this:```
  $flag_disable_header = true;

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Oct 2006, 1:15 PM
#5
akoza avatar

akoza

New Zenner

Join Date:
Sep 2006
Posts:
28
Plugin Contributions:
0

Re: How do I use $flag_disable_header

Thank you DrByte, that was perfect. ;)

Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a person does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses their intelligence.

10 Aug 2008, 7:39 AM
#6
michaelnessim avatar

michaelnessim

New Zenner

Join Date:
Aug 2008
Posts:
1
Plugin Contributions:
0

Re: How do I use $flag_disable_header

DrByte:

There is no admin switch for that.

And, since it's a templating change you want to make site-wide, it really belongs in the template anyway.

edit /includes/templates/YOURTEMPLATE/common/tpl_main_page.php
you see this:```
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}

> On a new line above that, add this:```
  $flag_disable_header = true;

Just wanted to say thank you very much i have been searching for this for a looooong time, and i finally did it. You rock.