Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    448
    Plugin Contributions
    0

    Default Sidebox on one ez page ID only

    I've been searching for the solution to display the banner-box sidebox on one ezpage only. Nothing I have found shows the solution for this. How can this be altered? This is the page code


    PHP Code:
    <?php

    /**

     * banner_box sidebox - 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_box.php 3133 2006-03-07 23:39:02Z ajeh $

     */



    // test if box should display

      
    $show_banner_box true;

      if (
    SHOW_BANNERS_GROUP_SET7 == '') {

        
    $show_banner_box false;

      }



      if (
    $show_banner_box == true) {

        
    $banner_box[] = TEXT_BANNER_BOX;

        
    $banner_box_groupSHOW_BANNERS_GROUP_SET7;



        require(
    $template->get_template_dir('tpl_banner_box.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_banner_box.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_BOX;

          
    $title_link false;

          require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);

        }

      }

    ?>
    thank you

  2. #2
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,982
    Plugin Contributions
    1

    Default Re: Sidebox on one ez page ID only

    You could try changing

    Code:
    $show_banner_box = true;
    to something like:

    Code:
    if($_GET['main_page']=='page' and $_GET['id']=='12')
    {
    $show_banner_box = true; 
    }
    you'll need to change the '12' to match the page you want the box to show up on. I haven't tested that but it should work barring typos!

  3. #3
    Join Date
    Jun 2008
    Posts
    448
    Plugin Contributions
    0

    Default Re: Sidebox on one ez page ID only

    Thanks for responding Nick. It's appreciated.

    I would have tried your suggestion but I already ended up doing the ezpage stylesheet method, which I had forgotten about.

  4. #4
    Join Date
    Apr 2009
    Location
    In a traffic jam
    Posts
    1,982
    Plugin Contributions
    1

    Default Re: Sidebox on one ez page ID only

    Great. Glad you got it working.

 

 

Similar Threads

  1. Moving an EZ-Page SideBox link to the Information SideBox?
    By JonathonB in forum General Questions
    Replies: 23
    Last Post: 22 Feb 2012, 08:16 PM
  2. Page 3 & Page 4 Missing From More Information Sidebox
    By andoverit in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Jul 2010, 12:20 PM
  3. Sidebox shifting issue! home page fine next page expands too much
    By Caralyn in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 May 2009, 06:47 PM
  4. Adding one sidebox to a define page when sidebox is turned off
    By Happyworker in forum Basic Configuration
    Replies: 3
    Last Post: 30 Nov 2008, 01:27 AM
  5. About Us Page Mod for a FAQS Page in Sidebox!!!
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 15 May 2008, 12:31 PM

Bookmarks

Posting Permissions

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