WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] swobjects 2.0.4 (16 posts)

  1. gregma
    Member
    Posted 5 years ago #

    Hello,

    Today I tried an update of "viper's video quicktags" plugin, now the slideshow-widget of NG doesn't work anymore.

    Looks like it's because the other plugin uses already Version 2.04 of the swobject, NG uses version 1.5.
    Is it possible to update?

  2. Alex Rabe
    Member
    Posted 5 years ago #

    currently not, I normally don't plan to update swfobject, because it does the job a long time.

    But I will review it for V1.00

  3. gregma
    Member
    Posted 5 years ago #

    Thx :-)

  4. There's a reason versions of SWFObject have been released (bugfixes, etc.). Sure, 1.x works, but 2.x works better. ;)

  5. gregma
    Member
    Posted 5 years ago #

    Alex, I added a line into your nggwidget.php and into the nggfunctions.php ("included" the script again)...

    Not sure if it's brilliant, but it works so far:

    $out  = "\n".'<script type="text/javascript"
    src="/wp-content/plugins/nextgen-gallery/admin/js/swfobject.js"></script><div
    class="slideshow" id="ngg_slideshow'.$galleryID.'">';
    $out .= '<p>The <a
    href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and
    <a href="http://www.mozilla.com/firefox/">a browser with Javascript
    support</a> are needed..</p></div>';
  6. Alex Rabe
    Member
    Posted 5 years ago #

    It require a rework of my script code, so I will look for it in V1.00.

    Until that it may work that you added the V1.5 + V2.1, but I don't know where it causes problems or not....

  7. B4PJS
    Member
    Posted 5 years ago #

    Hi,

    I too am having problems with the SWFObject not defined error. I have tried adding the line into the nggfunctions.php but cant really work out where to put them...

    Would it be possible for someone to post a new widget and functions source files or paste the full code here. I love these two plugins and would love for them to work alongside each other :)

  8. B4PJS
    Member
    Posted 5 years ago #

    No worries all, I finally worked it out :) All you need to insert is this line:
    $out = "\n".'<script type="text/javascript" src="'.NGGALLERY_URLPATH.'/admin/js/swfobject.js"></script><div class="slideshow" id="ngg_slideshow'.$galleryID.'">';

    before the support line:

    $out .= '<p>The <a href="http://www.macromedia.com/go/getflashplayer">Flash Player</a> and <a href="http://www.mozilla.com/firefox/">a browser with Javascript support</a> are needed..</p></div>';

    For anyone having problems with this it is line 165 of the nggfunctions.php

    Barny

  9. trils
    Member
    Posted 5 years ago #

    it doesn't work with me. :(

    I still get this in miy sidebar widget:

    Get the Flash Player to see the slideshow.

    Any other update on this?

  10. Alex Rabe
    Member
    Posted 5 years ago #

    Downgrade Viper Video Quicktags to Version 5 or disable NextGEN/wordTube until I release an update.

    The documentation about swfobject says clear :

    SWFObject 2 is NOT backwards compatible with SWFObject 1.5

  11. trils
    Member
    Posted 5 years ago #

    i'll wait for the update.

    Thx. ;)

  12. until I release an update.

    Let me know if you need any help. I know the docs are pretty clear, but I'm happy to help fellow plugin devs anyways. :)

  13. Alex Rabe
    Member
    Posted 5 years ago #

    Thanks,

    I think I'm able to get this running, but it's a bad timing. I'm in the middle of a new release for wordTube / NextGEN

  14. Flobster
    Member
    Posted 5 years ago #

    I don't want to mess around with the code, but an update to SWFObject 2.1 support would be appreciated! I have embedded the 2.1 version to display flash content anyway, using NGG there are currently two versions loaded, which should not be necessary. Would be even better if one could choose in admin panel whether to load SWFObject or not by default.

  15. aichholzer
    Member
    Posted 5 years ago #

    Too bad :( I'll wait for a new version of NextGen as well, meanwhile I have to disable Vipers Quicktags, as I do have more galleries than videos but on the other hand all my videos are offline or using the old YouTube object.

    Thank you guys. ;)

  16. Alex Rabe
    Member
    Posted 5 years ago #

    I updated NextGEN Gallery & wordTube... please update now it should be fix the version conflict

Topic Closed

This topic has been closed to new replies.

About this Topic