Results 1 to 10 of 41

Hybrid View

  1. #1
    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!

  2. #2
    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.

  3. #3
    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!

  4. #4
    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

  5. #5
    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!

  6. #6
    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!!!!

  7. #7
    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!

  8. #8
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

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

    Quote Originally Posted by grafx2g View Post
    ha haa, it worked perfectly. YOU ARE THE MAN!!!

    This is great, Thank you very much!!!!
    Graf,
    Did you not know Ajeh is a princess not a man... LOL

 

 

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