Forums

[resolved] [Plugin: pb-embedFlash] Extra </p> tags in the output? (9 posts)

  1. dragontheory
    Member
    Posted 3 years ago #

    Looks like there is a malformed misplaced <p></p> in the following rendered code. What is it for? How can I fix it? Can I get rid of it?

    <div class="screen-border"><script type="text/javascript" src="http://dragontheory.com/wall2.0c/wp-content/plugins/pb-embedflash/js/swfobject.js"></script><strong></p></strong><div class="embedflash" id="swfida7534e0e006dfdb2d0125694a5572b0f"><small>(Either JavaScript is not active or you are using an old version of Adobe Flash Player. <a href="http://www.adobe.com/">Please install the newest Flash Player</a>.)</small></div><strong><p style="padding:0px;margin:0px;"></strong><script type="text/javascript">
    				var flashvars = {}; var params = {}; var attributes = {};params.wmode = "transparent";params.menu = "false";params.quality = "high";params.allowfullscreen = "true";params.allowscriptaccess = "always";
    				swfobject.embedSWF("http://dragontheory.com/wall2.0c/wp-content/themes/wall2.0c/flash/wallofhonor080908_no_tour_screen.swf","swfida7534e0e006dfdb2d0125694a5572b0f","873","332","9.0.0","http://dragontheory.com/wall2.0c/wp-content/plugins/pb-embedflash/swf/expressInstall.swf",flashvars,params,attributes);
    		</script></div>
  2. dragontheory
    Member
    Posted 3 years ago #

    bumped

  3. pasber
    Member
    Posted 3 years ago #

    As always, I need a link to the example.

    Basically, the </p><p> is to circumvent the generated <p> from WordPress, so there are no extra new lines in the output.

  4. dragontheory
    Member
    Posted 3 years ago #

    Thanks for your response.

    The extra </p><p> is purposely put there? It isn't misplaced for the <p style="padding:0px;margin:0px;"> started later in the statement? The extra </p> invalidates the page and bumps everything down in Google's Chrome browser.

    dragontheory.com/wall2.0c

  5. pasber
    Member
    Posted 3 years ago #

    Yes, it's forced to be there because pb-embedFlash is designed to embed flash inside blog posts. WordPress puts blog posts inside <p>-Tags by default.

    I could add a switch for the pb-embedFlash function you seem to call in your template file, so you could choose an output format.

    I'll release the final version 1.5 very soon. I'm still collection some errors, but in the past weeks, only a few problems came up. So I think the plugin is quiet bug free. Release should be by next week.

    The next step for me (milestone 1.6) is the integration of JW FLV Media Player 4. Not that easy as I thought first.

  6. dragontheory
    Member
    Posted 3 years ago #

    Thanks for responding again. Look forward to the upcoming releases.

    Can you insert Flash in template files without pb-embedFlash? Is pb-embedFlash exclusive to posts?

  7. pasber
    Member
    Posted 3 years ago #

    Forget my part about <p>-Tags. The problem is the validation / strict HTML: <p> can only hold inline elements - so no divs. But SWFObject needs an div-container(?) to know where to put the flash. Maybe another element fits, too.

    You can add flash in template files with pb-embedFlash by using the PHP function pb_embedFlash_plugin(). More information.

  8. dragontheory
    Member
    Posted 3 years ago #

    Updated the plug in through WordPress auto update. The extra </P> has been corrected. Thanks again for your hard work. Great plug in.

  9. pasber
    Member
    Posted 3 years ago #

    That's nice to hear =).

Topic Closed

This topic has been closed to new replies.

About this Topic