XHMTL 1.0 / CSS Compatible Output

All notes and input on 2.0 Development are herein. <ul><li>Feature requests</li>
<li>Bug Reports</li>
<li>Beta Testing Feedback</li>
<li>Open Dev Discussion</li></ul>

Moderator: Coranto Moderator Team

XHMTL 1.0 / CSS Compatible Output

Postby Spunkmeyer » Mon Feb 12, 2007 1:00 am

Hey guys, I was just recently going through a coranto installation on my site http://www.advocatusdiaboli.ca, and wanted to add the ISAY addon to allow people to comment on the site. Unfortunately, the link to the comments uses the following code:

Code: Select all
<a href="/path to isay/iSay.cgi?Page=Comments&ID=<Field: newsid>">Comments (<?php include("/path to isay/iSay_GetCommentCount.cgi?ID=<Field: newsid>"); ?>)</a>


Now, this works great unless you're trying to validate your page as XHTML 1.0. "ID=" generates a cannot generate system identifier for general entity "ID" error.

I think if we're gonna do a new version of Coranto, all the XHTML/CSS output should be validated. There's no point in using plain HTML anymore. Output for tables should be divs, etc.

Oh, on a side note, anyone know how i would make that link valid? XHTML?
"God Bless the Portable Grassy Knoll"
Spunkmeyer
 
Posts: 69
Joined: Wed Jan 10, 2007 4:36 pm
Location: Whistler, BC, Canada

Postby Dale Ray » Mon Feb 12, 2007 1:34 am

Do you have a page on a site you can point us at?

I think you would need to modify iSay to use a different name for the parameter, ID is used in HTML tags.
Dale Ray
User avatar
Dale Ray
 
Posts: 1001
Joined: Sun Jan 19, 2003 6:02 pm
Location: NW Indiana

Postby Spunkmeyer » Mon Feb 12, 2007 1:53 am

Well its not that I cant get it working, its just that that link produces that error, and I don't know enough about the code to go digging through it and modify it...
"God Bless the Portable Grassy Knoll"
Spunkmeyer
 
Posts: 69
Joined: Wed Jan 10, 2007 4:36 pm
Location: Whistler, BC, Canada

Postby SrNupsen » Mon Feb 12, 2007 9:50 am

It is the ampersand (&) character. To validate, you have to use &amp; in your URL instead of &.
-----------------------------------------------------------------------------------------------------
Coranto is free software. I am available for custom work or troubleshooting.

http://www.sundaune.no - transkripsjon, webdesign, nettsider, tekstbyrå
http://www.vagbladet.no - satire, politikk, kultur, sport, nettavis
-----------------------------------------------------------------------------------------------------
SrNupsen
 
Posts: 2229
Joined: Tue Jan 09, 2007 6:46 pm
Location: Nesodden, outside Oslo, Norway

Postby Spunkmeyer » Tue Feb 13, 2007 9:08 am

Ah cool, thanks man, I'll give it a shot.
"God Bless the Portable Grassy Knoll"
Spunkmeyer
 
Posts: 69
Joined: Wed Jan 10, 2007 4:36 pm
Location: Whistler, BC, Canada

Re: XHMTL 1.0 / CSS Compatible Output

Postby Whatrevolution » Sat May 26, 2007 11:12 am

I had to fix that, to embed iSay in my pages. It was mostly a matter of search & replace. The tables, could be rewritten to divs as you said, easily, since they are in iSay_Config.dat already. Error reports are an exception, as is the <html></html> etc. for iSay.cgi output.

http://coranto.org/forum/viewtopic.php? ... rt=15#2107
Whatrevolution
 
Posts: 7
Joined: Fri May 25, 2007 9:49 am


Return to Coranto 2.0 Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron