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

  1. belchandan
    Posted 3 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.


  2. HanaDaddy
    Plugin Author

    Posted 3 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.


  3. belchandan
    Posted 3 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.


  4. HanaDaddy
    Plugin Author

    Posted 3 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 "</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

  • Hana Flv Player
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.