Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: home page only sidebox

    All you did is put the variable in your code, you need to actually use it ...

    Code:
      if ($this_is_home_page == true) {
      // show it   
        $show_blank_sidebox = true;
      } else {
      // do not show it   
        $show_blank_sidebox = false;
      }  
    
      if ($show_blank_sidebox == true) {
    See if this works better for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #12
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: home page only sidebox

    Ok great, thanks alot, but im still getting it on each page. This is what i have:
    Code:
    // test if box should display
      if ($this_is_home_page == true) {
      // show it   
        $show_blank_sidebox = true;
      } else {
      // do not show it   
        $show_blank_sidebox = false;
      } 
      
      if ($show_blank_sidebox == true) {
          require($template->get_template_dir('tpl_blank_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_blank_sidebox.php');
          $title =  BOX_HEADING_BLANK_SIDEBOX;
          $title_link = false;
          require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
     }
    ?>

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: home page only sidebox

    In the Tools ... Developers Tool Kit ... in the bottom input box type in:
    $show_blank_sidebox

    Select the Catalog and click SEARCH ...

    What files come up?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #14
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: home page only sidebox

    I did a search and the only file that shows up is
    includes/modules/sideboxes/mydfa/blank_sidebox.php
    Code:
    /home/mydfas27/public_html/store/includes/modules/sideboxes/mydfa/blank_sidebox.php
    
    Line #27 : $show_blank_sidebox = true; 
    
    Line #29 : if ($show_blank_sidebox == true) {
    This is the correct file to put it in isn't it???

  5. #15
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: home page only sidebox

    I have not been able to duplicate the problem ...

    from what you have shown, the code appears correct ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #16
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: home page only sidebox

    ok here is what i have in my blank_sidebox.php
    Code:
    <?php
    //
    // Blank Sidebox Mod
    // includes/languages/english/extra_definitions/blank_sidebox.php
    //
    //  --------------------------------------------------
    //  http://www.MommaMuse.com mod Zen-Cart - by Judi Cox                  
    //  --------------------------------------------------
    //  zen-cart Open Source E-commerce                                      
    //  Copyright (c) 2003-2006 The zen-cart developers                           
    //  http://www.zen-cart.com/index.php                                    
    //  Portions Copyright (c) 2003 osCommerce                               
    //  --------------------------------------------------
    //  This source file is subject to version 2.0 of the GPL license,       
    //  that is bundled with this package in the file LICENSE, and is        
    //  available through the world-wide-web at the following url:           
    //  http://www.zen-cart.com/license/2_0.txt.                             
    //  If you did not receive a copy of the zen-cart license and are unable 
    //  to obtain it through the world-wide-web, please send a note to       
    //  [email protected] so we can mail you a copy immediately.
    //  --------------------------------------------------
    //
    // $Id: blank_sidebox_defines.php,v 1.0 6/24/2006
    // Original modification by Carter Harris [email protected] based on the tpl_featured.php file 
    // Additionally modified by Judi Cox http://www.mommamuse.com
    
    // test if box should display
      $show_blank_sidebox = true;
      
      if ($show_blank_sidebox == true) {
          require($template->get_template_dir('tpl_blank_sidebox.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_blank_sidebox.php');
          $title =  BOX_HEADING_BLANK_SIDEBOX;
          $title_link = false;
          require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
     }
    ?>
    Is there anything in here that shouldn't be???

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: home page only sidebox

    You don't have any conditions to limit the code from displaying ... so it will show on all pages ...

    This is the code that is missing to show it only on the home page and goes just above the IF statement:
    Code:
    // test if box should display
      if ($this_is_home_page == true) {
      // show it   
        $show_blank_sidebox = true;
      } else {
      // do not show it   
        $show_blank_sidebox = false;
      }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #18
    Join Date
    Apr 2009
    Posts
    32
    Plugin Contributions
    0

    Default Re: home page only sidebox

    Thank you so much!!!
    That was what i was missing!!!

  9. #19
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: home page only sidebox

    Glad that you got this working once you added the code ... thanks for the update ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #20
    Join Date
    Jul 2007
    Location
    Roseville, Michigan
    Posts
    188
    Plugin Contributions
    0

    Default Re: home page only sidebox

    Would this work for the ezpage sidebox? If so, what would it look like?

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. turn off left or right side bar on home page only [and only certain EZ pages]
    By thebigkick in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Jun 2012, 10:23 PM
  2. Sidebox on home page only moved, how to move it back
    By shirtsatl in forum Basic Configuration
    Replies: 5
    Last Post: 5 Jan 2011, 05:46 PM
  3. Twitter sidebox only on home page
    By krazey in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 11 Dec 2010, 09:04 PM
  4. How to show a custom sidebox only on my home page?
    By SandraSD in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Dec 2009, 08:43 AM
  5. Specials Sidebox showing on home page only
    By divinelighting in forum General Questions
    Replies: 34
    Last Post: 13 Feb 2009, 05:40 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