Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default ENABLE Sidebox on Main Page

    Some time ago I had disabled the sidebox from appearing on the index page. I would now like to enable it again. It seems as though this could be achieved by removing this bit of code from tpl_main_page.php:
    PHP Code:
      if ($this_is_home_page) {
      
    $flag_disable_left true;
      
    $flag_disable_right true;
      } 
    Leaving this:
    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
        
    $flag_disable_right true;
      } 
    However, it seems to have no visible effect. The test site index page can be viewed here. Any idea what I'm missing??

    Thanks!

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

    Default Re: ENABLE Sidebox on Main Page

    The code would be in the specific sidebox for the one that you want to enable/disable ...
    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. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: ENABLE Sidebox on Main Page

    NOTE: you are on the right track as it is probably controlled with the:
    $this_is_home_page

    in the specific sidebox ...
    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. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: ENABLE Sidebox on Main Page

    Meltdown,
    You should find your previous work in the sideboxes with these folders

    includes/modules/sideboxes/

  5. #5
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: ENABLE Sidebox on Main Page

    Hi, and thanks for responding. Sorry but I'm not seeing the forest for the trees... I'm not quite sure what I'm looking for when going over previous work in includes/modules/sideboxes/. How might one of the mods there apply to the index page?

    Thanks again

  6. #6
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: ENABLE Sidebox on Main Page

    Or, to state it a bit more clearly, is there a way to know which module has been modified? Some clues that may help me determine where to look?

    I have gone through files that have been indicated as being previously modified, but have had no luck in thracking down the culprit.

  7. #7
    Join Date
    Jun 2006
    Location
    My family and I live in Brighton, England
    Posts
    982
    Plugin Contributions
    0

    Default Re: ENABLE Sidebox on Main Page

    OK, I've been able to track this down: In addition to removing this bit of code from tpl_main_page.php:
    PHP Code:
      if ($this_is_home_page) {
      
    $flag_disable_left true;
      
    $flag_disable_right true;
      } 
    I also needed to remove a block I had placed via my stylesheet.css:
    PHP Code:
    #indexHomeBody .centerColumn {
        
    width95%!important;
        
    floatright!important;
        } 
    Thanks for your help!

 

 

Similar Threads

  1. Main page sidebox
    By karenkte in forum General Questions
    Replies: 2
    Last Post: 30 Jan 2015, 04:00 PM
  2. Enable Categories Links in Sidebox
    By Psykryph in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 30 Sep 2011, 04:23 PM
  3. reviews sidebox!? main page problem
    By MB1 in forum Basic Configuration
    Replies: 34
    Last Post: 3 Sep 2011, 02:17 AM
  4. Banner sidebox only on main page
    By ddespera in forum Addon Sideboxes
    Replies: 6
    Last Post: 11 Dec 2010, 09:07 PM
  5. Login sidebox jumps to main page
    By monkeyjr47906 in forum General Questions
    Replies: 1
    Last Post: 23 Feb 2008, 07:17 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