Support » Plugin: WP-prettyPhoto » [Plugin: WP-prettyPhoto] Syntax Error autoplay: ,

Viewing 3 replies - 1 through 3 (of 3 total)
  • With true to autoplay selected this error is no longer displayed. Not sure yet that is wanted though..
    Other issue are that top title in pop-up is not displayed properly as background is white and height is too small and that theme selection does not seem to work

    Yours actually works after setting autoplay? Nice, I get more errors.

    The error on line 48 is because jQuery expect a variable for autoplay, but when it’s set to ‘false’ (by default) no variable is displayed. So all we need to do is get the PHP to output ‘0’ instead of nothing.

    If you pop open /wp-content/plugins/wp-prettyphoto/wp-prettyphoto.php and head down to line 416, you’ll see this:

    $wppp_autoplay = $this->wppp_autoplay;

    Add a little something on the end so it looks like so:

    $wppp_autoplay = $this->wppp_autoplay | '0';

    This way, if autoplay is false PHP will actually output 0 as a string instead of nothing at all.

    Hope that helps!

    @ emcniece Thanks! Very hepful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-prettyPhoto] Syntax Error autoplay: ,’ is closed to new replies.