Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Messed-Up Layout on Secondary Pages

Messed-Up Layout on Secondary Pages

Locked

Views: 1,909

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
9 Jun 2008, 3:42 AM
#1
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Messed-Up Layout on Secondary Pages

My site has a fairly simple, left column plus center column layout. But when I go to the secondary pages, the left column is completely missing and it's a one-column layout. Does anyone know what happened here? Am I missing a setting somewhere?

My site is: http://www.mishutkadesign.com

The messed-up section is this: http://www.mishutkadesign.com//index...=index&cPath=1

Thanks in advance for your help!

9 Jun 2008, 5:53 AM
#2
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

Try turning off the Smart Background mod or other mods that you have on your site and see whether that solves the problem.

PS: You might also want to check that your configure.php files are written correctly because there are extra slashes in your server path.

E.g.

define('HTTP_SERVER', 'http://www.example.com');
```instead of 

define('HTTP_SERVER', 'http://www.example.com/');

9 Jun 2008, 11:55 AM
#3
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

Hi and thanks for responding!

The secondary pages looked like this before I installed Smart Background mod. I haven't changed configure.php, it still should be the original ZC file. I also looked there for there for the code you mentioned, and I don't see it there...

10 Jun 2008, 7:49 AM
#4
canopy avatar

canopy

Totally Zenned

Join Date:
Oct 2006
Posts:
625
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

I suspect you might have touched some code that totally disabled the columns on a per-page basis.

Try switching back to the Classic template and see if the problem is due to some misconfiguration in your current template (i.e. MDS).

If that is the case, create another template directory (e.g. Debug) and slowly move the files from your current template (i.e. MDS) to the new template directory to try and isolate the problem.

11 Jun 2008, 5:58 PM
#5
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

Thanks, canopy! I isolated the problem (luckily, it didn't take me long). It's tpl_main_page.php.

I need the left column not to be displayed on the main page; right now it's a mess:

http://www.mishutkadesign.com

I would very much appreciate any thoughts on how to disable the left column on just the HOME page, not other pages. Apparently, whatever I did before messed up secondary pages...

11 Jun 2008, 6:55 PM
#6
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

https://www.zen-cart.com/tutorials/index.php?article=233
https://www.zen-cart.com/tutorials/index.php?article=270

These will help you with turning off the sidebox columns for the home page only....the reason that one doesn't display quite right is because you have your main wrapper set to 800px and the image in the main center content is also 800px, with the sideboxes there as well, this pushes those images out to the right and beyond where the main wrapper extends to, make sense? lol

11 Jun 2008, 7:35 PM
#7
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

You are a life-saver!!! I was ready to pull my hair out! :frusty:

The issue is not to call the main page the "index" page; looks like there is another index page for secondary pages. So, in order to disable the left column on the HOME page only, the code should read:

if ($this_is_home_page) {
$flag_disable_left = true;
} else {
$flag_disable_left = false;
}

This now works. THANK YOU!!!!!

12 Jun 2008, 1:00 AM
#8
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

You're welcome, site's looking good :D

5 Jul 2008, 7:39 PM
#9
0be1 avatar

0be1

Totally Zenned

Join Date:
Sep 2004
Location:
Murfreesboro, TN
Posts:
479
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

mishutkadesign

This wasn't an answer to what I was searching for, but checked out your site anyway and you did an AWESOME job!!! I have book marked your site for future reference on how you did the layout it is beautiful and you must have spent a lot of time working on it.

Sincerely,

0be1

6 Jul 2008, 11:04 PM
#10
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

Thanks, obe1! It's a lot of work, and ZC requires a certain way of thinking about building a site ;-) Please feel free to visit again; I'm hoping to get my site mostly done by mid-August!

7 Jul 2008, 1:49 PM
#11
0be1 avatar

0be1

Totally Zenned

Join Date:
Sep 2004
Location:
Murfreesboro, TN
Posts:
479
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

Is there by chance any way you want to give up your layout our layout secrets? :wink:

Your site has inspired me for another project using a similar layout, but not exact. You would be saving me a large amount of time. If not I understand and if you could at least post the links to the posts within the zc forums that got you there.

thanks...

0be1

7 Jul 2008, 2:06 PM
#12
mishutkadesign avatar

mishutkadesign

New Zenner

Join Date:
May 2008
Location:
Maryland, USA
Posts:
73
Plugin Contributions:
0

Re: Messed-Up Layout on Secondary Pages

There are no secrets ;-) A lot of people here in the forum helped me set it up. The main thread is "HTML-designed site and Zen Cart" (I think). If you do a search for all threads by mishutkadesign, it's all there ;-)

The site is basically a header and a center column on the home page; secondary pages have the right column disabled. I'm using two additional mods--Smart Backgrounds and Blank Sidebox--available from downloads. PHP language adjustments are in the discussion thread. Feel free to ask questions; I'll try to answer if I can ;-)