Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Layout is jacked up only when user is logged in.

Layout is jacked up only when user is logged in.

Locked

Views: 1,173

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
25 Nov 2009, 3:17 PM
#1
knine22 avatar

knine22

New Zenner

Join Date:
Nov 2009
Location:
denver, co
Posts:
4
Plugin Contributions:
0

Layout is jacked up only when user is logged in.

i'm working to launch diyAVsupply.com...
things looked pretty set until i did a run through with a purchase. then i discovered that the page layout is jacked up when the user/visitor is logged in. (upon logging out things are fine again.)

i dont' know where to start to look for the problematic file(s). i've updated the default files and haven't touched any of the "tpl_account" files.

:huh: what to do?

26 Nov 2009, 5:02 AM
#2
knine22 avatar

knine22

New Zenner

Join Date:
Nov 2009
Location:
denver, co
Posts:
4
Plugin Contributions:
0

Re: Layout is jacked up only when user is logged in.

SO...
i backed up my side on a thumbdrive - for Safe keeping - and logged in as a customer...

i began stripping away my template files from the server a folder at a time, noting which i deleted and then refreshed my browser.

turns out it was the last one and then i went uploading file by file.
:yuck: the bad seed was
templates > MY_CUSTOM > common > tpl_header.php

i haven't disected that file YeT to see which layout coding it doesn't like... but i'll come back with an update soon.

thanks Jim Dandy for having a look-see earlier today.

26 Nov 2009, 12:57 PM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Layout is jacked up only when user is logged in.

knine22:

thanks Jim Dandy for having a look-see earlier today.

You're welcome, but I should have thought, rather than looked. The only thing that changes after login are the links in the header navMain section, so ...

27 Nov 2009, 11:14 PM
#4
knine22 avatar

knine22

New Zenner

Join Date:
Nov 2009
Location:
denver, co
Posts:
4
Plugin Contributions:
0

Re: Layout is jacked up only when user is logged in.

so i uploaded my CUSTOM folders one by one in the same order i removed them, again refreshing my browser after each one.

since all was well upto the common folder, and then the tpl_header.php file...

i opened the default tpl_header and my CUSTOM tpl_header side by side.
i copied over section by section: example
<!--bof-navigation display-->
yadda yadda yadda
<!--eof-navigation display-->

saved, uploaded, refeshed... just as before.

and the trouble was within the navigation display code. i had placed a <table> within the <div id="navMain"> tag.

again, i whittled down the code line by line. i did a lot of staring at the screen...
note, when troubleshooting code, remember to blink y'all. :blink:

i'm still not sure the exact code that it didn't like, but i'm guessing the align in the <tr> tag or i forgot a ?php somewheres when i manually placed the CONTACT US link. it does have a table in there now... but i rebuilt it from scratch to be sure; i went cell by cell making sure the dynamic code did what it's supposed to.

i hope these descriptions of my problem solving by process of elimination helps others.

^..^