Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Follow us on Facebook
Follow us on Google+
View Thread
Official Home of PHP-Fusion » PHP-Fusion 6 Support » Bugs and Errors
Who is here? 1 guest(s)
 Print Thread
Little bug in print.php with Character Encoding
Drbo
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
Nobody? Help me, please...
 
Sveinungs
Try this, changes marked in bold.

Download source  Code
echo "[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
Great, it works! The page is valid... Thank you very much... I have two troubles with Expanded Calendar... Do you use this infusion?
 
Sveinungs
Nope Smile
 
Drbo
Itīs a pity... This is great infusion with two little bugs with validation again...
 
Sveinungs
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. Wink
 
Drbo
I did it by this way, but I have no experience with the php coding... Can I describe this problem to you?
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Applying a character counter in tinyMCE Modifications and Requests 2 09-04-2014 20:45
function.php, print option Modifications and Requests 1 19-01-2014 14:25
REQUEST: How to print custom pages ? Content Administration 11 13-12-2013 03:24
Character Limit on Forum Threads Suspected Bugs and Errors 3 24-10-2013 13:36
character encoding Content Administration 3 20-10-2013 13:43
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel fromVenue