Layout stacks vertically after logging out.
Permalink
I had the issue where a layout would look fine during editing, i.e. text on the left and flash content on the right, but as soon as I had logged out of the editor, the layout would stack vertically with the text sat above the flash content. No amount of CSS would fix the problem, I then remembered I had changed the header_required.php file to reflect the changes mentioned in the artical by Andrew Embler:-
if ($u->isRegistered()) {
$this->addHeaderItem($html->css('ccm.base.css'), 'CORE');
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');
$this->addHeaderItem($html->javascript('ccm.base.js', false, true), 'CORE');
}
This was the cause of the problem can the ccm.bas.css was not loading when a guest viewer. By changing the lines above to:-
$this->addHeaderItem($html->css('ccm.base.css'), 'CORE');
if ($u->isRegistered()) {
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');
$this->addHeaderItem($html->javascript('ccm.base.js', false, true), 'CORE');
}
the layout of the page now loaded correctly with the text left and flash on the right. The effect of the changes is to only load the jquery stuff when logged in but keep the css at all times.
if ($u->isRegistered()) {
$this->addHeaderItem($html->css('ccm.base.css'), 'CORE');
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');
$this->addHeaderItem($html->javascript('ccm.base.js', false, true), 'CORE');
}
This was the cause of the problem can the ccm.bas.css was not loading when a guest viewer. By changing the lines above to:-
$this->addHeaderItem($html->css('ccm.base.css'), 'CORE');
if ($u->isRegistered()) {
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');
$this->addHeaderItem($html->javascript('ccm.base.js', false, true), 'CORE');
}
the layout of the page now loaded correctly with the text left and flash on the right. The effect of the changes is to only load the jquery stuff when logged in but keep the css at all times.
Sounds like a long shot but have you tried adding a new user with admin rights? I had a similar issue, added a new user and it fixed the issue! I can't explain why or how but worth a shot