Page 14 of 19 FirstFirst ... 41213141516 ... LastLast
Results 131 to 140 of 189
  1. #131
    Join Date
    Apr 2010
    Posts
    102
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    Thanks Ajeh. It worked perfectly!

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

    Default Re: Show/Hide sideboxes based on page

    You are most welcome ... thanks for the update that this is working 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!

  3. #133
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Show Sidebox on ALL pages

    Help! Help! Please...

    I have added a sidebox to my site that I want to remain throughout my site. I don't understand the php enough to know what I have to add/remove.


    Thank you.

    Code:
      if (($_GET['main_page'] != FILENAME_LOGIN && $_GET['main_page'] != FILENAME_CREATE_ACCOUNT && $_GET['main_page'] != FILENAME_PASSWORD_FORGOTTEN)) {
    
              $login_box[] = TEXT_LOGIN_BOX;
    
          if ((!$_SESSION['customer_id'])) {
                $title =  BOX_HEADING_LOGIN_BOX;
          } else {
                $title =  BOX_HEADING_LOGGEDIN_BOX;
          }
    
          require($template->get_template_dir('tpl_login_box.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_login_box.php');
    
          $left_corner = false;
          $right_corner = false;
          $right_arrow = false;
          $title_link = false;
    
          require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
     }
    ?>

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

    Default Re: Show Sidebox on ALL pages

    That code will show the box on every page except for the login/create account/my account pages (where it makes no sense). What else did you want? Does your design require that box to stay even on those pages?

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

    Default Re: Show Sidebox on ALL pages

    By the way, there is a bit of code there that is for an old version of Zen Cart, and is useless for current versions. You can delete these lines and make the file a bit cleaner:
    PHP Code:
          $left_corner false;
          
    $right_corner false;
          
    $right_arrow false
    This line IS needed:
    PHP Code:
          $title_link false

  6. #136
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Show/Hide sideboxes based on page

    I want this box to appear on all pages, even the login/registration page. I know it doesn't make sense...but it makes more sense to me to just have it fixed throughout the page than to waste anymore time on the layout issues.

    Thanks for the heads up on the dead coding. I'll adjust it. =)

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

    Default Re: Show/Hide sideboxes based on page

    Seems a bit odd to have a layout that is so picky that one sidebox more or less in a sidebar would throw it off, but whatever suits you...
    To remove the conditional, comment out this line
    PHP Code:
      //if (($_GET['main_page'] != FILENAME_LOGIN && $_GET['main_page'] != FILENAME_CREATE_ACCOUNT && $_GET['main_page'] != FILENAME_PASSWORD_FORGOTTEN)) { 
    and its closing }
    PHP Code:
          require($template->get_template_dir($column_box_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
     
    //}
    ?> 

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

    Default Re: Show/Hide sideboxes based on page

    It sounds like from the other thread where you're asking this same question that it is actually a header box (which uses sidebox tpl coding). That makes sense that you would want to keep it...

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

    Default Re: Show/Hide sideboxes based on page

    That didn't work...

    Do you think you can make the adjustment to the code I posted and then repost? Then I can copy and paste it?

    Thank you.

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

    Default Re: Show/Hide sideboxes based on page

    The sidebox in the header goes wacky every time the page is viewed in IE. I've heard that there have been positioning issues with IE before. That seems to be the case.

    So what I have done is shifted the entire right column up to the top of my page so that my "header box" or "sidebox" is fixed within the column. Now it doesn't move around when the page is viewed in different browsers.

    Soooo...that is why I want it to show at all times. =) When it disappears on my login page, my entire right colum shifts up since there is an open space where the login box should be.

    Thank you for your help.

 

 
Page 14 of 19 FirstFirst ... 41213141516 ... 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