Logged-In Sub-Theme Help Needed

Events happening in the community are now at Drupal community events on www.drupal.org.
Dave R.'s picture

I could use some suggestions where to look to solve this problem: For logged-in users, the right sidebar content appears at the bottom of the page, just above the footer. When you are logged out, the right sidebar appears in the correct position. This is on nodes; the front page is fine. When I switch back to the Openpublish default theme, the problem goes away. (There is are CSS classes visible in Firebug of logged-in/not-logged-in, but I am not sure what to do with them.) Any wild guesses would be helpful.

Comments

do you have any block or

ndwilliams3's picture

do you have any blocks or other content that is added for logged in users? Have you modified any template files? If so check your HTML markup for matching start and close tags. This is common if you forget a closing tag or add an extra in a template file. If a block has a missing or extra tag, it can through off the entire layout. Also, check any php "if" statements to make sure that matching tags are included or excluded together.

I don't have any

Dave R.'s picture

I don't have any logged-in-only content other than the admin layouts. I have worked on quite a few template files; the trick (I assume) will be figuring out which one caused the problem. I do notice that the broken layout is across all the Content Types, e.g., Article, Event, etc.

it can be tricky to find

ndwilliams3's picture

it can be tricky to find sometimes. I usually start with firebug to see if I can spot a missing tag. Based on the content, you can usually determine which template files to start with. another option is to remove the template files one by one, refreshing the page after it is removed. When the problem goes away, you found the culprit.

This is from the HTML for the

Dave R.'s picture

This is from the HTML for the page not logged in and logged in, respectively. Could the issue be at the theme.inc level?

<body  class="sidebar-right node-view-page not-front not-logged-in page-node node-type-article one-sidebar sidebar-right" >

<body  class="sidebars node-view-page not-front logged-in page-node node-type-article two-sidebars" >

Turns out the problem was in

Dave R.'s picture

Turns out the problem was in the layout.css. The process of elimination as outlined by ndw above eventually led to the offending file, then looking at it line-by-line, I spotted a likely source, and voila!

In my case, it was a modification to the body.sidebars #center that had created the issue in the first place.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: