• Resolved pafro

    (@pafro)


    I’ve just updated to the latest version of the plugin 2.0.1 and now all my existing videos are getting this: (note the html tags <p> and </p> within the script)

    <script type='text/javascript'></p>
    <p>                function jwp6AddLoadEvent(func) {
                        var oldonload = window.onload;
                        if (typeof window.onload != 'function') {
                            window.onload = func;
                        } else {
                            window.onload = function() {
                                if (oldonload) {
                                    oldonload();
                                }
                                func();
                            }
                        }
                    }</p>
    <p>            function ping0() {
                    var ping = new Image();
                    ping.src = 'http://i.n.jwpltx.com/v1/wordpress/ping.gif?e=features&s=http%3A%2F%EDIT%2Farticles%2FEDIT&';
                }</p>
    <p>            jwp6AddLoadEvent(ping0);</p>
    <p>            jwplayer('jwplayer-0').setup({
            'image': '',
    'file': 'http://EDIT/wp-content/uploads/2012/10/EDIT.mov'</p>
    <p>                });

    The post is only using this shortcode:

    [jwplayer mediaid=”4838″]

    which was generated from the previous plugin version.

    http://wordpress.org/extend/plugins/jw-player-plugin-for-wordpress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter pafro

    (@pafro)

    Whoops, i’m using 2.0.0 (Straight from WP)

    Thread Starter pafro

    (@pafro)

    I just tried grabbing 2.0.1 from – http://downloads.wordpress.org/plugin/jw-player-plugin-for-wordpress.latest-stable.zip which downloads a file called: jw-player-plugin-for-wordpress.2.0.1.zip but when its uploaded to the site the Plugin version still shows 2.0.0 and the problem exists. I guess it was an unrelated fix update.

    Plugin Author JW Player

    (@longtail-video)

    It’s difficult to say why this is happening. Are you using other plugins? Those might interfere with ours and add the <p> tags at a later moment.

    This is not happening with version 1.7.2? Are these issues gone when you revert to JW5 from within the current plugin?

    Thread Starter pafro

    (@pafro)

    I’m using a bunch of other plugins, but none that should interfere in this way, or have before.

    I tested rolling back to JW5 and it showed up perfectly fine.

    Rolled back to JW5 working source code –

    <div id="jwplayer-1-div" class="">
    <div id="jwplayer-1"></div>
    <p><script type='text/javascript'>
                        function addLoadEvent1(func) {
                          var oldonload = window.onload;
                          if (typeof window.onload != 'function') {
                            window.onload = func
                          } else {
                            window.onload = function() {
                              if (oldonload) {
                                oldonload()
                              }
                              func()
                            }
                          }
                        }</p>
    <p>                    function ping1() {
                          var ping = new Image();
                          ping.src = 'http://i.n.jwpltx.com/v1/wordpress/ping.gif?e=features&s=http%3A%2F%2FEDIT%2Farticles%2FEDIT&mediaid=4838&image=&file=http%3A%2F%2FEDIT%2Fwp-content%2Fuploads%2F2012%2F10%2FEDIT.mov&title=EDIT&creator=&author=&date=2012-10-18+08%3A35%3A46&description=&modes=_';
                        }</p>
    <p>                    addLoadEvent1(ping1);
                      </script></div>
    <p><script type='text/javascript'>jwplayer('jwplayer-1').setup({"flashplayer":"http://EDIT/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf","width":"400","height":"280","controlbar":"bottom","mediaid":"4838","image":"","file":"http://EDIT/wp-content/uploads/2012/10/EDIT.mov","title":"EDIT","creator":"","author":"","date":"2012-10-18 08:35:46","description":"","modes":[{"type":"html5","config":{"streamer":"","provider":""}},{"type":"flash","src":"http://EDIT/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf"},{"type":"download","config":{"streamer":"","provider":""}}]});</script></p>

    Thread Starter pafro

    (@pafro)

    And no, this wasn’t happening with 1.7.2 and first time its ever happened. (I’ve always kept JW Player updated – Tested first on a QA version of the site.)

    Thread Starter pafro

    (@pafro)

    Tested in more depth:

    All plugins disabled and theme active – problem exists
    Disable all plugins and use WP Twenty Twelve theme, problem gone.
    Enable all plugins and use WP Twenty Twelve theme, problem gone.

    Looks like its conflicting with my theme – Avenue – http://themeforest.net/item/avenue-a-wordpress-magazine-theme/289114

    I’ve let them know. Not too sure if its a Theme fix or a plugin fix as the JWPlayer 5 worked fine…

    Plugin Author JW Player

    (@longtail-video)

    Thank you for the in depth reporting. At least we know where the conflict stems from. Since it didn’t happen with the 5 plugin, it shouldn’t happen with the 6 plugin, so it’s something we need to fix. We’ll look into it, at lease now we have a good starting point.

    Thread Starter pafro

    (@pafro)

    Just updated to 2.0.2 – Fixed!

    Great work Longtail! Thanks!

    Plugin Author JW Player

    (@longtail-video)

    Awesome!

    How Can I go back to 2.0.0

    I can’t revert back because I have changed my host and didn’t migrate my website.

    So, all of my old wordpress info is gone.

    Can I simply download the 2.0.0 version back again?

    This works better for my needs.

    Thanks,

    Plugin Author JW Player

    (@longtail-video)

    You should be able to download the old plugin version from – http://wordpress.org/plugins/jw-player-plugin-for-wordpress/developers/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘HTML tags in Javascript? (JW Player , Plugin: 2.0.1)’ is closed to new replies.