Page 1 of 5 123 ... LastLast
Results 1 to 10 of 41
  1. #1
    Join Date
    Jan 2009
    Location
    Los Angeles, CA
    Posts
    69
    Plugin Contributions
    0

    Default Disable Sidebox for One Page Only Other then EZ Pages

    I have one for you guys.

    I want to disable a side box banner box 2 on the page below.

    index.php?main_page=advanced_search

    I read about disabling sideboxes from EZ Pages but how could you do this from other pages such as,

    index.php?main_page=advanced_search

    I've read,
    https://www.zen-cart.com/tutorials/i...hp?article=270
    and
    https://www.zen-cart.com/tutorials/i...hp?article=249

    But can't seem to figure out how to do this page.

    Can anyone please point the solution out, because I'm not finding anything for this.

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

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

    Gr,
    Need a link to your site please.

    1. Tell us specifically which side box you want to exclude

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

    includes/modules/sideboxes/banner_box2.php

    Thanks

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

    includes/modules/sideboxes/banner_box2.php

    Thanks
    Gr,
    Please post the bannner_box2.php file here so I can see the code you have worked on already

    1. make sure the code is surrrounded by the .php tags
    2. click the little php icon on the top of this table and copy and paste the .php inbetween them

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

    Here is the templates/sideboxes/tpl_banner2.php page. That is the page I've been editing


    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>';

      }



    ?>

  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

    Here is the modules/sideboxes/ code but i'm not sure if it's to be edited there. Please let me know.

    PHP Code:
    <?php

    /**

     * banner_box2 sidebox - second box used to display "square" banners in sideboxes

     *

     * @package templateSystem

     * @copyright Copyright 2003-2005 Zen Cart Development Team

     * @copyright Portions Copyright 2003 osCommerce

     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

     * @version $Id: banner_box2.php 3133 2006-03-07 23:39:02Z ajeh $

     */



    // test if box should display

      
    $show_banner_box2 true;

      if (
    SHOW_BANNERS_GROUP_SET8 == '') {

        
    $show_banner_box2 false;

      }



      if (
    $show_banner_box2 == true) {

        
    $banner_box[] = TEXT_BANNER_BOX2;

        
    $banner_box_groupSHOW_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_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);

        }}

    ?>

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

    So can anyone show me how to explode a sidebox for cPath?

    Example
    index.php?main_page=product_info&cPath=1_147_148_313&products_id=688

    I want to explode Banner_Box2.php for this page and a few others but I don't want to turn it off. Please advise.

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

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

    On the page name you can use:
    Code:
    if  (in_array($_GET['main_page'], array(FILENAME_LOGOFF, FILENAME_PRIVACY, FILENAME_PASSWORD_FORGOTTEN, FILENAME_CONTACT_US, FILENAME_CONDITIONS, FILENAME_SHIPPING, FILENAME_UNSUBSCRIBE))) {
      // do something if true
    } else {
      // do something else if false
    }
    On cPath, this is not always specifically stated but the current categories_id can be found with $current_categories_id which would take from the cPath 1_147_148_313 and give you 313 ...
    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. #9
    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

    Thank you for your reply, I'm not to techie so can you please show me where to place this and how to insert the code correctly.

    Thank you very much.

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

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

    Pretend I am not bright ...

    Which are you needing help with? The block on a specific categories_id or the block on a specific page? or what ...
    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 1 of 5 123 ... 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