Page 17 of 19 FirstFirst ... 71516171819 LastLast
Results 161 to 170 of 189
  1. #161
    Join Date
    Apr 2009
    Posts
    84
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    I confirmed it was on, and no I apparently selected admin in the search. The following is the info you originally requested:

    /home2/wholesf3/public_html/printdealz/includes/modules/sideboxes/blank_sidebox.php

    Line #12 : $show_blank_sidebox = true;

    Line #15 : $show_blank_sidebox = true;

    Line #17 : $show_blank_sidebox = false;

    Line #20 : if ($show_blank_sidebox == true) {

    /home2/wholesf3/public_html/printdealz/includes/modules/sideboxes/printdealz/blank_sidebox.php

    Line #12 : $show_blank_sidebox = true;

    Line #15 : $show_blank_sidebox = true;

    Line #17 : $show_blank_sidebox = false;

    Line #20 : if ($show_blank_sidebox == true) {
    Brian - Connecticut, US --- Using Zen 1.3.9g - Modified Classic Template
    Currently developing: http://www.printdealz.com
    Other Zen Pages: http://www.wholesale4realtors.com 1.3.8a

  2. #162
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Show/Hide sideboxes based on page

    From what you are displaying I would think it would work just like my test for a sidebox on these pages ...
    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!

  3. #163
    Join Date
    Apr 2009
    Posts
    84
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    I agree that the code you suggested looks as though it should work, so that's why I'm baffled as to why it's not. Is it at all possible that an add-on such as multisite module that reconfigures how the site cpath is read could be causing the problem?
    Brian - Connecticut, US --- Using Zen 1.3.9g - Modified Classic Template
    Currently developing: http://www.printdealz.com
    Other Zen Pages: http://www.wholesale4realtors.com 1.3.8a

  4. #164
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Show/Hide sideboxes based on page

    Which site is this for?

    The one in your signature has issues with the URL containing a double slash in it ...

    This leads me to believe you have errors in the configure.php files:
    /includes/configure.php
    /admin/includes/configure.php

    if you could post those files, from the server, without your username, password and secret /admin directory name, perhaps we can help you resolve that ...
    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!

  5. #165
    Join Date
    Apr 2009
    Posts
    84
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    I've been curious about the //, but I've been under the "if it aint broke, don't fix it" mindset.

    We got the sideboxes working on the appropriate pages with the following:
    PHP Code:
    <?php
    /**
     * blank sidebox - allows a blank sidebox to be added to your site
     *
     * @package templateSystem
     * @copyright 2007 Kuroi Web Design
      * @copyright Portions Copyright 2003-2007 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: blank_sidebox.php 2007-05-26 kuroi $
     */

      // test if box should display
      
    $show_blank_sidebox true;

    if (
    $current_page_base == 'index' and $cPath == '' ) {

    $show_blank_sidebox false;

    }
    else if(
    $current_page_base == 'index' and $cPath != '' )
    {
    $show_blank_sidebox true;

    }

      if (
    $show_blank_sidebox == true and  $current_page_base='index' and $cPath != '') {
          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='Category Option';
          
    $title_link false;
          require(
    $template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
     }
    ?>
    Thanks for your help, as always, and if I find I need to figure out the reason for the // in the url, I'll post that in a separate thread.
    Brian - Connecticut, US --- Using Zen 1.3.9g - Modified Classic Template
    Currently developing: http://www.printdealz.com
    Other Zen Pages: http://www.wholesale4realtors.com 1.3.8a

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

    Default Re: Show/Hide sideboxes based on page

    I am not quite sure what you are trying to do with your test ...

    If you test the conditions in the IF statements ... but then you go on to use:
    Code:
      if ($show_blank_sidebox == true and  $current_page_base='index' and $cPath != '') {
    and the single equal is incorrect and should be a double equal in an IF ... and the extra testing on that IF is more or less the same thing you tested for in the initial IF test ...

    The idea is to set the $show_blank_sidebox and only need to use it to know whether or not to run the sidebox ...

    As to the double // in the URL, I would venture to guess that you have either trailing slashes in the configure.php or double slashes ...
    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!

  7. #167
    Join Date
    Apr 2009
    Posts
    84
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Lack of sleep... I assumed the fix was in the file we were working on, but you're right, now that I actually read that code, that does not cause the sideboxes to work as intended. I'll find out how it was done, and follow up with the real answer.

    P.S. I decided to track down the extra / since you weren't the only one who mentioned it today, and it was in the multisite mod config file having the trailing /.

    Anyway, I'm going to try this all on a fresh install of zen, fix a few things, and write a tutorial of the new sidebox add-on this whole thing was for. Wish me luck.
    Brian - Connecticut, US --- Using Zen 1.3.9g - Modified Classic Template
    Currently developing: http://www.printdealz.com
    Other Zen Pages: http://www.wholesale4realtors.com 1.3.8a

  8. #168
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    How do I hide the Reviews sidebox when on a product page? Thank you!

  9. #169
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    How do I have a sidebox that only appears on the main page? I don't want it anywhere else...

    Thank you!

  10. #170
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Nevermind.

    Found the answer in FAQ.

 

 
Page 17 of 19 FirstFirst ... 71516171819 LastLast

Similar Threads

  1. v150 Any way to show/hide payment modules dynamically based on order total?
    By Limitless in forum Addon Payment Modules
    Replies: 2
    Last Post: 27 Sep 2012, 03:22 PM
  2. Show/Hide INformation Sidebox based on page
    By atracksler in forum Basic Configuration
    Replies: 12
    Last Post: 17 Jun 2011, 04:21 PM
  3. Show/Hide sideboxes based on page
    By monkeyjr47906 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 29 Nov 2007, 07:25 PM
  4. Hide sideboxes on main page
    By disciple in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 11 Jan 2007, 07:38 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