WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Download Gallery
[resolved] select all not working (15 posts)

  1. MrRedd
    Member
    Posted 1 year ago #

    This may be very simple and may be on my end but I have no coding experience really so can't troubleshoot it.

    I just installed your plugin and it looks great...the individual check boxes work and they make the zip file but when I click the "Select All"
    it does nothing.

    I turned on de-bugging (IE Tools)and got this message after I clicked the Select All button:
    Breaking on JScript Runtime error.
    Error: Object doesn't support property or method 'prop'

    and it Highlights this code...
    $(this).closest("form").find("input[name='pid[]']").prop({checked: true});

    Any ideas on what may be happening here?

    Thanks for the plugin though it looks good :)

    http://wordpress.org/extend/plugins/nextgen-download-gallery/

  2. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day MrRedd,

    It sounds like your website has an old (pre 1.6) version of jQuery loaded. What version of WordPress are you running? I might have to change the code so that it works on versions earlier than v3.2, which was the first WordPress to introduce jQuery 1.6.x.

    If you are running a WordPress version 3.2 or higher, then perhaps you have a bad plugin or theme that is forcing the version of jQuery to be an older one. If you can provide a link to your website, I can take a quick look at it.

    cheers,
    Ross

  3. MrRedd
    Member
    Posted 1 year ago #

    Thanks Ross...I was hoping there was a way I could email you with the info or something?
    Is that possible at all?

  4. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    Contact me here: http://www.webaware.com.au/contact-us/

    cheers,
    Ross

  5. MrRedd
    Member
    Posted 1 year ago #

    sent :)

  6. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day MrRedd, I can see why you didn't post a link :)

    Something on your website (maybe the theme, maybe a plugin) is replacing the standard jQuery with an old one (v1.4). You need to make it stop that! Check through your plugins' settings to see if one of them has something about loading jQuery, and turn it off if you can.

    If you can't work out what's doing it, disable all the plugins and add each one back one at a time, viewing the page source and searching for "jquery/1.4" until you find which one is doing it. If you disable all the plugins and can still find "jquery/1.4", then it's your theme.

    cheers,
    Ross

  7. MrRedd
    Member
    Posted 1 year ago #

    Thanks Ross.. I will give that a try.
    But if I do find the plugin that's loading it..do I need to not use (disable) the plugin all together or can I make it use a new version of JQuery?

    I know nothing about modifying plugins, Jquery etc...all I can really do is fumble my way through things by editing code on pages...crossing my fingers and hitting refresh to see what happened...lol so unless it is a real easy...copy this code and paste it here sort of thing I may be outt luck until I learn more.
    Thanks again.

  8. MrRedd
    Member
    Posted 1 year ago #

    S that was quick..I knew one of my plugins was out-dated and went right to the source code and found this in the plugin source...

    wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');

    Now this is a Plugin that is a "must" for me...so can I just try and see if a new version will work with it?

    If so..can you tell me how to find what version to try?

  9. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day MrRedd, once you determine which plugin is doing the bad, you can ask for help on that plugin's support forum. If you get no joy, a consultant (like me) can always help you out for a small fee (e.g. by writing a simple customisation. Or if the plugin in question has some competition, perhaps you can switch to another plugin.

    First step is working out which one is causing the problem (and it's definitely a problem, and should be fixed, before it bites you somewhere else).

    cheers,
    Ross

  10. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    Somewhere above that line, it will be calling wp_deregister_script('jquery'); so comment out both those lines and you might be good to go!

    cheers,
    Ross

  11. MrRedd
    Member
    Posted 1 year ago #

    Ok..well I did ask the plugin writer about another issue and he just said...
    Sorry this plugin hasn't been updated in a couple years.
    If this changes I will let you know.

    So...guess I am on my own since I am beyond broke and have no budget for consultants...sigh

    I did just search for a new version of Jquery:
    ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
    and am going to see what happens when I past it in that section..if it all breaks well...ugh! I don;t know what then...lol

    Thanks for your time though Ross...it's people like you that I will donate to when / if I can ever afford to :)

  12. MrRedd
    Member
    Posted 1 year ago #

    Well that fixed the issue for your plugin :)
    I even got the Select None button to work...wow that was easy...lol

    I will see if I broke my other plugin a little later..that other plugin gives me nightmares still and I need a break right now...lol

    Thanks again and you have my email if you ever need my help with anything etc. (testing, voting, anything a non programmer type can help with...lol)

    Chris

  13. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    @MrRedd:

    Instead of modifying the plugin, add this code to your theme's functions.php file:

    function fix_bad_plugin() {
        remove_action('init', 'cpp_init');
    }
    add_action('init', 'fix_bad_plugin', 1);

    It should stop Exclusive Content Password Protect from messing with jQuery.

    cheers,
    Ross

  14. MrRedd
    Member
    Posted 1 year ago #

    Instead of modifying the plugin, add this code to your theme's functions.php file:

    I am not sure what that will do?

    Can you let me know as I really need the Exclusive Content Plugin to Work as it is still.

    By the way...it is all working now that I added the newer version of the Ajax thing to the Exclusive Content code..I changed it version 1.8.

    Thanks.

  15. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day MrRedd, changing it to version 8 isn't a good idea, as it might make other plugins / theme features unstable. Best is to let WordPress load the version it comes with. It has a bundle of additional jQuery plugins (e.g. jQuery UI) that are tested against specific versions, so you should really only load a newer version if you know what you're doing :)

    My code block above stops the exclusive content plugin from running the function cpp_init() which is where it replaces jQuery. If you look a few lines above it, you'll see that there is a call to add_action('init', 'cpp_init'); which tells WordPress to run that function at the "init" action. My code block gets in ahead, and removes cpp_init() from the queue, so it should never run.

    cheers,
    Ross

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.