Recent Topics

1 Nov 17, 2005 16:00    

Sorry I did not find an appropriate answer in the search function, so I must start a new topic on this:

I want to insert this code:

<div><object type="application/x-shockwave-flash" data="http://www.lernpilot.de/lesen/FlashCard.swf" width="200" height="55">
 <param name="movie" value="http://www.lernpilot.de/lesen/FlashCard.swf" />
 <param name="quality" value="high" />
 <param name="bgcolor" value="#ffffff" />
</object></div>

I added these lines into _formating.php:


$allowed_tags = array
(
 ...
	'object' => E_Iinline.' param',
	'param' => E_Iinline,
);

$allowed_attributes = array
(
 ...
	'object' => A_attrs.' type data width height',
	'param' => A_attrs.' name value',
);

I think I'm almost done. All will be accepted so far but I get this error:

 Parser Fehler: mismatched tag: object near
</param></param></para

So I think I have something still missing because the embedded param tag seems not to be accepted within the object tag.

Can anybody tell me what I have overlooked here?

TIA
Marian

p.s. Just to mention: I work with version 1.6CVS, so maybe that may make a difference ;-)

2 Nov 17, 2005 16:20

Dunno if it helps but changing <param /> to <param></param> cures your problem with posting ;)

¥

3 Nov 17, 2005 16:49

¥åßßå wrote:

Dunno if it helps but changing <param /> to <param></param> cures your problem with posting ;)

¥

Thanks, that helped to get my post thru.

But I'm still curious how I can implement a proper solution that will accept the self-closing tags.

Regards
Marian

4 Nov 17, 2005 17:35

Once again, I don't know if this will help but the htmlchecker (evocore/_htmlchecker.class.php) sees your original post as :-

<object type="application/x-shockwave-flash" data="http://www.lernpilot.de/lesen/FlashCard.swf" width="200" height="55">
 <param name="movie" value="http://www.lernpilot.de/lesen/FlashCard.swf" />
 <param name="quality" value="high" />
 <param name="bgcolor" value="#ffffff" />
</param></param></param></object>

I've not had time to dig any deeper but it appears to be ignoring the self close />

¥

5 Nov 17, 2005 18:35

evcore/_misc.funcs.php, add the red bit :-

// Tag Cleaning

// Push if not img or br or hr
if($tag != 'br' && $tag != 'img' && $tag != 'hr' && $tag != 'param') {
$stacksize = array_push ($tagstack, $tag);

;)

¥

6 Nov 17, 2005 19:06

Thanks a lot, that worked fine :D

Best regards
Marian

7 Nov 20, 2005 05:05

why I don't have the "evcore/_misc.funcs.php" file?

8 Nov 20, 2005 08:45

p.s. Just to mention: I work with version 1.6CVS, so maybe that may make a difference ;-)

This was a problem with the phoenix version which hasn't yet been released ;)

¥

9 Jan 18, 2006 20:20

kding wrote:

why I don't have the "evcore/_misc.funcs.php" file?

I'm guessing those functions got moved to a new file in Phoenix.

In Dawn 0.9.1, the "// Tag Cleaning" code that ¥åßßå was referring to is in /b2evocore/_functions.php (i found it around line 741)

10 Jan 23, 2006 05:42

wow, I'd like to see flash and MP3 object documentation in the next version.

This was more painful than anticipated. Trying to post:

<object type="application/x-shockwave-flash" data="http://neilcowley.com/b2/images/i6_pro.swf" width="500" height="471">
<param name="movie" value="http://neilcowley.com/b2/images/i6_pro.swf">
<param name="quality" value="high" />
</object>
<p>I finally finished the processing for Isaiah 6 a worship band based out of Lima, NY. A fun session, thanks guys</P>

Returns these errors:
•Tag object must occur inside another tag
•Tag param is not allowed within tag param
•Parser error: mismatched tag: param near </object> <p>I finall

Since I didn't deviate from the posted code, I'm wondering if you're allready running modded versions, or if I'm missing something else...

11 Jan 23, 2006 16:49

<div><object type="application/x-shockwave-flash" data="http://neilcowley.com/b2/images/i6_pro.swf" width="500" height="471">
<param name="movie" value="http://neilcowley.com/b2/images/i6_pro.swf" />
<param name="quality" value="high" /></object></div>
<p>I finally finished the image processing for Isaiah 6, a worship band based out of Lima, NY. A fun session, here's a little preview for everyone. Thanks guys</P>

The steps left out of this thread are:
"'div' => E_Flow. ' object '," from earlier in _formatting.php

And format your param tags with the closer />

12 Jan 23, 2006 16:51

Simply for a clear mod, seems there's 10 threads about differing object tag implementations and flash methods. I'm no techie, just tell me how I should do it for B2 and I'll do it.

13 Jan 23, 2006 16:54

solecist wrote:

•Tag object must occur inside another tag

You're getting this error because you need to contain an object tag within another tag. I suggest just adding a <div> tag before and after.

solecist wrote:

•Tag param is not allowed within tag param

This error is because you didn't close the first param tag before adding the second param tag.
If you added ¥åßßå's fix for self closing param tags, just add a slash inside the first param tag like you did for the second, otherwise, add "</param>" after both param tags (and don't forget to remove the self-closing slash in the second param)

solecist wrote:

•Parser error: mismatched tag: param near </object> <p>I finall

I think this error will go away when you fix the first two.

Here's how your code should look:

<div>
<object type="application/x-shockwave-flash" data="http://neilcowley.com/b2/images/i6_pro.swf" width="500" height="471">
  <param name="movie" value="http://neilcowley.com/b2/images/i6_pro.swf" />
  <param name="quality" value="high" />
</object>
</div>
<p>I finally finished the processing for Isaiah 6 a worship band based out of Lima, NY.  A fun session, thanks guys</p>

EDIT: Doh! You figured it out yourself moments before I replied...

14 Jan 23, 2006 17:14

thanks though Josh :lol:

Much appreciated, and where do I find the feedburner little thing you have in your sig?


Form is loading...