WordPress.org

Ready to get started?Download WordPress

Forums

WP Nivo Slider
Nivo Slider Dont work in wp3.5? (31 posts)

  1. yausdar
    Member
    Posted 1 year ago #

    My nivo slider stop working when i updated to wp 3.5.
    Appear a image of first post but dont change.

    Anyone can help?

    http://wordpress.org/extend/plugins/wp-nivo-slider/

  2. oliviasolis
    Member
    Posted 1 year ago #

    paste this on your header.php
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>

    it work for me

  3. paste this on your header.php
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>

    This is not good advice. You should never include your own version of jQuery. Always use the version that ships with WordPress.

    This plugin is over 2 years old and is not compatible with the latest version of WordPress. The main problem being that this plugin is using an outdated version of the nivo slider js.

  4. Sandro
    Member
    Posted 1 year ago #

    Have the same problem

  5. yellowlabrat
    Member
    Posted 1 year ago #

    Chris is correct; the nivo slider version is outdated.

    Here's how I fixed this problem...

    NOTE: If this plugin is updated (not likely) and you install the update, it will overwrite any of the changes I am outlining below.
    NOTE 2: I recommend you backup your site's "plugins/wp-nivo-slider/" folder before doing the following. If something breaks, you can just put it back as it was before.

    To fix the Nivo Slider plugin with the latest version of WordPress:
    1. Get the latest version of the Nivo Slider js file by going here, and clicking the Download button:
    http://dev7studios.com/nivo-slider/

    2. This will download a zip file with several files in it. All you really need from this zip file is: "jquery.nivo.slider.pack.js". Copy "jquery.nivo.slider.pack" up to your website into the following location:
    <YourWordPressLocation>/wp-content/plugins/wp-nivo-slider/js/
    - This should overwrite the current file named "jquery.nivo.slider.pack.js".
    NOTE: You should be copying the file that has the word "PACK" in its name. Don't accidentally copy the one w/o the word "PACK" in the file name.

    3. Now edit the following actual plugin file that is on your server:
    <YourWordPressLocation>/wp-content/plugins/wp-nivo-slider/wp-nivo-slider.php
    - In this file, around line 53, change this:
    wp_enqueue_script('nivo_slider', WP_PLUGIN_URL . '/wp-nivo-slider/js/jquery.nivo.slider.pack.js', array('jquery'), '2.3' );
    to this:
    wp_enqueue_script('nivo_slider', WP_PLUGIN_URL . '/wp-nivo-slider/js/jquery.nivo.slider.pack.js', array('jquery'), '3.2' );
    - NOTE: All you are doing is changing the version number of the nivo slider so that it corresponds to the version in the new file you uploaded in step 2 above.
    - Save the file on your server.

    4. Go back to the page that has your slideshow on it and refresh. You should be good to go!

    Hope this helps someone out there.

  6. wcardoso
    Member
    Posted 1 year ago #

    Tks yellowlabrat! perfect!

  7. eljefeenterprises
    Member
    Posted 1 year ago #

    yellowlabrat

    After making these changes to the plugin I am finally getting transitions between slides however the transition effects are poor or do not render at all. Also, the text that was showing in each image is no longer visible.

    Any idea what the problem might be?

  8. yellowlabrat
    Member
    Posted 1 year ago #

    eljefeenterprises,

    That sounds really weird. Do you have a link to the page that is doing that? Maybe we can see something that way.

  9. eljefeenterprises
    Member
    Posted 1 year ago #

    The live site is http://www.getjive.com you can see the slider working there on WP v. 3.3.1

    The dev site is hosted on another server and is running the latest version of WP. This one has the new js file and updated php other than that it is the same.

  10. yellowlabrat
    Member
    Posted 1 year ago #

    I can't see anything based on the live site.
    That one looks fine, so I can't really tell what would be wrong with the dev one.
    Is there anyway you can do a screen capture and post it somewhere?

    From what you're saying, the transitions work, they just seem to be going slow or look crummy? Is there one transition that works better than another? As in, the fade looks good, but the slice looks bad?

  11. eljefeenterprises
    Member
    Posted 1 year ago #

    Ok, here are the screen captures of the different transitions. Some are definitely worse than others, but none are working normally.

    Fade - http://screencast.com/t/tH6tLW3YznT - this one isn't working at all
    sliceUpDownLeft - http://screencast.com/t/2KS8NGTfavHZ - this one has a lag in it

    Those are the two we have been using, but here are the others:

    sliceDown - http://screencast.com/t/7isrE58qtCpZ - transition does not behave normally
    sliceDownLeft - http://screencast.com/t/fUoY2ubvNS - same as above
    sliceUp - http://screencast.com/t/5G86wDusL9zr - not working
    sliceUpLeft - http://screencast.com/t/9W3uo3DyybBe - not working
    sliceUpDown - http://screencast.com/t/vwP7llVig - transition lags
    fold - http://screencast.com/t/uPxx6919UxS - transition lags

    The oddest behavior occurs when set to random - http://screencast.com/t/j2Pv16sJ

    Again, none of them are showing the image Title and Alt Text as the live site is.

  12. yellowlabrat
    Member
    Posted 1 year ago #

    Nice work on the screen captures!

    Can you double check on the version of both jQuery and nivoSlider that you have on DEV site?

    Navigate in your browser to the page on dev that has the slideshow, then View Source of the page.
    Search for "jquery" and you should see something like this:
    jquery.js?ver=1.7.1

    Shortly after that, you should see a line that looks like this:
    jquery.nivo.slider.pack.js?ver=3.2

    Write back with what two versions you see there.

  13. eljefeenterprises
    Member
    Posted 1 year ago #

    Jing FTW!

    Here's the versions I have loading:

    http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
    /wp-nivo-slider/js/jquery.nivo.slider.pack.js?ver=3.2

  14. yellowlabrat
    Member
    Posted 1 year ago #

    I have jQuery 1.7.1.
    I wonder if there could be a problem with the later version of jQuery you are using.
    Is there any chance you could jump your jQuery back to v1.7.1 just to check?

  15. eljefeenterprises
    Member
    Posted 1 year ago #

    This got the fade effect working right, but made some even worse, a few still the same.

  16. eljefeenterprises
    Member
    Posted 1 year ago #

    Title and alt text of images are still not showing.

  17. yellowlabrat
    Member
    Posted 1 year ago #

    Sorry, eljefeenterprises, I haven't been able to think up another solution under this scenario.

    I do see that Nivo Slider has released their own packaged WordPress plugin, and it is only $19.

    That might be worth it, just to grab the supported/updated/official version and be done with all the tweaking. :O)

    http://dev7studios.com/nivo-slider/

    Good luck!

  18. lcrafael
    Member
    Plugin Author

    Posted 1 year ago #

    Im, develop a new version of this plugin. This work correct now.

  19. dotsanddashes
    Member
    Posted 1 year ago #

    I'm having real issues with the plugin update on this one – installed yesterday afternoon, and since lost all the slider settings I had previously. I've since been able to get some back, though not all... Example of how we use the slider here:

    http://dotsanddashes.co.uk/gallery/john-grant-rough-trade-east-march-12th-2013/

    But more worryingly, I've since lost the ability to edit sliders at all – can't select effects, nor alter the image order or anything like that.

    The page is also generating the following javascript error: "Uncaught TypeError: Object [object Object] has no method 'sortable'"

    Hope someone out there can help!

  20. lcrafael
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, in my tests, the plugin updated does not lose the settings. I can not imagine what could have happened.

    I saw on your site that the plugin is working correctly. In this new version some things have been added, including a newer version of jQuery, nivo.js and themes.

    I do not know where else I can help, but it can be useful for something, let me know.

  21. dotsanddashes
    Member
    Posted 1 year ago #

    Yeah, I'm confused by it, I must say..!

    The plugin is working more or less as it was, yes, but it's when I make a new slider that I really encounter the issue... I've got no option to modify how it appears at all..?

    And with the newer versions of jQuery, nivo.js and themes is there anything else (plugins or otherwise) that may need to be updated as well..?

    Thanks!

    EDIT: sorry, should have included this link – this is what the galleries now look like, as the variables can't be altered:

    http://dotsanddashes.co.uk/uncategorized/jg-rte/

  22. lcrafael
    Member
    Plugin Author

    Posted 1 year ago #

    I just made a new version that fixes a minor bug and add effects, you can test it.

  23. dotsanddashes
    Member
    Posted 1 year ago #

    Cool! How can I get it..?

  24. lcrafael
    Member
    Plugin Author

    Posted 1 year ago #

  25. dotsanddashes
    Member
    Posted 1 year ago #

    The issue seems to be persisting... Could it be anything to do with WP 3.5.1..? Or is there any code I can give you which might illustrate what the problem is..?

  26. dotsanddashes
    Member
    Posted 1 year ago #

    So it would appear to be an issue with the update eating up far more php memory than it was previously. What is the recommended memory for the plugin, exactly..?

    Apart from that, unsure as to whether any of the below could potentially be interfering with the functionality of the plugin although I am currently running the following:

    Custom Login lite
    Facebook Like Box
    Nivo Slider WordPress Plugin
    Relevanssi
    Search & Replace
    SlideDeck Pro for WordPress - Slider Widget
    Slidorion
    Twitter Widget Pro
    WordPress SEO
    WP-PageNavi
    WP Author Slug
    WP Nivo Slider
    WP No Category Base
    WP Smush.it
    WP User Avatar
    Yet Another Related Posts Plugin

    Thank you.

  27. lcrafael
    Member
    Plugin Author

    Posted 1 year ago #

    I do not think the plugin needs a lot of memory, all the processing it is very simple. Can be joining many plugins or server already exhausted.

  28. vanwaik
    Member
    Posted 1 year ago #

    @eljefeenterprises how did you solve the problem with not showing captions?

    i'm using nivo slider 2.0. after updating to 3.1 of 3.2, none of the images in my post category are showing. it's just blank. and no captions at all. so i rolled it back to 2.0. but in 2.0 i'm still not having captions (the title of the post, i presume). it was all working in version 1.3 but not now.

    site: http://www.chjc.nl

  29. eljefeenterprises
    Member
    Posted 1 year ago #

    @vanwaik I still don't have this working. I am looking into using the Dev7 plugin instead, but that has been tricky due to the way that the wp-nivo-slider was integrated into the theme I am using.

    It might be that WordPress 3.4 changed the shortcode syntax for image captions and now the plugin does not read them. See: http://writings.orangegnome.com/writes/wordpress-3-4-and-captions/.

  30. vinzely
    Member
    Posted 1 year ago #

    @eljefeenterprises and @vanwaik I had the sames issue with the caption. I'm using WP 3.5.2 and WP Nivo Slider 3.1. The problem is that the title returned in the <img> is undefined. I don't know if that comes from the_post_thumbnail(); function... Anyway I figured out a workaround but probably not very elegant.

    First I've downloaded the latest version of jquery.nivo.slider.js (http://dev7studios.com/nivo-slider/) then in wp-nivo-slider.php line 89, instead of calling jquery.nivo.slider.pack.js, I'm calling jquery.nivo.slider.js.

    In jquery.nivo.slider.js I did the following change l. 95, 96. Replace vars.currentImage.attr('title') by $(kids[vars.currentSlide]).attr('title'). Basically instead of takink the title of the <img> you're taking the title of the .

    if($(kids[vars.currentSlide]).attr('title') != '' && $(kids[vars.currentSlide]).attr('title') != undefined){
                    var title = $(kids[vars.currentSlide]).attr('title');

    Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic