WordPress.org

Forums

slideshare plugin won't display the slideshow (4 posts)

  1. Jeff
    Member
    Posted 7 years ago #

    I've tested this on a few wordpress sites running 2.5.1, 2.6.2 and 2.7 and all have the same problem.

    I can view the slideshare player but the slideshow doesn't load - there is a continuous 'loading' icon in the middle of the player.

    If I take the normal embed code (extracted from the div to just show the slideshow player and no links) the slideshow works fine.

    If I look at the source html produced by the plugin compared with the pasted embed code I can see that there is no link to any document after this http://static.slideshare.net/swf/ssplayer2.swf?doc= in the embed code produced by the plugin.

  2. Jeff
    Member
    Posted 7 years ago #

    I did a little investigation and it looks like the shortcode api is not parsing all the arguments, which it looks like the plugin tries to account for.

    However we end up with index keys with '#038;' prefixing the expected name.

    I solved it by copying the original array to a new one with the correct index keys.

    Line 100 was:

    $r = wp_parse_args($args);

    which becomes (with two new lines)

    $rs	= wp_parse_args($args);
    $r = array();
    list($r['0'], $r['doc'], $r['w']) = array_values($rs);

    It would be good if the plugin could be updated (perhaps in a more elegant manner than this hack?).

  3. bijoor
    Member
    Posted 6 years ago #

    You may not get the $r['doc'] value because it expects an & before the doc=xyz in the shortcode

    There is another bug in the plugin. Edit the plugin and replace the following line:

    $content		= '<object style="margin:0px" width="'.$width.'" '.'height="'.$height.'"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc='.$r['doc'].'"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/"'.$player.'?doc="'.$r['doc'].'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$width.'" '.'height="'.$height.'"></embed></object>';

    with the following line:

    $content		= '<object style="margin:0px" width="'.$width.'" '.'height="'.$height.'"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc='.$r['doc'].'"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/'.$player.'?doc='.$r['doc'].'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$width.'" '.'height="'.$height.'"></embed></object>';

    There are two extra quotes in the code which cause the bug.

  4. Joost de Valk
    Member
    Posted 6 years ago #

    Are you still experiencing this issue? My guess is that was fixed with 1.6, but not entirely sure.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags