Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 61
SyntaxHighlighte... 51
Newsletters v4.03 112
Facebook Like Box 131
Newsletters v4.02 58
Metro 168
Facebook Connect 173
Shoutbox Panel 128
Redactor for PHP... 107
MI Floating Side... 109
Facebook Login/R... 155
Avatar Studio v2.03 180
Relationship Sta... 98
Sexual Orientati... 116
Fisherman 144
Popular Addons
iTheme2 5807
Arise 5804
User Control v1.23 4622
Event Calendar 4052
Photowidget panel 3888
Radio-Theme red2... 3358
Highslide Gallery 3315
CSS/JavaScript D... 3234
Facebook Connect... 2988
Dynamic Menu 2894
Slideshow Lightb... 2725
L-AMANT 2659
Enigma 2637
2Dark 2608
Black 2580
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
Encoding strings and order System Administration 1 30-04-2012 21:44
Remove Print option/ icon from news ?? Content Administration 5 20-04-2012 05:06
1000+ Character SQL error - MAC OSX Clients Suspected Bugs and Errors 2 02-07-2011 06:38
Signature User Field With jQuery Character Limit C Official Releases [Other] 3 03-05-2011 22:59
[Solved] Disable the print news icon Ideas for Modifications and Requests 6 15-03-2011 13:48
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 byVenue