1 gremlin May 11, 2005 11:47
3 gremlin May 11, 2005 14:12
Would anyone know the correct xhtml for this i don’t know enough about xhtml do be able to do that.
Or how do i turn of html checking temporary so i can check the media streaming.
Cheers
G
4 stk May 11, 2005 16:16
Gremlin,
You can turn OFF the HTML-checker in the /conf/_formatting.php file. Just change the line HTML-checker from a 1 to a 0 (ON to OFF).
Go back and SAVE your post with the embedded audio code. Should go without a hitch.
Then go back to /conf/_formatting.php and switch the HTML-checker back on.
Boom. Done.
-stk :D
5 yabba May 11, 2005 17:18
Or you could ask Stk for the plugin he has ;)
¥
6 gremlin May 11, 2005 17:24
Thanks for your help i will give this a go.
If anyone has a stream media plugin i would be very interested.
Cheers
G.
7 gremlin May 11, 2005 17:31
Doh! I cant find the html-checker option to change it just goes on to
8 yabba May 11, 2005 17:33
Don't quote me on this, but I think (but I'm blonde and we're not renowned for being bright sparks :|) that it's in conf/_advanced.php (there's a section about html checking and security)
¥
*edit* thank god for the blonde clause :p
look for this section in conf/_formatting.php
/*
* Validity & Security Checking
*
* Posts and comments should be checked to see if they contain valid XHTML code
* and no invalid code (javascript, styles, CSS, etc...)
*/
# Html checking will validate posts and comments to a subset of valid XHTML.
# This will also do much cleaner security checking than the next option.
# Note: This option requires the PHP XML module. If your PHP installation doesn't have it
# disable html_checker and use security_checker.
$use_html_checker = 1;
# Security checking will check for illegal javascript hacks in posts/comments
# and for CSS in comments. However, this may be a bit harsh on your posts :]
$use_security_checker = 0;
# WARNING: disabling both $use_html_checker and $use_security_checker is suicidal !
9 gremlin May 11, 2005 17:39
Found it! Right in front of my eye and i spent ages looking i think im the one having a blond day. Thanx.
10 stk May 11, 2005 18:13
Gremlin,
Glad you got it sorted. :D
BTW - The plugin thing that ¥ is referring to is something that HE wrote (but, shhh, don't tell him that I don't use it - because I was able to make ALL of my media code - SWF audio and video - valid XHTML-strict). So, from my end ... it's still unused & untested (tho I appreciate how it works, that he made it for me & what a bright guy he is).
Your audio is much different (streaming x-oleobject pointing to a site) than mine (SWF file passed as a parameter), which is why I couldn't offer up an XHTML-valid response.
However, I could probably hack through an XHTML-solution, but it would take some time.
¥'s plugin, if you're interested, basically allows you to make your own tags, like <audio>filename</audio> ... which (once you add the <audio> tag to the _formatting.php file ... passes through the HTML checker much easier. Then ... when the page is called by a visitor, the plugin converts the <audio>filename</audio> to whatever code you want (all the code you posted above) ... and slips it into the HTML file, much like a smilie. (It's a fancy way of adding code that the html-checker doesn't like and bypassing all the html-checking errors).
But ... since he's the smart one and wrote the thing, you ought to ask 'blondie' all about it! ;)
-stk
Either use valid xhtml (recommended) or turn off the html checker (not recommended - this can open up all kinds of security holes).