WordPress.org

Ready to get started?Download WordPress

Forums

Hana Flv Player
Short code doesn't work with WP 3.4 (4 posts)

  1. belchandan
    Member
    Posted 2 years ago #

    parse_attributes not returning anything when use short code, however it works for code for the player in php template, strange.

    Can you please fix that and update the plugin.

    http://wordpress.org/extend/plugins/hana-flv-player/

  2. HanaDaddy
    Member
    Plugin Author

    Posted 2 years ago #

    Hello, I would love to provide support, but your description is not clear to understand when and what kind of problem you are experiencing. Please provide more information.

    I am not sure what you are saying exactly. 'parse_attributes' is a function called within callback function 'hana_flv_callback' in hana-flv-player.php.

    If [hana-flv-player] short code does not work properly , please provide your short code here, so I can take a look.

    Bye.

  3. belchandan
    Member
    Posted 2 years ago #

    parse_attributes function is not returning anything and thus getting error message video attribute not specified,
    my short-code looks like this:

    [hana-flv-player video="http://localhost/wp-content/uploads/2012/07/xscr-mega.flv" width="605" height="340" description="" player="5" autoload="false" autoplay="false" loop="false" autorewind="true" /]

    I also noticed that wysiwyg add
    s and <p> tags when we use hana-button there, though I also tried by removed those tags manually.

    I tried with commenting call of parse_attribures function and i.e. using attribute without parsing and it's working, however I am afraid it might break.

    any suggestion, please?
    and hope it's clear this time.

    thanks

  4. HanaDaddy
    Member
    Plugin Author

    Posted 2 years ago #

    Are you getting the below error message?
    "video" attribute is missing for the video file's URL

    I tried your short code myself, but everything is working OK.

    It maybe has to do something with your PHP version of your localhost.

    Try again with only video attribute.
    [hana-flv-player video="http://localhost/wp-content/uploads/2012/07/xscr-mega.flv" /]

    And if you are testing with hana-flv-player.php file directly, uncomment below line 1505 ~ 1507 and try to see if $attr values are parsed correctly.

    //print "<pre>";
    //print_r($attr);
    //print "</pre>";

    If it does not print out any attributes, I can only assume that 'preg_match_all' PHP system function behaves differently.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.