Forums

[resolved] [Plugin: pb-embedFlash] Outputs as text! Please help! (10 posts)

  1. dragontheory
    Member
    Posted 3 years ago #

    Thanks for this great plugin.

    At http://dragontheory.com/wall2.0c/ I put the following code (from one of your earlier posts http://wordpress.org/support/topic/187118?replies=6) in my page template (page.php) but it exports just this as plain text. "[flash http://dragontheory.com/wall2.0c/wp-content/plugins/pb-embedflash/swf/wallofhonor080908_tour_screen.swf w=873 h=332 mode=1 p={wmode;transparent|menu;false|quality;high}]"
    Please help! Thanks in advance!

    CODE in page template:
    <?php if(function_exists('pb_embedFlash_plugin'))
    {echo pb_embedFlash_plugin('[flash http://dragontheory.com/wall2.0c/wp-content/plugins/pb-embedflash/swf/wallofhonor080908_tour_screen.swf
    w=873 h=332 mode=1 p={wmode;transparent}]');} ?>

  2. Samuel B
    moderator
    Posted 3 years ago #

    http://dragontheory.com/wall2.0c/wp-content/plugins/pb-embedflash/swf/wallofhonor080908_tour_screen.swf

    This comes up with your flash - pretty cool.

    I think you want <?php if(function_exists('pb_embedFlash_plugin'))
    {echo pb_embedFlash_plugin('[flash http://dragontheory.com/wall2.0c/swf/wallofhonor080908_tour_screen.swf

    Not sure but I don't think you want to go through the plugins folder for several reasons.

  3. dragontheory
    Member
    Posted 3 years ago #

    Thanks for your timely reply. Still don't understand why the <?PHP> tags are getting stripped out of the HTML.Out of an abundance of caution the page.php is edited locally and then uploaded rather than using the code inserting/changing HTML WYSIWYG editor. I am using Exec-PHP but can't tell if it is working or not.Any help on getting this to work would be great. Thanks.

  4. pasber
    Member
    Posted 3 years ago #

    Honestly, I don't know why this behaviour appears. I tried everything on my local test blog and it always works fine... sorry!

  5. andrewk
    Member
    Posted 3 years ago #

    I'm having a similar problem,

    Just set up a new server and 5-6 blogs in basic config, all installs ok but no video shows in post only the code?

    e.g [flash http://www.youtube.com/watch?v=CSmlWBgOyjw

    I have tried many different settings to no avail.

    any help would be great
    Thanks

    Andrew

  6. pasber
    Member
    Posted 3 years ago #

    @anrewk: Where do you post the tag? In a template file or a normal blog post/page? What version of WordPress did you install?

  7. andrewk
    Member
    Posted 3 years ago #

    Hi,

    Normal post/page and WP is 2.6.3

    thanks

  8. pasber
    Member
    Posted 3 years ago #

    Ok.. I think another plugin is disturbing the tag detection. Could you please post a list of the plugins you are using in your blog?

  9. pasber
    Member
    Posted 3 years ago #

    I think I've found the issue. Other plugins can do changes on the tag (e.g. make hyperlinks out of the http://... text). To circumvent this, the flash filter needs an higher priority. Appropriate code is implemented in the final plugin version 1.5.

  10. dragontheory
    Member
    Posted 3 years ago #

    Thanks so much! Works like a charm.

Topic Closed

This topic has been closed to new replies.

About this Topic