Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Admin setting for $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.

  3. #3
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Admin setting for $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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Admin setting for $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:
    Code:
    // 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:
    Code:
      $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.

  5. #5
    Join Date
    Sep 2006
    Posts
    28
    Plugin Contributions
    0

    Default Re: Admin setting for $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.

  6. #6
    Join Date
    Aug 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: Admin setting for $flag_disable_header

    Quote Originally Posted by DrByte View Post
    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:
    Code:
    // 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:
    Code:
      $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.

 

 

Similar Threads

  1. how did you hear about us - is it working? how to use?
    By cowspot in forum All Other Contributions/Addons
    Replies: 14
    Last Post: 13 Aug 2010, 12:11 PM
  2. How can I use Multiple mods that use same files?
    By sfklaas in forum General Questions
    Replies: 1
    Last Post: 8 May 2009, 10:27 PM
  3. how do I use as a catalog
    By katket in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 9 Aug 2008, 08:34 PM
  4. Replies: 5
    Last Post: 20 Nov 2006, 05:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg