Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41
  1. #11
    Join Date
    Jan 2009
    Location
    Los Angeles, CA
    Posts
    69
    Plugin Contributions
    0

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    Wonderful,

    http://www.computerbros.com/index.ph...dvanced_search

    I want to hide my cloud tags. I put the code for cloud tags in sidebox banner-box2.php

    I want to just disable it from showing up on this page.

    I would like to do other pages but lets start from this page for now. So how would I insert the code and where?


  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    Using the templates and overrides, you can change the code such as:
    Code:
    // test if box should display
      $show_banner_box2 = true;
      if (SHOW_BANNERS_GROUP_SET8 == '') {
        $show_banner_box2 = false;
      }
    
    // do not show if on advanced_search page
      if ($current_page_base == 'advanced_search') {
        $show_banner_box2 = false;
        echo 'I am hiding!!' . $current_page_base;
      }
    
      if ($show_banner_box2 == true) {
    just adding in the code in red that appears before the IF to test for the $show_banner_box2 ...
    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!

  3. #13
    Join Date
    Jan 2009
    Location
    Los Angeles, CA
    Posts
    69
    Plugin Contributions
    0

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    Ok great, just so it's very clear what page do I edit to place the code into?

    HTML Code:
    // test if box should display
      $show_banner_box2 = true;
      if (SHOW_BANNERS_GROUP_SET8 == '') {
        $show_banner_box2 = false;
      }
    
    // do not show if on advanced_search page
      if ($current_page_base == 'advanced_search') {
        $show_banner_box2 = false;
        echo 'I am hiding!!' . $current_page_base;
      }
    
      if ($show_banner_box2 == true) {
    I take it,

    $show_banner_box2 = true;
    if (SHOW_BANNERS_GROUP_SET8 == '') {
    $show_banner_box2 = false;
    }

    Is located in which Template over ride file. Because following the instructions for EASY pages. It states to edit includes/modules/sideboxes/

    Then the other example states to edit tpl_main_page.php in the common directory.

    I'm asuming that I should edit the tpl_main_page.php

    I haven't used the developers tool kit to find this because I figured it would be easier to ask you guys.

    Let me know and I'll test this. Would be a great little hack for others to follow. Allowing the sideboxes very customizable through out the website.

    Thanks

  4. #14
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    The code is in the file:
    /includes/modules/sideboxes/banner_box2.php

    you copy that to your templates and overrides directory:
    /includes/modules/sideboxes/your_template_dir/banner_box2.php

    Note: prefer to copy both parts of a sidebox to the templates and overrides ...
    /includes/templates/templates_default/sideboxes/tpl_banner_box2.php

    /includes/templates/your_template_dir/sideboxes/tpl_banner_box2.php

    so that I don't get confused ect when upgrading or needed to add further changes ...
    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!

  5. #15
    Join Date
    Jan 2009
    Location
    Los Angeles, CA
    Posts
    69
    Plugin Contributions
    0

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    Ok I figured that and i tried to insert it but i get a parsing error.

    Here is my code,

    PHP Code:
    <?php
    /* Start MagneticOne TagCloud */
     
    require_once(DIR_WS_MODULES 'tagcloud/m1_tagcloud.php');
     echo 
    insertTagCloud(2"RANDOM");
     
    /* End MagneticOne TagCloud */
     
     
    ?>

    <?php

        $content 
    '';

    // if no active banner in the specified banner group then the box will not show

      
    if ($banner zen_banner_exists('dynamic'$banner_box_group)) {

        
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent centeredContent">';

        
    $content .= zen_display_banner('static'$banner);

        
    $content .= '</div>';

      }



    ?>
    Can you please look at this and tell me how it should be inserted?

    Thank you very much for your time.

  6. #16
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    I gave you code for banners_box2 and you are showing banners_box ... so I am lost at the stop sign ...

    I do not know if you cloud code is right, I have never used it ...

    The Debug Tool from the Free Software Add Ons may help 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!

  7. #17
    Join Date
    Jan 2009
    Location
    Los Angeles, CA
    Posts
    69
    Plugin Contributions
    0

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    ha haa,

    I installed a mod and it works fine.

    PHP Code:
    <?php

        $content 
    '';

    // if no active banner in the specified banner group then the box will not show

      
    if ($banner zen_banner_exists('dynamic'$banner_box_group)) {

        
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent centeredContent">';

        
    $content .= zen_display_banner('static'$banner);

        
    $content .= '</div>';

      }



    ?>
    Above is the code with out the cloud tag module from MagneticOne Team. Those guys are totally cool by the way.

    My problem is I'm not really a php guy and when I take what you've done and insert it into the code I'm getting a parsing error. Below is an example how I would be placing it.

    PHP Code:
    <?php

        $content 
    '';

    // if no active banner in the specified banner group then the box will not show

      
    if ($banner zen_banner_exists('dynamic'$banner_box_group)) {

        
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent centeredContent">';

        
    $content .= zen_display_banner('static'$banner);

        
    $content .= '</div>';

      }

    // test if box should display
      
    $show_banner_box2 true;
      if (
    SHOW_BANNERS_GROUP_SET8 == '') {
        
    $show_banner_box2 false;
      }

    // do not show if on advanced_search page
      
    if ($current_page_base == 'advanced_search') {
        
    $show_banner_box2 false;
        echo 
    'I am hiding!!' $current_page_base;
      }

      if (
    $show_banner_box2 == true

    // this doesn't seem right??? this is where I'm lost.


    ?>
    I have read the tutorials on how to have them x out of easy pages. As well as hide left nav and right nav for main pages tutorial but I need something that will hide a sidebox on the

    Advanced_Search page. I actually want to hide Banner Box 2 which is where I placed my Cloud Tags Mod. So I'd like to be able to customize the Cloud Tags mod for each page. Show or don't show.

    I'm lost though, need you guys help and I love zen-cart, I'm having fun with it. S.O.S...

    New Zen-mister!
    http://www.computerbros.com

  8. #18
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    You are in the wrong file ...

    The correct file is:
    /includes/modules/sideboxes/banner_box_2.php

    And ends up like this:
    Code:
    // test if box should display
      $show_banner_box2 = true;
      if (SHOW_BANNERS_GROUP_SET8 == '') {
        $show_banner_box2 = false;
      }
    
    // do not show if on advanced_search page
      if ($current_page_base == 'advanced_search') {
        $show_banner_box2 = false;
        echo 'I am hiding!!' . $current_page_base;
      }
    
      if ($show_banner_box2 == true) {
        $banner_box[] = TEXT_BANNER_BOX2;
        $banner_box_group= SHOW_BANNERS_GROUP_SET8;
    
        require($template->get_template_dir('tpl_banner_box2.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box2.php');
    
    // if no active banner in the specified banner group then the box will not show
    // uses banners in the defined group $banner_box_group
        if ($banner->RecordCount() > 0) {
    
          $title =  BOX_HEADING_BANNER_BOX2;
          $title_link = false;
          require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
        }
      }
    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!

  9. #19
    Join Date
    Jan 2009
    Location
    Los Angeles, CA
    Posts
    69
    Plugin Contributions
    0

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    ha haa, it worked perfectly. YOU ARE THE MAN!!!

    This is great, Thank you very much!!!!

  10. #20
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Disable Sidebox for One Page Only Other then EZ Pages

    You are most welcome ... thanks for the update that this code worked 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!

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Header Logo - One for the Home Page, one for all other pages?
    By CultureClick in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 18 Jun 2012, 12:56 PM
  2. Replies: 1
    Last Post: 17 Oct 2009, 11:50 PM
  3. Ez-Pages Sidebox show some links on one side and others on the other side
    By brettw in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Nov 2008, 12:41 PM
  4. Sidebox Header Required For One Sidebox Only?
    By jenzi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 13 Sep 2008, 09:01 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