|
Little bug in print.php with Character Encoding
|
| Drbo |
Posted on 20-12-2006 00:02
|

Senior Member

Posts: 258
Joined: 30/09/2006
|
I did show one of the news in printer-friendly format, check validation on validator.w3.org and this errors apears:
1)
No Character Encoding Found!
2)
No DOCTYPE found! Attempting validation with HTML 4.01 Transitional.
What is missing in print.php script? |
| |
|
|
| Drbo |
Posted on 22-12-2006 17:43
|

Senior Member

Posts: 258
Joined: 30/09/2006
|
Nobody? Help me, please... |
| |
|
|
| Sveinungs |
Posted on 22-12-2006 18:18
|

Veteran Member

Posts: 938
Joined: 05/04/2006
|
Try this, changes marked in bold.
Codeecho "[b]<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">[/b]
<html>
<head>
<title>".$settings['sitename']."</title>
[b]<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."'>[/b]
<style type=\"text/css\">
body { font-family:Verdana,Tahoma,Arial,Sans-Serif;font-size:14px; }
hr { height:1px;color:#ccc; }
.small { font-family:Verdana,Tahoma,Arial,Sans-Serif;font-size:12px; }
.small2 { font-family:Verdana,Tahoma,Arial,Sans-Serif;font-size:12px;color:#666; }
</style>
</head>
<body>\n";
This defines the doc-type, and what carset to be used, and your page should validate. |
| |
|
|
| Drbo |
Posted on 22-12-2006 20:05
|

Senior Member

Posts: 258
Joined: 30/09/2006
|
Great, it works! The page is valid... Thank you very much... I have two troubles with Expanded Calendar... Do you use this infusion? |
| |
|
|
| Sveinungs |
Posted on 22-12-2006 20:14
|

Veteran Member

Posts: 938
Joined: 05/04/2006
|
Nope  |
| |
|
|
| Drbo |
Posted on 22-12-2006 21:17
|

Senior Member

Posts: 258
Joined: 30/09/2006
|
Itīs a pity... This is great infusion with two little bugs with validation again... |
| |
|
|
| Sveinungs |
Posted on 22-12-2006 21:27
|

Veteran Member

Posts: 938
Joined: 05/04/2006
|
Maybe do this the hard way then?
Use W3C validation page,
have them point out the errors,
view source code from your page,
then try to find those errors in your infusion source code,
correct it - and presto!
Might be a learningful experience, and the error might be easily corrected.  |
| |
|
|
| Drbo |
Posted on 22-12-2006 21:34
|

Senior Member

Posts: 258
Joined: 30/09/2006
|
I did it by this way, but I have no experience with the php coding... Can I describe this problem to you? |
| |
|