Results 1 to 10 of 41

Hybrid View

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

        }}

    ?>

 

 

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