Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2009
    Location
    Fort Meade, MD
    Posts
    124
    Plugin Contributions
    0

    Default Blank Sidebox question

    I'm sure there's a thread about this already but I can't seem to find it. I'm using the blank sidebox mod and I'm needing a way to turn it off on certain pages.

    Thanks for any help.

  2. #2
    Join Date
    Nov 2009
    Location
    Chicago, IL.
    Posts
    198
    Plugin Contributions
    0

    Default Re: Blank Sidebox question

    search the forum for " turn off sideboxes on certain pages", or a variant of that, instead. It surely is a well discussed topic.

    Rules apply to all side-boxes and not just 'blank sidebox"

  3. #3
    Join Date
    Dec 2009
    Location
    Fort Meade, MD
    Posts
    124
    Plugin Contributions
    0

    Default Re: Blank Sidebox question

    Been there, done that. I haven't found anything that has helped.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Blank Sidebox question

    In the tutorials: I want to display some of my sideboxes on my front page only, and suppress them from all other pages.

    If you tell us which pages you don't want it on, we can suggest details of test code.

  5. #5
    Join Date
    Nov 2009
    Location
    Chicago, IL.
    Posts
    198
    Plugin Contributions
    0

    Default Re: Blank Sidebox question

    Quote Originally Posted by gjh42 View Post
    In the tutorials: I want to display some of my sideboxes on my front page only, and suppress them from all other pages.

    If you tell us which pages you don't want it on, we can suggest details of test code.


    Code:
     if ($this_is_home_page) {
        $show_featured = true;
      } else {
        $show_featured = false;
      }
    Glenn,

    How do I replicate/modify that to add more pages to exclude it from? say if we want to disable featured sidebox from shopping_cart, and Login pages.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Blank Sidebox question

    Look at the comments in tpl_main_page.php - they cover several forms of conditional tests.

    You might try
    PHP Code:
    $show_featured true;
    if (
    in_array($current_page_base,explode(",",'shopping_cart,login')) ) {
      
    $show_featured false;

    using the "main_page=whatever" that you see in the address bar on each page you want to exclude.

  7. #7
    Join Date
    Nov 2009
    Location
    Chicago, IL.
    Posts
    198
    Plugin Contributions
    0

    Default Re: Blank Sidebox question

    Code:
    $show_categories = true;
    if (in_array($current_page_base,explode(",",'specials')) ) {
      $show_categories = false;
    }
    Hey Glenn,

    In this example, I tried to get a handle on this, and tried to hide "Categories" side box from 'specials' page. ( I placed the code in tpl_mail_page.php right above $header_template = 'tpl_header.php';

    Doesnt seem to work. What am i doing wrong?

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Blank Sidebox question

    That test goes in the sidebox module file (in this case /includes/modules/sideboxes/categories.php).

 

 

Similar Threads

  1. v150 Blank Sidebox Blank Page after adding code for livechat software
    By whatisthat456 in forum Basic Configuration
    Replies: 8
    Last Post: 3 May 2012, 10:40 AM
  2. Flash hack&blank sidebox = blank page
    By AmandaGero in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Apr 2009, 06:19 PM
  3. blank sidebox question
    By cla74 in forum Basic Configuration
    Replies: 5
    Last Post: 12 Jan 2009, 01:02 PM
  4. Blank Sidebox Mod - remove a blank sidebox
    By PJD in forum Basic Configuration
    Replies: 4
    Last Post: 14 Mar 2008, 02:09 PM
  5. Blank sidebox 1.1 image question
    By Maxx409 in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 20 Apr 2007, 07:05 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR