Original design theme problems. Probably CSS failed.

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
URAN

Original design theme problems. Probably CSS failed.

Post by URAN »

Every time I look my web or admin pages at my home PC I face strange trouble. Looks like CSS does not work.

Look at the screenshot :

1. On page enter (design broken)
Image

2. On page refresh (normal)
Image

If I llook into page source I can see the same code... never saw such things
jelle

Re: Original design theme problems. Probably CSS failed.

Post by jelle »

I agree that it is probably the css not being recieved by your browser. Unless you can get some sort of debugging output from your browser, you will not find out what goes wrong on the client side. Have a look in your webserver logs to see if there are some errors retieving the css url. Browsers usually cache the css, so you would not expect every request to be accompagnied by a css request (unless you hit F5)
Cms also appears to log things, but I have not yet found out where these are stored.

Can you try to find out if this behaviour is reproducable and how others should reproduce it?
(oh and by the way: please don't use IE, firefox is much safer)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Original design theme problems. Probably CSS failed.

Post by calguy1000 »

a few other people have reported this bug when using IE.  We don't quite know what's causing it yet, so any help would be appreciated.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
URAN

Re: Original design theme problems. Probably CSS failed.

Post by URAN »

I can not say a bad word about this CMS, but the design made bad even for beginner:

Image

I`ve tried CMS not only in IE, but Mozzila and Opera too. Result is the same. I have one suggestion about this CSS, will try to check it.
URAN

Re: Original design theme problems. Probably CSS failed.

Post by URAN »

Some bugs are fixed. I had right suggestion. First, the designer SHOULD NOT apply .class for , but id (#). The second is the template itself.

I can guarantee that with this css and this login page, Login Page design will be stable in all browsers. If you want to use this fixxed files, just right click and "Save target as...", then upload `em to your CMS Made Simple dir (make backup of existing files if not sure).
URAN

Re: Original design theme problems. Probably CSS failed.

Post by URAN »

In Opera 7 Browser I can see empty main page at the Admin Panel

Image
URAN

Re: Original design theme problems. Probably CSS failed.

Post by URAN »

Sure... Here it is - save target as login.php.txt
URAN

Re: Original design theme problems. Probably CSS failed.

Post by URAN »

You mean to write what did I do step by step?
URAN

Re: Original design theme problems. Probably CSS failed.

Post 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.
URAN

Re: Original design theme problems. Probably CSS failed.

Post by URAN »

Oh, Patricia, thank you my friend very very much!!!  :D
URAN

Re: Original design theme problems. Probably CSS failed.

Post 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?
Last edited by URAN on Mon Feb 13, 2006 6:26 pm, edited 1 time in total.
URAN

Re: Original design theme problems. Probably CSS failed.

Post 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">';
}
Last edited by URAN on Wed Feb 15, 2006 6:03 am, edited 1 time in total.
tbt

Re: Original design theme problems. Probably CSS failed.

Post by tbt »

I  have the excact same problem, but in my php.in zlib.output_compression is set to off, what can I do ??
URAN

Re: Original design theme problems. Probably CSS failed.

Post by URAN »

Foof... it finally works!!! ;D Thank you very much!

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

Re: Original design theme problems. Probably CSS failed.

Post 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
Locked

Return to “Layout and Design (CSS & HTML)”