PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
floppydrivez
Involved
Involved


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

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

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: 6044

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

What page is it? Is there a space before it?
View user's profile Send private message
fkelly
Moderator


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

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

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: 9136
Location: Arizona

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

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.
View user's profile Send private message Visit poster's website
floppydrivez
Involved
Involved


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

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

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>
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
floppydrivez
Involved
Involved


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

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

Found it! In header.php in function head()!
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
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 Back to top

Well, you want the DOCTYPE in header.php....the other ones come from the forum integration problem mentioned in that thread.
View user's profile Send private message
floppydrivez
Involved
Involved


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

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

Where is that thread you speak of?
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Gremmie
Former Moderator in Good Standing


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

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

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
floppydrivez
Involved
Involved


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

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

*Bookmarked*

thanks
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Gremmie
Former Moderator in Good Standing


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

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

Sure...and that reminds me I'll have to redo those edits when I go to RN2.10.01.
View user's profile Send private message
floppydrivez
Involved
Involved


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

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

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";
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
montego
Site Admin


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

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

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.
View user's profile Send private message Visit poster's website
Gremmie
Former Moderator in Good Standing


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

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

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.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


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

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

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.
View user's profile Send private message
floppydrivez
Involved
Involved


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

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

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.
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
xGSTQ
Involved
Involved


Joined: Feb 03, 2006
Posts: 267
Location: UK

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

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 Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum