coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: jimjam on June 16, 2006, 09:28:00 PM

Title: XHTML 1.0 Strict
Post by: jimjam on June 16, 2006, 09:28:00 PM
Hiya, I'm new to Coppermine.

I'd like to know, is there a theme that validates as XHTML 1.0 Strict?

If not, would it be straightforward to create a new theme that is compliant?

Many Thanks, Jim.
Title: Re: XHTML 1.0 Strict
Post by: Tarique Sani on June 17, 2006, 06:54:14 AM
Reynolds and 2BorNot2B use to validate XHMTL 1.1 transitional - but they are old now - perhaps you would want to take a look at those
Title: Re: XHTML 1.0 Strict
Post by: jimjam on June 20, 2006, 04:39:30 PM
No, neither of those themes are XHTML 1.0 Strict.

Would it be possible to make a XHTML 1.0 Strict theme?
Does the core coppermine code generate html that is compliant with XHTML 1.0 Strict?

Thanks, Jim
Title: Re: XHTML 1.0 Strict
Post by: Nibbler on June 20, 2006, 04:59:28 PM
No, the core code is not XHTML 1.0 Strict compliant.
Title: Re: XHTML 1.0 Strict
Post by: Joachim Müller on June 20, 2006, 10:27:49 PM
To add to what Nibbler said: one of the main reasons why coppermine's core code doesn't validate xhtml strict is the fact that you can't properly embed multimedia into a page using xhtml strict compliant code - either FF or IE will fail to work as expected. We sacrificed xhtml strict compliance for cross-browser compatibility, as that's what most Coppermine users prefer if they have a choice. After all, most users don't care for standards compliance at all - imo xhtml strict is currently a geek toy, nothing else. Designers are exited about it, users are not.
Title: Re: XHTML 1.0 Strict
Post by: giorgio79 on March 08, 2008, 05:26:26 PM
Quite an old topic, but probably worth revisiting :)

I notice G2 is XHTML strict compliant, so probably it is feasible by now to embed multimedia in there :), would be great if we could cook sg like that up for Coppermine :)

http://codex.gallery2.org/G1-G2_Comparison
Title: Re: XHTML 1.0 Strict
Post by: Joachim Müller on March 08, 2008, 08:53:24 PM
Then show me how they handle embedded multimedia files - a link to a sample gallery with multimedia content will do.
Title: Re: XHTML 1.0 Strict
Post by: giorgio79 on March 09, 2008, 07:43:43 AM
Here is that of a friend of mine: http://momma.rulez.org
Title: Re: XHTML 1.0 Strict
Post by: giorgio79 on March 09, 2008, 07:48:47 AM
Ahhh you are right, it does not validate.

Even though xhtml strict is declarded, object and ember tags are marked proprietary.
Title: Re: XHTML 1.0 Strict
Post by: Joachim Müller on March 09, 2008, 01:29:26 PM
35 validation errors for http://anyad.rulez.org/main.php/v/alb_ircvideo/who-drives-the-car.flv.html (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fanyad.rulez.org%2Fmain.php%2Fv%2Falb_ircvideo%2Fwho-drives-the-car.flv.html).
As I suspected, they only validated the core design, but not the embedded multimedia pages. They suffer from the very same issues I talked about earlier. So what I said above still applies, and probably never will change: cross-platform usability is more important than respecting strict standards. The menalto gallery staff probably haven't reviewed this detail - the gallery template in itself will validate, but embedded multimedia pages won't. The same is true for coppermine: we could make it validate strict as well, except for the multimedia pages. What would be the use of this? Case closed imo.
Title: Re: XHTML 1.0 Strict
Post by: mbjr on March 27, 2008, 07:52:25 AM
This is an altered version of gallery's flashvideo module as the original is not using anything like swfobject/ufo/etc JS solution to get the videoplayer window in place - i.e. it suffers from both validation and IE's "click here to activate this control" issues.

It passes 1.0 Strict validation and works from IE6/7, FF, Opera as it seems.

Focusing on the multimedia implementation part only, here's how it's done:


<script type="text/javascript" src="http://anyad.rulez.org/modules/flashvideo/lib/swfobject.js"></script>
        <div id="flashvideo">
<div id="soContent">Our video player does not work on your configuration, shame on us :-(<br />Although it's not the end, you may try to <a href="?detectflash=false">skip flash detection </a>or <br /> to download <b>Who drives the car?</b> video directly <br />and play with with a local media player.<br /><br />We're sorry for the inconvenience.</div>

</div>
        <script type="text/javascript">
        // <![CDATA[
          var so = new SWFObject("/modules/flashvideo/lib/player.swf", "IFid1", "640", "480", "0", "#FFFFFF");
          so.addParam("AllowScriptAccess", "always");
          so.addParam("allowFullScreen", "true");
          so.addParam("flashVars","...loads of configs");
          so.useExpressInstall("/modules/flashvideo/lib/expressinstall.swf");
          so.write("soContent");
          // ]]>
        </script>

Title: Re: XHTML 1.0 Strict
Post by: giorgio79 on March 28, 2008, 10:59:47 AM
Yep, it validates now, xhtml strick :P