Results 1 to 10 of 17

Hybrid View

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

    Default Re: turning off left column wipes out home page

    Notepad++ is good, though there may be some obscure setting tripped in your copy that would cause the double spacing. (If you remove the double spaces and save/close the file and upload, does it have double spaces again when you reopen it? Or when you download from your site and reopen?)

    The failure of the flag is baffling, since your tpl_main_page.php shows the mechanism in place to use it.

    Is your file currently using the "in_array" on just the right column, or the $this_is_home_page on both columns? (I'm not sure which behavior is currently showing.)

  2. #2
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Quote Originally Posted by gjh42 View Post
    Notepad++ is good, though there may be some obscure setting tripped in your copy that would cause the double spacing. (If you remove the double spaces and save/close the file and upload, does it have double spaces again when you reopen it? Or when you download from your site and reopen?)

    The failure of the flag is baffling, since your tpl_main_page.php shows the mechanism in place to use it.

    Is your file currently using the "in_array" on just the right column, or the $this_is_home_page on both columns? (I'm not sure which behavior is currently showing.)

    If I download a page that I removed the double spaces from, they're not there. Just when I initially open the file, even a fresh file from a new install.

    Right now, I'm using this:

    // the following IF statement can be duplicated/modified as needed to set additional flags
    if (in_array($current_page_base,explode(",",'index')) ) {
    $flag_disable_left = true;
    }

    Thanks for your help.
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Trying to validate the page to see if there is something missing and there are so many errors being generated by the flash I can't tell what's what. I would guess that you have a mismatched<td> or <tr>
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Quote Originally Posted by Kim View Post
    Trying to validate the page to see if there is something missing and there are so many errors being generated by the flash I can't tell what's what. I would guess that you have a mismatched<td> or <tr>
    hmmm...well that could very well be because I use Expression Web to create my pages. I'll get rid of the flash to check it & see if I can find something. Thanks.
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  5. #5
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Kim, you must have been right. I deleted my content from the page, just left in some text, validated it and now the code

    if ($this_is_home_page) {
    $flag_disable_right = true;
    $flag_disable_left = true;
    }

    works

    Now if I can figure out how to get the darn css menu to appear where it's supposed to I'm good to go...
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  6. #6
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Well, I thought this was fixed but I was wrong. I can still only turn off one column, not both and I have even reinstalled the entire cart. Anyway, I can live with that if I have to but what I'm finding is that any page that acts as a "main" page has no left column, I only want the left column off on the actual home page of the store.

    For instance, there is no left column on a category page. How can I fix this so that the left column is only off on the home page of the store?

    (yes, I know I now have a bajillion validation errors that are mostly coming from the menu so I am working on that. I had this column error when the page validated also)


    TIA
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: turning off left column wipes out home page

    If your files are double spaced it is usually an indication you uploaded the files in Binary mode instead of ASCII.

    // the following IF statement can be duplicated/modified as needed to set additional flags
    if (in_array($current_page_base,explode(",",'index')) ) {
    $flag_disable_left = true;
    }

    The above code will disable the left column on "every" page because every page uses "index" in the URL.

    For the Home page you need to use:

    if ($this_is_home_page) {
    $flag_disable_right = true;
    $flag_disable_left = true;
    }

    As to your many HTML errors, ditch your Navigation Menu until you can get the bugs worked. Using the above code and switching to the Classic template should verify that your HTML errors are causing problems for the PHP coding.

  8. #8
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Thanks Rob. I have deleted the drop menu but now I've got bigger problems. I'll try what you said if I can ever get back into admin
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

  9. #9
    Join Date
    Jan 2009
    Location
    Vegas Baby!
    Posts
    332
    Plugin Contributions
    0

    Default Re: turning off left column wipes out home page

    Believe it or not, on a brand new install with no changes to it at all, the code to turn off both columns didn't work for me. But - in case anyone else wants to do this is having a problem - this did: a combination of the original code to turn off the right column on all index pages & Rob's code to turn off left on home page only.

    Unfortunately, I have to reinstall my cart because of this admin problem
    Completed: BellaFavori.com
    In Progress: WeddingDivasLV.com
    Coming Soon: ???

 

 

Similar Threads

  1. turning off right, and left column, and keep the sideboxes
    By keneso in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 26 Jan 2012, 12:17 PM
  2. reviews in left hand column on home page only
    By ellis200200 in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 24 Jan 2012, 04:21 PM
  3. catagories list on site/home page on left column
    By adulttoyshome in forum General Questions
    Replies: 0
    Last Post: 18 Apr 2011, 03:36 PM
  4. Tip: Turning off the left column.
    By birdoasis in forum General Questions
    Replies: 7
    Last Post: 13 Feb 2008, 04:07 AM
  5. IF statement to turn off left/right column on category page
    By milkyway in forum General Questions
    Replies: 6
    Last Post: 1 Oct 2007, 08:26 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