Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    627
    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
    Posts
    2,134
    Plugin Contributions
    3

    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
    627
    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
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Sidebox on one ez page ID only

    Great. Glad you got it working.

 

 

Similar Threads

  1. Display individual sidebox on only one Ez Page
    By creamcrackers in forum General Questions
    Replies: 10
    Last Post: 29 Mar 2012, 04:06 PM
  2. Disable Sidebox for One Page Only Other then EZ Pages
    By grafx2g in forum Basic Configuration
    Replies: 40
    Last Post: 5 May 2009, 03:18 PM
  3. I need to have a particular sidebox only show on one EZ page.
    By tolefairy in forum Basic Configuration
    Replies: 7
    Last Post: 21 Jan 2008, 08:22 AM
  4. I need to have a particular sidebox only show on one EZ page.
    By tolefairy in forum General Questions
    Replies: 0
    Last Post: 20 Jan 2008, 07:20 AM
  5. Display custom sidebox only on one page.
    By shackle in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Aug 2007, 09:28 PM

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