Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
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
I did show one of the news in printer-friendly format, check validation on validator.w3.org and this errors apears:

No Character Encoding Found!

No DOCTYPE found! Attempting validation with HTML 4.01 Transitional.

What is missing in print.php script?
Nobody? Help me, please...
Try this, changes marked in bold.

Download source  Code
echo "[b]<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">[/b]
[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; }

This defines the doc-type, and what carset to be used, and your page should validate.
Great, it works! The page is valid... Thank you very much... I have two troubles with Expanded Calendar... Do you use this infusion?
Nope Smile
Itīs a pity... This is great infusion with two little bugs with validation again...
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
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