PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro How Do I...? (http://www.photopost.com/forum/photopost-pro-how-do-i/)
-   -   Valid XHTML ? (http://www.photopost.com/forum/photopost-pro-how-do-i/122733-valid-xhtml.html)

Markus February 1st, 2006 05:43 PM

Valid XHTML ?
 
Hello

I checked my index.php and showgallery.php with http://validator.w3.org/

Result: This page is not Valid XHTML 1.0 Transitional!

A few examples:

Code:

Content visible to verified customers only.
In sourcecode this:

[CODE]<body><body bgcolor="#FFCC33" text="#000000" link="#0000FF" vlink="#0000FF" alink="#0000FF">[/code]

two body tags?

Chuck S February 1st, 2006 07:15 PM

There are not two body tags in our program. You sure you are not loading a second body tag in your header code?

I run a stock photopost site with vb3 and the code is indeed 100% XHTML valid that I see

http://validator.w3.org/check?uri=ht...hp%2Fcat%2F502

http://validator.w3.org/check?uri=ht...m%2Fgallery%2F

http://validator.w3.org/check?uri=ht...doctype=Inline

Markus February 2nd, 2006 05:31 AM

My Photopost Gallery run standalone.

My Vbulletin Forum ist Valid XHTML.

Here the sourcecode:

index.php:

Code:

Content visible to verified customers only.
showgallery.php:

Code:

Content visible to verified customers only.
I change nothing in the header code.

The code in "edit header"

Code:

Content visible to verified customers only.
So where can I remove the <body> tag?

<img src ... I will change.

Markus February 2nd, 2006 05:57 AM

I found the second <body> in pp-inc.php:

Lines 459 -470:

Code:

Content visible to verified customers only.
If i change like that:

Code:

Content visible to verified customers only.
the second <body> disappear in the sourcecode. ;)

But there are also other errors in html validator. I will try to find them.

Chuck S February 2nd, 2006 09:06 AM

No you never remove code from our PHP code you will break it

Your loading a header over Photopost that contains a body tag and thats your problem. Try taking the header off your photopost and see if it validates

Markus February 2nd, 2006 09:15 AM

Quote:

Originally Posted by Chuck S
No you never remove code from our PHP code you will break it

Your loading a header over Photopost that contains a body tag and thats your problem. Try taking the header off your photopost and see if it validates

I don't understand. Which header is loading over Photopost? I use the original "header.htm"

Chuck S February 2nd, 2006 09:27 AM

Exactly remove or make sure the code in that header is VALID

Thats just a test file not something for you to run.

Michael P February 2nd, 2006 09:29 AM

What he is saying is that the header.htm file included as a test has an invalid line in it - the first line which contains a body tag should be removed from that template file.

Markus February 2nd, 2006 01:15 PM

OK, I understand now.

The showgallery.php and showphoto.php is now Valid XHTML.

But the index not:

Code:

Content visible to verified customers only.
I miss there the end tags of tables:

**
Code:

Content visible to verified customers only.

Chuck S February 2nd, 2006 02:03 PM

Your not using who's online?

Try this in indexstats.tmpl move the code in black to where I have placed it in red

Code:

Content visible to verified customers only.

Markus February 3rd, 2006 02:56 AM

Quote:

Originally Posted by Chuck S
Your not using who's online?

Yes.

I made the changes:

But I miss there the tag </tr>:

Code:

Content visible to verified customers only.

Chuck S February 3rd, 2006 06:13 AM

1 Attachment(s)
Okay lets do this the old school way ;)

Download this template and use it

Markus February 3rd, 2006 07:12 AM

The index.php is Valid XHTML 1.0 Transitional.

Thanks for your help.


All times are GMT -5. The time now is 11:35 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97