Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Other - Discussion
Author Message
floppydrivez
Involved
Involved



Joined: Feb 26, 2006
Posts: 340
Location: Jackson, Mississippi

PostPosted: Sun May 13, 2007 6:53 pm Reply with quote

GRRR!!!! The below has my thinker going full speed and I can't seem to find this anywhere. Anyone had this problem? The only docs I can find that even contain that is abuse templates.

Found an out of place document type declaration (<!DOCTYPE ... >). The DOCTYPE should normally be the first line of the document. An exception is for XML based documents where the first line is normally the XML declaration (<?xml ... >) and the second line is the document type declaration.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon May 14, 2007 6:18 am Reply with quote

What page is it? Is there a space before it?

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Mon May 14, 2007 6:30 am Reply with quote

Look in your theme/forums directory. You will find these littered thru the *.tpl files.
 
View user's profile Send private message Visit poster's website
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Mon May 14, 2007 7:56 am Reply with quote

floppydrivez, yes, unfortunately, we have not gotten to cleaning up BBtoNuke as a part of RN to make the forums, private messages and members list to be XHTML compliant. There is a thread here by Gremmie and 64bitguy which discusses how to do this though.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
floppydrivez







PostPosted: Mon May 14, 2007 8:47 am Reply with quote

Well its only on line 22 of the source for the front page. So it leads me to believe its not happening in a .tpl file.

Code:
<title>Clan Themes Making Clans Look Good ! - Clan Themes</title>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
 
floppydrivez







PostPosted: Mon May 14, 2007 8:51 am Reply with quote

Found it! In header.php in function head()!
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Mon May 14, 2007 10:06 am Reply with quote

Well, you want the DOCTYPE in header.php....the other ones come from the forum integration problem mentioned in that thread.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
floppydrivez







PostPosted: Mon May 14, 2007 10:08 am Reply with quote

Where is that thread you speak of?
 
Gremmie







PostPosted: Mon May 14, 2007 10:13 am Reply with quote

http://www.ravenphpscripts.com/posts11738-highlight-.html
 
floppydrivez







PostPosted: Mon May 14, 2007 10:18 am Reply with quote

*Bookmarked*

thanks
 
Gremmie







PostPosted: Mon May 14, 2007 10:55 am Reply with quote

Sure...and that reminds me I'll have to redo those edits when I go to RN2.10.01.
 
floppydrivez







PostPosted: Mon May 14, 2007 6:20 pm Reply with quote

To fix this, I moved the questionable error to the very top of the document nearly to look something like the below. (Note: All corresponding javascript you have here needs to be put inside an existing body tag (most likely your themes head.php or head.html))

Code:
define('NUKE_HEADER', true);

require_once("mainfile.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
 
montego







PostPosted: Mon May 14, 2007 7:05 pm Reply with quote

Gremmie wrote:
Sure...and that reminds me I'll have to redo those edits when I go to RN2.10.01.


I suppose its time to squash this issue once-and-for-all. I have a new project open in our bug tracker (.02) if you are willing to tackle it.
 
Gremmie







PostPosted: Mon May 14, 2007 7:44 pm Reply with quote

floppydrivez wrote:
To fix this, I moved the questionable error to the very top of the document nearly to look something like the below. (Note: All corresponding javascript you have here needs to be put inside an existing body tag (most likely your themes head.php or head.html))

Code:
define('NUKE_HEADER', true);

require_once("mainfile.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";


I'm not really sure I follow you. What error? Are you using RavenNuke? If so you just changed back to HTML 4 instead of XHTML.
 
Gremmie







PostPosted: Mon May 14, 2007 7:46 pm Reply with quote

montego wrote:

I suppose its time to squash this issue once-and-for-all. I have a new project open in our bug tracker (.02) if you are willing to tackle it.


It was easy to fix for me on my own site as I only have 1 theme. But yes, I suppose we need to roll up our sleeves and decide how to fix this for real. It will make future BBtoNuke updates a bit harder, but at least we will have XHTML compliant sites.
 
floppydrivez







PostPosted: Tue May 15, 2007 8:05 am Reply with quote

Gremmie, this is a 2.0.2 site. I didn't realize the difference in HTML/XHTML till you said something. I just like the challenge of compliance.

I switched it to XHTML 1.0 and got a shock, with 800 new errors woohoo! Time to to get addicted to this idea, I guess.
 
xGSTQ
Involved
Involved



Joined: Feb 03, 2006
Posts: 269

PostPosted: Tue May 15, 2007 11:47 pm Reply with quote

Floppy stop causing more work you dam pesky rat !

Yet again my head is hurting ! lol
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Other - Discussion

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©