Page 2 of 2

Re: Original design theme problems. Probably CSS failed.

Posted: Sat Feb 11, 2006 5:52 pm
by URAN
Hmmm....  ??? You know, my original file (downloaded on yesterday evening) has this code:

Code: Select all

<?php echo '<?xml version="1.0" encoding="' . get_encoding() . '?>'; ?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>CMS Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="themes/default/css/style.css" />
</head>

</__body>
<div class="lball">
	<div class="lblayout lbtopmargin"><p><img src="themes/default/images/logo.gif" alt="" /><span class="logotext"><?php echo lang('logintitle')?></span></p></div>
	<div id="loginbox" class="lblayout lbcontainer">
			<div class="lbinfo">
				<p><?php echo lang('loginprompt')?> <br /><br />
					<?php
						debug_buffer('Debug in the page is: ' . $error);
						if (isset($error) && $error != '')
						{
							echo '<span class="loginerror">'.$error.'</span>';
                        }
					?>
				</p>
			</div>
			<div class="lbfields">
				<div class="lbfieldstext">
					<p class="lbuser"><?php echo lang('username')?>:</p>
					<p class="lbpass"><?php echo lang('password')?>:</p>
				</div>
				<div class="lbinput">
					<form method="post" action="login.php">
						<p>
							<input name="username" type="text" size="15" value="<?php echo (isset($_POST['username'])?$_POST['username']:'')?>" /><br />
							<input class="lbpassword" name="password" type="password" size="15" value="<?php echo (isset($_POST['password'])?$_POST['password']:'')?>" /><br />
							<input class="lbsubmit" name="loginsubmit" type="submit" value="<?php echo lang('submit')?>" /> 
							<input class="lbsubmit" name="logincancel" type="submit" value="<?php echo lang('cancel')?>" />
						</p>
					</form>
				</div>
			</div>
	</div>
	<div class="lblayout footer"><a class="footer" href="http://www.cmsmadesimple.org">CMS Made Simple</a> is free software released under the General Public Licence.</div>
</div>	
<__body>
</__html>
I`ll try to download it again.

Re: Original design theme problems. Probably CSS failed.

Posted: Mon Feb 13, 2006 7:04 am
by URAN
Oh, Patricia, thank you my friend very very much!!!  :D

Re: Original design theme problems. Probably CSS failed.

Posted: Mon Feb 13, 2006 5:15 pm
by URAN
... You know, came home, start CMS on my home PC and I can say that nothing has changed :-\

So, I still can see Admin Page theme design at IE 6.0 after refresh, never at Mozzila and always (partically) at Opera (but never WYSIWYG).

I think the most stable solution is to include css itself into the page not like a link to a css file, but like a code. Just like IPB team do at their products. That pages looks correct even offline.

By the way I can see Login Page always correctly. If we look at the source code we can see that in Login Page style attached directly:


and

at Admin Page

or

at Front page...


Do you know what file to edit to make direct link to stylesheet like at Login Page and forget about this
headache?

Re: Original design theme problems. Probably CSS failed.

Posted: Wed Feb 15, 2006 5:27 am
by URAN
Nope, it not works!

By my hosting provider`s advice I included into CMSMS parent directory .htaccess file with this code:

Code: Select all

php_flag zlib.output_compression Off


For Admin pages I solve it this way:

At defaultTheme.php file

Replaced

Code: Select all

function OutputHeaderJavascript() {
echo '<__script__ type="text/javascript" src="themes/default/includes/standard.js"></__script>';
}
With

Code: Select all

function OutputHeaderJavascript() {
echo '<__script__ type="text/javascript" src="themes/default/includes/standard.js"></__script>';
echo '<link rel="stylesheet" type="text/css" media="screen, projection" href="themes/default/css/style.css">';
}

Re: Original design theme problems. Probably CSS failed.

Posted: Wed Feb 15, 2006 8:52 am
by tbt
I  have the excact same problem, but in my php.in zlib.output_compression is set to off, what can I do ??

Re: Original design theme problems. Probably CSS failed.

Posted: Thu Feb 16, 2006 7:17 am
by URAN
Foof... it finally works!!! ;D Thank you very much!

In the everning will check if it works for Admin pages.

Re: Original design theme problems. Probably CSS failed.

Posted: Tue Mar 14, 2006 11:00 pm
by conor71
Hi I have followed this thread , and another one, and tried uploading the modified style.php , that didnt work. But now I uploaded the .htaccess file as suggested in my CMSMS root folder, and this seems to have worked, I can now use Admin in IE with the correct CSS style applied. Thanks for this help.  However is this safe?

Conor