Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter jhheider

    (@jhheider)

    Eeeesh. Nevermind. I finally found https://www.ads-software.com/support/topic/253012?replies=4 . I added:

    //Build javascript
                    $this->js  = "\nvar " . $this->id  . " = {\n";
                    $this->js .= $this->add_js_parameters('params', $this->params) . ",\n";
    + //JHH
    + $this->flashvars['autostart'] = 'false';
    + //END
                    $this->js .= $this->add_js_parameters('flashvars', $this->flashvars) . ",\n";
                    $this->js .= $this->add_js_parameters('attr', $this->attributes) . ",\n";
                    $this->js .= "\tstart : function() {" . "\n\t\t";
                    $this->js .= $this->embedSWF;
                    $this->js .= "\t}\n}\n";
                    $this->js .= $this->id  . '.start();';

    and it works.

    Are the codes below correct? I inserted them after // adding the flash parameter and it did not work. Thanks.

    //Build Javascript
    $this->js = “;\nvar”; . $this->id . ” = {“;
    $this->js .= $this->add_js_parameters(`params’, $this->params) . “,\n”;
    + //JHH
    + $this->flashvars[autostart'] =false’ ;
    +//END
    $this->js .= $this->add_js_parameters(`flashvars’, $this->flashvars) . “,\n”;
    $this->js .= $this->add_js_parameters(`attr’;, $this->attributes) . “,\n”;
    $this->js .= “\tstart : function() {“; . “\n\t\t”;
    $this->js .= $this->embedSWF;
    $this->js .= “\t}\n}\n;
    $this->js .= $this->id . `.start();’;

    You are missing 2 single quotes in your code.

    This line: + $this->flashvars[autostart’] =false’ ;

    should look like this: + $this->flashvars[‘autostart’] = ‘false’ ;

    Hope that does it.
    Paul

    Thanks Paul. I just corrected it. Still not working. Not sure what else I should do.

    So sorry, I just quickly scanned this post and that is what I saw wrong with your code. I should have looked a little deeper into what was trying to be accomplished.

    Have you tried just adding the line $swfobject->add_flashvars( autostart, 'false'); to function nggShowSlideshow() in nggfunctions.php?

    When I add that line below // adding the flash parameter it stops my slideshow from autostarting.

    Make sure to remove your previous code before testing.

    Paul

    It worked:) Why your original codes were so complicated?

    Can I ask one more question? If I want it to start and stop when click, what codes should I add?

    Many thanks.

    I don’t know why the OP was trying to do it that way. Maybe it came from visiting the JW Player site first.

    As far as I can see the only way to stop and start is to click on the image count text and there are no ‘flashvars’ to add to control that option. I don’t know if you have noticed but the slideshow does start again after you click on it and it advances to the next photo. Not pretty but gets the job done.

    Paul

    Thanks very much Paul for your assistance. I really appreciate that.

    Good luck.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: NextGEN Gallery] Prevent autoplay of slideshow’ is closed to new replies.