Author |
Message |
floppydrivez
Involved


Joined: Feb 26, 2006
Posts: 340
Location: Jackson, Mississippi
|
Posted:
Sun May 13, 2007 6:53 pm |
|
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">
|
|
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Mon May 14, 2007 6:18 am |
|
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! |
|
|
 |
fkelly
Former Moderator in Good Standing

Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Mon May 14, 2007 6:30 am |
|
Look in your theme/forums directory. You will find these littered thru the *.tpl files. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Mon May 14, 2007 7:56 am |
|
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! |
|
|
 |
floppydrivez

|
Posted:
Mon May 14, 2007 8:47 am |
|
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

|
Posted:
Mon May 14, 2007 8:51 am |
|
Found it! In header.php in function head()! |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Mon May 14, 2007 10:06 am |
|
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 |
|
|
 |
floppydrivez

|
Posted:
Mon May 14, 2007 10:08 am |
|
Where is that thread you speak of? |
|
|
|
 |
Gremmie

|
Posted:
Mon May 14, 2007 10:13 am |
|
|
|
 |
floppydrivez

|
Posted:
Mon May 14, 2007 10:18 am |
|
|
|
 |
Gremmie

|
Posted:
Mon May 14, 2007 10:55 am |
|
Sure...and that reminds me I'll have to redo those edits when I go to RN2.10.01. |
|
|
|
 |
floppydrivez

|
Posted:
Mon May 14, 2007 6:20 pm |
|
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

|
Posted:
Mon May 14, 2007 7:05 pm |
|
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

|
Posted:
Mon May 14, 2007 7:44 pm |
|
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

|
Posted:
Mon May 14, 2007 7:46 pm |
|
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

|
Posted:
Tue May 15, 2007 8:05 am |
|
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


Joined: Feb 03, 2006
Posts: 269
|
Posted:
Tue May 15, 2007 11:47 pm |
|
Floppy stop causing more work you dam pesky rat !
Yet again my head is hurting ! lol |
|
|
|
 |
|