Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2007
    Posts
    95
    Plugin Contributions
    0

    Default Display sideboxes on some pages

    I wanted to display blank sidebox on only a few pages..I went through the forums and couldn't find a good solution and also the FAQ solution works only on the home page.

    I finally managed to get the desired result.
    This is wat i did Modify file includes/modules/sideboxes/MY_TEMPLATE/blank_sidebox
    PHP Code:
    if (in_array($current_page_base,explode(",",'page_4,contact_us,shippinginfo,page_2')) ) {
         
    $show_blank_sidebox true;
      } else {
        
    $show_blank_sidebox false;
      }
      
      if (
    $show_blank_sidebox == true) {
    MAIN BLOCK

    I hope this helps

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Display sideboxes on some pages

    Thanks for posting this example Xaria.

    Strictly speaking the assignment of the $show_blank_sidebox variable to true followed immediately by a test of whether it is true (and similar code in most of the other Zen Cart sideboxes) is redundant.

    However, it is there to point the way to people wanting to add filters that fine tune the conditions under which the boxes are displayed. Yours is a nice example of what can done.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,565
    Plugin Contributions
    71

    Default Re: Display sideboxes on some pages

    Any ideas on how to make a banner only show on ez pages?

  4. #4
    Join Date
    Apr 2007
    Location
    Vancouver, Canada
    Posts
    1,565
    Plugin Contributions
    71

    Default Re: Display sideboxes on some pages

    Solution:
    PHP Code:
     
    <?php
      
    if ($_GET['main_page'] == page) {
        
    // put in the code of the banner display
      
    }
    ?>

  5. #5

    Default Re: Display sideboxes on some pages

    includes/modules/sideboxes/MY_TEMPLATE/blank_sidebox


    i dont see any files in this name blank_sidebox


    whre do i can find it???

  6. #6
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Display sideboxes on some pages

    Quote Originally Posted by numinix View Post
    Solution:
    PHP Code:
     
    <?php
      
    if ($_GET['main_page'] == page) {
        
    // put in the code of the banner display
      
    }
    ?>
    Though I'd recommend quotes around the 'page'.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Display sideboxes on some pages

    Quote Originally Posted by m3suriya View Post
    includes/modules/sideboxes/MY_TEMPLATE/blank_sidebox


    i dont see any files in this name blank_sidebox


    whre do i can find it???
    Please can you clarify what you mean and what you're asking.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    May 2007
    Posts
    95
    Plugin Contributions
    0

    Default Re: Display sideboxes on some pages

    Quote Originally Posted by m3suriya View Post
    includes/modules/sideboxes/MY_TEMPLATE/blank_sidebox


    i dont see any files in this name blank_sidebox


    whre do i can find it???

    Blank sidebox is a mod u will have to download it.
    I stated blank_sidebox as an example... You can modify sidebox according to your requirement.

  9. #9
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Display sideboxes on some pages

    Quote Originally Posted by Xaria View Post
    Blank sidebox is a mod u will have to download it.
    I stated blank_sidebox as an example... You can modify sidebox according to your requirement.


    I know this. I wrote the current version of the mod.

    It was your specific question that I didn't understand and for which I was requesting clarification.
    Last edited by kuroi; 15 Jun 2007 at 10:54 AM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  10. #10
    Join Date
    May 2007
    Posts
    95
    Plugin Contributions
    0

    Default Re: Display sideboxes on some pages

    Quote Originally Posted by kuroi View Post


    I know this. I wrote the current version of the mod.

    It was your specific question that I didn't understand and for which I was requesting clarification.
    @kuroi

    I was answering to the query by m3suriya.... I wasn't questioning you......
    Just trying to help out here.........

    Maybe my post wasnt clear....

    @m3suriya

    for the includes/modules/sideboxes/MY_TEMPLATE/blank_sidebox

    blank_sidebox is the sidebox which I wanted to display on specific pages only
    If u wish for ex: information sidebox to be dispayed on specific pages, please create a override appropriately.
    Last edited by Xaria; 15 Jun 2007 at 12:42 PM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v138a Some Listing pages display incorrectly.
    By AE12 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Oct 2012, 02:24 PM
  2. Sideboxes text align problem on some pages
    By thefisherofmen in forum Basic Configuration
    Replies: 4
    Last Post: 19 Mar 2010, 04:15 PM
  3. Right Column Sideboxes not staying to the right on some pages
    By kdays in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Mar 2010, 09:53 PM
  4. Sideboxes don't appear on some pages - WHY?
    By butchx5 in forum Basic Configuration
    Replies: 3
    Last Post: 21 Feb 2009, 04:14 PM
  5. Turning of some sideboxes for some categories
    By jvanree in forum Basic Configuration
    Replies: 2
    Last Post: 24 Oct 2008, 03:00 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